Community Forums › Forums › Internationalization and Translations › Theme translations don't work?
Tagged: french translation
- This topic has 6 replies, 5 voices, and was last updated 9 years ago by Chrys.
-
AuthorPosts
-
January 28, 2014 at 4:34 am #87451Arom77Member
Hi,
I tried to translate Executive Pro and Beautiful Pro in a multisite network.
For example, widget titles in the admin widget area are in english and I want them in french.
I read this http://www.studiopress.com/tips/translating-studiopress-theme.htm and ended up with .po and .mo files
For Executive Pro I named my file as following: used executive-fr_FR.mo
For Beautifl Pro I named my file as following: executive-fr_FR.mo
But translations don't work.Is the name not correct?
Or maybe it's related to the fact I'm using Genesis translations plugin? If so, how can I do?
Best Regards
http://monsitedentiste.comJanuary 28, 2014 at 9:17 am #87508AnitaCKeymasterI sent a tweet out for assistance. Someone should respond shortly.
Need help with customization or troubleshooting? Reach out to me.
January 28, 2014 at 9:30 am #87511webfocusdesignParticipantHi Arome77,
Did you use POEdit as that page you linked to instructed? It will name the .po and .mo files correctly on its own when you save. No need to rename them.
Also, you say "widget titles in the admin widget area are in english and I want them in french", do you mean the name of the widgets provided by WordPress (like Calendar, Custom Menu or Recent Comments) or the widget titles you enter yourself? For the latter, you'll need to renter the titles in French. Theme translation won't help with that as they are not related.
January 28, 2014 at 9:31 am #87512Arom77MemberHi @anitac
Actually I found the answer đŸ˜‰
The name was not correct. It's just fr_FR.mo (and not themename-fr_FR.mo).Thanks!
January 28, 2014 at 10:23 am #87525AnitaCKeymaster@arom77, also check out the dialogue going on over on my Twitter - https://twitter.com/TheCre8tiveDiva/status/428184955407966208. Some of them cannot make it to the forum right now, so read those tweets.
Need help with customization or troubleshooting? Reach out to me.
January 28, 2014 at 10:38 am #87526Grégoire NoyelleMemberHello
For Child theme two things to do:
1- in functions.php add:
load_child_theme_textdomain( 'theme-name', get_stylesheet_directory() . '/lib-gn/language-theme' );
`
The language-theme is my folder for all po, mo files and the 'theme-name' is the localization name.
2. for your mo and po files, just use this names for french:
fr_FR.mo
fr_FR.poThat's all
CheersSeptember 14, 2015 at 4:46 am #165395ChrysMemberHi,
I don't know if this post will still have an answer but I'll try.
@Grégoire Noyelle, I managed to have my translations in genesis, no problem about that. But someone on a post I wrote about how to keep your translation when genesis updates, suggested that I'll put the fr_FR.mo and fr_FR.po with the child theme name so (themename-fr_FR.mo etc) in wp-content>languages>themes. But that doesn't work if i try that. Is that because there is a specificity with Genesis and whatever you do, you should call the translation in functions.php?
I'd like to know just for my knowledge...Kind regards
Chrys
-
AuthorPosts
- You must be logged in to reply to this topic.