Tagged: x
-
AuthorPosts
-
August 31, 2016 at 4:56 am #1154819
Gerald EParticipantHi, i am building a german site and followed all steps from https://community.theme.co/kb/translation/
AFter that some widgets have been translated but some haven’t.
In particular the text that comes up after clicking the search button. (i did translate those strings in Poedit too)
Can you pls help?
August 31, 2016 at 6:05 am #1154895
ChristianModeratorHey there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / password
– FTP credentialsDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
August 31, 2016 at 7:13 am #1154991
Gerald EParticipantThis reply has been marked as private.August 31, 2016 at 8:52 am #1155132
ChristianModeratorHey Gerald,
Not sure why this doesn’t work but I’ve added the code below in your functions.php to translate the search title (see attachment)
// Translate Fix add_filter( 'gettext', 'translate_more_text', 20, 3 ); function translate_more_text( $translated_text, $text, $domain ) { if ( ! is_admin() ) { switch ( $translated_text ) { case 'Type and Press “enter” to Search' : $translated_text = __( 'Suchbegriff eingeben und “Enter” drรผcken', '__x__' ); break; } } return $translated_text; }To add a translation, just add case like
case 'TEXT_TO_TRANSLATE' : $translated_text = __( 'TRANSLATION', '__x__' ); break;Hope that helps. ๐
August 31, 2016 at 9:47 am #1155190
Gerald EParticipantThank you! ๐
August 31, 2016 at 10:22 am #1155260
ThaiModeratorYou’re most welcome ๐
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1154819 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
