New Landing How can we help? Themeforest Theme Support Neighborhood Translation works perfect except one string

Viewing 13 posts - 1 through 13 (of 13 total)
  • #117153
    daniel25k
    Member
    Post count: 46

    HI

    I translated the Theme as many themes before… everything works fine… on the single product page one of the accordian names is “description” and i changed it to the german word “Beschreibung” so far so good.

    My client want to use anothe term here and want to call it “Mehr Info zu diesem Produkt” so when i tried to change it again nothing happens. Everey ohter translation works. So i tried to change several other strings. nothing changed. ALthough the po file shows the translations correct, the frontend dont.

    I already tried to update the translations in tools in the woocommerce backend. That worked in a similiar case before.

    Any ideas? It seems there is an udate issue with the catalogue. The update button in poedit is grey and not clickable … i attached an screenshot which part should be translated again.

    thx

    Attachments:
    You must be logged in to view attached files.
    #117157
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Did you generate the .mo file and upload it to the server after changing in the Poedit?

    -Rui

    #117160
    daniel25k
    Member
    Post count: 46

    sure… several times… i have no idea why its not working

    #117173
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Guess you are translating inside the following .po file?
    https://www.dropbox.com/s/jdmmhai3xtzux4t/woocommerce_translation.png?dl=0

    -Rui

    #117177
    daniel25k
    Member
    Post count: 46

    ah no thats the woocommerce-de.po but i tried it once… i translate the file from the theme which is located in the theme folder… should i translate the woocommerce po file?

    i think i tried this too… cant remember exactly

    #117179
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Yes, give it a try.
    -Rui

    #117183
    daniel25k
    Member
    Post count: 46

    changed it and uploaded it back again… didtn work… nothing changed in the frontend (cache cleared)

    #117215
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Try also to deactivate the cache plugin. Search in all .po files for the word “Beschreibung” it got to be somewhere.

    -Rui

    #117373
    daniel25k
    Member
    Post count: 46

    as i wrote before i did clear the cache. i checked all po files… the only po files where the mentioned transaltion is avvailable is the theme po file and the woocommerce po file…

    The problem is not the missing translation the problem is that it looks like the po file wont update in the frontend. any more ideas? i also tired the code localization plugin but its not working either.

    are ther other programs or editors like poedit?

    #117442
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Poedit it’s just fine, this is not a problem of the poedit.
    Try to disable all plugins except Woocommerce, also check the file permissions of the translation files.

    Can also try to active the default Twenty Fourteen theme to see what is displayed? Just to discard any problem from our theme.

    -Rui

    #117809
    daniel25k
    Member
    Post count: 46

    Ok i disabled all plugins… nothing changed. I activated twenty fourteen and the tanslation is still “beschreibung” … so its not an issue of your theme… but it makes really no sense…

    i translated every f**** po file in all folders… i gave up

    #117810
    daniel25k
    Member
    Post count: 46

    is there a way to hardcode it?

    #117832
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try to use this code at functions.php of child theme.

    function sf_text_strings( $translated_text, $text, $domain ) {
    switch ( $translated_text ) {
    case 'Description' :
    $translated_text = __( 'Mehr Info zu diesem Produkt', 'woocommerce' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );

    Thanks
    Mohammad

Viewing 13 posts - 1 through 13 (of 13 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register