Home › Forums › Basel support forum › Translation for Category search missing after update
Translation for Category search missing after update
- This topic has 3 replies, 2 voices, and was last updated 5 years, 5 months ago by Elise Noromit.
-
AuthorPosts
-
June 13, 2019 at 6:27 pm #128464
taohi01ParticipantHi there,
after updating the theme:
1.The translation for “product search” does not show up on the Version 4.8 anymore. It is only available in english on the frontend.
2.Using gtranslate the frase “product search” will not be translated as the rest. This happens already on the actual installes version 4.7Best regards
Klaus
Attachments:
You must be logged in to view attached files.June 14, 2019 at 7:10 am #128494
taohi01ParticipantMoving the files as suggested, did not resolve tehe issue…
Best regards
Klaus
June 14, 2019 at 9:12 am #128506
Elise NoromitMemberHello,
Yes, we see the problem. We need more time to investigate the reason and fixing that. Now we are working on the issue we shall contact you as soon as we have the solution.
Best Regards
June 17, 2019 at 8:01 am #128828
Elise NoromitMemberHello,
Please follow the steps to get the fix:
1. Please upload the file from this link: https://drive.google.com/file/d/17pRyCpJdReyl_wWyoTduwTUoQQqLkvGT/view?usp=sharing
2. Upload it into this folder deleting the previous one wp-content\themes\basel\languages\basel.pot
3. Find this file wp-content\themes\basel\inc\template-tags.php and replace the code shown on the screen: http://prntscr.com/o2s9ji
basel_header_block_search_extended() switch ( $search_post_type ) { case 'product': $placeholder = esc_attr_x( 'Search for products', 'basel' ); $description = esc_html__( 'Start typing to see products you are looking for.', 'basel' ); break; case 'portfolio': $placeholder = esc_attr_x( 'Search for projects', 'basel' ); $description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' ); break; default: $placeholder = esc_attr_x( 'Search for posts', 'basel' ); $description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' ); break; } switch ( $search_post_type ) { case 'product': $placeholder = esc_attr_x( 'Search for products', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see products you are looking for.', 'basel' ); break; case 'portfolio': $placeholder = esc_attr_x( 'Search for projects', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see projects you are looking for.', 'basel' ); break; default: $placeholder = esc_attr_x( 'Search for posts', 'placeholder', 'basel' ); $description = esc_html__( 'Start typing to see posts you are looking for.', 'basel' ); break; }
Synchronize the translations.
Best Regards
-
AuthorPosts
Tagged: Category search, search, translation
- You must be logged in to create new topics. Login / Register