Tagged: Endold, translation
-
AuthorPosts
-
October 12, 2014 at 10:39 am #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, 2 months ago by Nethendril. Reason: Edit. Link to Codex didnt work, fixed
October 13, 2014 at 8:43 am #334706Hey 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,
IsmaelOctober 14, 2014 at 12:40 pm #335538Hi, 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.October 15, 2014 at 5:08 am #335917Hey!
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!
IsmaelOctober 15, 2014 at 12:34 pm #336075Hi 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?
October 16, 2014 at 8:29 am #336616Hi!
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,
IsmaelOctober 16, 2014 at 10:07 am #336660This reply has been marked as private.October 16, 2014 at 10:41 am #336685I’ve translated “Share this Entry” to “Dela det här inlägget”.
October 17, 2014 at 5:45 am #337156Hey!
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,
IsmaelOctober 18, 2014 at 12:33 pm #337669Aha, 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! -
AuthorPosts
- The topic ‘Translations have no effect’ is closed to new replies.