Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi kerdezo. Not sure what you mean by “worked formerly”. Did you have the function active and working, and now it doesn’t?

    Thread Starter kerdezo

    (@kerdezo)

    I mean the method, to use that function.php frame you offered, have been working well with the words I filled in first. So the function is still working.
    But now I wanted to have further words to be translated, so I used the same method as before, but in this case, the new added words were not translated. Remained the original English text.. This further words are related to AlexTabs and captcha as I wrote above. This is the insert that is still working with the fist words,as it is seen on my site, but not working with AlexTab and chaptcha.

    case ‘Category:’ :
    $translated_text = __( ‘Kategória:’, ‘hueman’ );
    break;

    Can you post the function you are using? Use the “code” button above the editor to encapsulate the code and keep it out of the spam filter. Enter your code in the editor, add one additional blank line, highlight the code and click the “code” button. You should see a tick mark like this ‘ before and after the code, and it should look like this when you post it:

    code line 1
    code line 2
    code line 3
    Thread Starter kerdezo

    (@kerdezo)

    <?php
    /* ------------------------------------------------------------------------- *
     *  Custom functions
    /* ------------------------------------------------------------------------- */
    
    	// Add your custom functions here, or overwrite existing ones. Read more how to use:
    	// https://codex.www.ads-software.com/Child_Themes
    /* ------ Change selected text ------ */
    add_filter( 'gettext', 'my_new_text', 20, 3 );
    function my_new_text( $translated_text, $text, $domain ) {
        switch ( $translated_text ) {
            case 'Next story' :
                $translated_text = __( 'K?vetkez? -->', 'hueman' );
                break;
            case 'Follow:' :
                $translated_text = __( 'K?vess minket:', 'hueman' );
                break;
            case 'More' :
                $translated_text = __( 'Még t?bb', 'hueman' );
                break;
            case 'Category:' :
                $translated_text = __( 'Kategória:', 'hueman' );
                break;
            case 'Monthly archive:' :
                $translated_text = __( 'Havi archívum:', 'hueman' );
                break;
            case 'Previous story' :
                $translated_text = __( '<-- El?z?', 'hueman' );
                break;
            case 'You may also like...' :
                $translated_text = __( 'Ez is érdekelheti...', 'hueman' );
                break;
        }
        return $translated_text;
    }
    Thread Starter kerdezo

    (@kerdezo)

    This is what works. Originally. there were just 4 words.Later I added 3 more. This is the picture what you see now with the 7 working entries.
    Than I tried to add the Alex and chapta with the same method, but and only the new entries did not work so I deleted. /Inserted with copy/paste so no missing letters/

    The popup tooltips on the AlxTabs widget are generated by jQuery using the labels defined in the alx-tabs.php file. You can change them by editing alx-tabs.php in a child theme, then enqueuing that copy of the file in your child theme functions.php file. Let me know if you want more specifics on that approach. I’d guess the captcha is being generated by a plugin so you’d have to dig into the plugin code to find out if and where that could be changed.

    Thread Starter kerdezo

    (@kerdezo)

    Thank you bdbrovwn for your kind assistance, but I’ll not step forward with this issue now. I still have to learn more about programming secrets but now I feel my head as if grown to twofold of its original size by the last week-info heap :-)) I am rather going to give content to my site.
    See you…
    wishing
    Happy New Year
    kerdezo

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translation issue’ is closed to new replies.