New Landing How can we help? Themeforest Theme Support Neighborhood Woocommerce translations

Viewing 14 posts - 1 through 14 (of 14 total)
  • #228156
    prins063
    Member
    Post count: 7

    Hello,

    i saw and read several topics about this problem, and i’m pretty sure i’m doing something wrong, but please: can you help me with the translations of Woocommerce, and then especially the front end, like the words “Cart Totals” and “Shipping”?

    I installed Loco Translations, added the dutch language and translated the words, but they don’t seem to be loaded. I used the force translions in the woocommerce-system state-tools options, but this also won’t work.

    Als tried poedit tooling….same result.

    Really appreciating any help!

    best regards, henk.

    #228517
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Can you also add your FTP details?

    Have you changed your site language: Dashboard => General => Site Language.

    When you edit the language file, are you then re-uploading the save file in the correcting naming, nl_NL.po?

    Cheers,
    David.

    #228522
    prins063
    Member
    Post count: 7
    This reply has been marked as private.
    #228675
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    What language files were you originally working with nl_NL or de_DE I am confused as to which language file you are editing.

    I also see a Loco translate .po file that has missing translations, such as Shipping.

    Cheers,
    David.

    #228691
    prins063
    Member
    Post count: 7

    It should be translated into dutch. So nl_NL.

    #228791
    prins063
    Member
    Post count: 7
    This reply has been marked as private.
    #229195
    prins063
    Member
    Post count: 7

    Hello, just wondering: do you haven an update about this?

    kind regards, henk.

    #229612
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Sorry for the delay, this has taken some time for me to investigate what language file is correctly being used and why it is not updating. Please check the translations now: http://www.decoratiestunter.nl/winkelwagen/.

    To amend the translations:

    1) Download POEdit https://poedit.net/
    2) Download your language file from your ftp neighborhood/languages/nl_NL.po
    3) Search through your strings and amend the translations. Save as your.
    4) When finished, click File => Compile to MO.
    5) Upload your new language files BOTH nl_NL.po and nl_NL.mo to the folder neighborhood/languages/

    Thanks,
    David.

    #229618
    prins063
    Member
    Post count: 7

    No problem, really appreciate you solved this and did some explaniton.

    One question though:when i update the theme, will the languagefiles not be replaced?

    Kind regards, and thanks again!

    #229919
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    Yes the language files will be replaced on update.

    The best thing to do to avoid this, is by utilising the child theme we package within the main zip folder.

    You can upload and active that, then add your languages to the child theme /language/ folder.

    Let me know if that is an option for you or if you need any further assistance.

    Thanks,
    David.

    #256501
    mueblesbigbag
    Member
    Post count: 4

    I’m not able to get ‘Cart Totals’ to translate properly either. I’ve managed to translate other strings, but for some reason that one specifically won’t change. Any insight as to why that one would be so stubborn?

    Thanks!

    #256625
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme and dont forgot to change the text Change me as commented below.

    function sf_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'Cart Totals' :
    			$translated_text = __( 'Change me', $domain ); // Just change me
    			break;
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    

    Thanks
    Mohammad

    #257185
    mueblesbigbag
    Member
    Post count: 4

    That works, thanks!

    #257196
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Glad 🙂 to help you.
    Thanks
    Mohammad

Viewing 14 posts - 1 through 14 (of 14 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