Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1154819
    Gerald E
    Participant

    Hi, 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?

    #1154895
    Christian
    Moderator

    Hey 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 credentials

    Don’t forget to select Set as private reply. This ensures your information is only visible to our staff.

    Thanks.

    #1154991
    Gerald E
    Participant
    This reply has been marked as private.
    #1155132
    Christian
    Moderator

    Hey 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. ๐Ÿ™‚

    #1155190
    Gerald E
    Participant

    Thank you! ๐Ÿ™‚

    #1155260
    Thai
    Moderator

    You’re most welcome ๐Ÿ™‚

  • <script> jQuery(function($){ $("#no-reply-1154819 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>