Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #334474

    Hi!

    I’m having some trouble getting translations to work for Enfold.
    I want to translate the “Share this entry” text for my posts. Also i want to translate the hover text for the social buttons, ie “Share on Facebook / Share on Twitter”.
    I have Googled for a solution and found some posts where you recommend to use the plugin “CodeStyling Localization”.
    I installed this to my site and translated the strings for the themes sv_SE file under the “avia_framework” textdomain.
    However, when vieweing the website the translation had no effect.

    I opened the sv_SE language file in Poedit, and the translation is there in the file.
    Since im using a child theme of Enfold I created a subdolder called “lang” in my childtheme folder and copied the sv_SE language files there.

    I then added the following code to my functions.php:

    add_action( 'after_setup_theme', 'my_child_theme_setup' );
    function my_child_theme_setup() {
        load_child_theme_textdomain( 'my_childtheme_name', get_stylesheet_directory() . '/lang' );
    }

    according to WP Codex guide: Function Reference/load child theme textdomain, but that did’nt work either.

    Currently I’m a bit pussled about how to get the translations to have effect. I have used Poedit and language files for other themes before with no big hassles. Am I missing something this time?

    Thanks in advance, and thanks for a great theme!

    • This topic was modified 10 years, 1 month ago by Nethendril. Reason: Edit. Link to Codex didnt work, fixed
    #334706

    Hey Nethendril!

    Thank you for using Enfold.

    Did you rescan the language before you translated the strings? Make sure that you’re on Tools > Localization > Themes > Enfold section.

    Regards,
    Ismael

    #335538

    Hi, yes i did a rescan.
    Don’t remember the exact path, but i whent to Themes tab and under Enfold i found Sv_SE and chose to Edit.

    #335917

    Hey!

    On my installation, sv_SE is named as Svenska/Sverige. It took me two rescans before the “Share on” string becomes available when editing. Please try to rescan this language file a few times then look for the “Share on” on avia_framework textdomain.

    Cheers!
    Ismael

    #336075

    Hi again Ismael!

    “Share on” was available from the start for me, but i still did a rescan since i read in other posts that this could be a good thing.
    I tried again this morning, did rescan and checked the translation for Svenska/Sverige. My translation for “Share on” was still there. I re-saved the translation, but to no effect. It still says “Share on” on when vieweing the website.

    Is it only possible to edit translations via this plugin and not through language files which i can include in my child theme?

    #336616

    Hi!

    Thank you for the update.

    Please post the login details and set it as a private reply. We would like to check it. What is the translation of “Share on” on your language?

    Best regards,
    Ismael

    #336660
    This reply has been marked as private.
    #336685

    I’ve translated “Share this Entry” to “Dela det här inlägget”.

    #337156

    Hey!

    I forgot to tell you to click “generate mo-file” after translating the string. It is working now but I’m not sure if that is the correct translation: http://www.novoadesign.se/funktionalitet-boomerang-solutions-hemsida/

    Best regards,
    Ismael

    #337669

    Aha, thanks alot Ismael.
    Didn’t think i had to “generate mo-file” when editing an existing language.

    Glad we managed to find a solution :)
    Have a nice weekend!

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Translations have no effect’ is closed to new replies.