Community Forums › Forums › Internationalization and Translations › Genesis Translations
Tagged: custom translation, genesis sample, translation
- This topic has 42 replies, 2 voices, and was last updated 1 year, 6 months ago by Remkus de Vries.
-
AuthorPosts
-
December 6, 2012 at 2:33 am #3537Remkus de VriesMember
Hi there!
For a while now we have been working with GlotPress to translate Genesis into the various languages out there. These translations would not have been there if not for the help of all the volunteers out there.
How can I get my translation files?
Good question, glad you asked We have a few options for you.Use the Genesis Translations plugin
An alternative option is to you my Genesis Translations plugin. Installing this plugin will take away all the steps mentioned above and will leave you with an easy way to translate your Genesis installation. But hey, what if my translation is not available on http://translate.studiopress.com/? Again, glad you asked You would still have to register on our translations site ( you can do that here ) and you can contact me afterwards so I can add your language to the specific project.Download them from directly
Via http://translate.studiopress.com/ you are able to download your translation files, though you have to be registered on our translation site to actually download them. You can do that here:http://translate.studiopress.com/home/ Next you should navigate to project you need translated and when you have found that page you will see on the bottom left a link that will allow you to export the translation files. Mind you, you need both the .po and the .mo files. After you have downloaded those two files you have to to one additional thing and this is important, you have to rename them to your language setting. The same settings you have in your wp-config.php file. For example, if you would like to use the Dutch translation files, you would export the .po and the .mo files. When downloaded those files will have the following name: genesis-framework-genesis-18-nl.po and genesis-framework-genesis-18-nl.mo.You will have to rename those files to reflect the language code in your wp-config.php file. This would mean I would have to rename those files - as the Dutch language code is nl_NL - to nl_NL.po and nl_NL.mo. After having renamed those files, you need to upload those files to the following folder:
/wp-content/themes/genesis/lib/languages/
That's it. These files will be deleted each time you update Genesis though. If you'd like to maintain translation files to stay intact after updating, there is a tutorial how to fix that: http://remkusdevries.com/maintain-translation-upgrade/
Translate the Genesis Framework with the Genesis Translations plugin.
December 6, 2012 at 11:34 am #3603Grégoire NoyelleMemberHi Remkus
Before I have an GlotPress account. Did you keep it?
When I use the same credential, it stop workingThanks
Grégoire
December 6, 2012 at 11:43 am #3607Remkus de VriesMemberSomething went wrong in the migration I guess. I've notified the SP folks so I'm hoping for a speedy fix 🙂
Translate the Genesis Framework with the Genesis Translations plugin.
March 21, 2013 at 8:44 am #29949ERRETREMemberThis reply has been marked as private.August 8, 2013 at 5:01 pm #55124rednetMemberDear Friend,
I’ve problem to translate the “Search Form Box” in the Serenity Theme,
I’ve these:
- WordPress 3.6
- Serenity Child Theme 1.0.2
- Genesis Framework 1.9.2When I had the Genesis version 1.8.1 search box was perfectly translated into Spanish and when I update the version of genesis, that translation disappeared, and now is in English.
How do I translate that?
Regards,
August 29, 2013 at 8:56 am #59533Studio Fotografico studio154ParticipantHi everybody,
can you help me to find Premise italian translation?
Is there something that permit me to do this?many thanks
September 26, 2013 at 9:52 am #64299lucaslemMemberHello,
I am using your plugin with great success on a multisite install (main site = eng, sub-site = french).
I have changed the "read more" for excerpts and while it works in english, I cannot get it to display in french. Here is my code. Any advice would be welcome. Thanks!
//* Changing excerpt more - display where "read more tag" is used. add_filter('excerpt_more', 'auto_excerpt_more'); function auto_excerpt_more($more) { if ( 'fr_FR' == $language ) { return '… <a href="'.get_permalink().'" rel="nofollow">Lire</a>'; } else { return '… <a href="'.get_permalink().'" rel="nofollow">Read</a>'; } }
September 26, 2013 at 9:57 am #64301Remkus de VriesMemberYou can't check for a variable to be true if you're not loading that variable inside your function. But apart from that, I don't think this is the best way to do this. I believe this should be solved by using proper translation files. Either way, it's outside of the scope of my plugin 🙂
Translate the Genesis Framework with the Genesis Translations plugin.
September 26, 2013 at 10:01 am #64302lucaslemMemberThanks Remkus. I suppose you mean I should create a language file for my child theme. Can you point me in the direction of a tutorial for creating such files? I am using the CodeStyling Localization plugin but I can't find the info. Thanks.
October 6, 2013 at 3:40 pm #65591lucaslemMemberHi again Remkus,
I have followed your advice and am trying to do this using "proper translation files". I have followed your instructions here (so that I don't lose translations in future) and have both the .po and .mo file in my child theme folder.
I have some text inside custom call-to-action buttons which I need to translate. My hope was that I would be able to add custom strings to the .po file but it does not seem possible. Any ideas how I might go about adding a few strings to my .po file and then regenerating an .mo from that? Or do I need to create an entirely separate file? If so, do I just dump them in the same languages folder? Any advice or links to any tutorials would be appreciated.
October 6, 2013 at 6:31 pm #65598lucaslemMemberNever mind, I found the solution by downloading the Genesis translation files for the main translation work and then using
load_child_theme_textdomain()
for my child theme strings. This post was a huge help in figuring out how to bring it altogether.Thanks!
November 8, 2013 at 9:16 am #71680dnjeelMemberHi Remkus,
Thanks for the translate plugin! I wonder if it would be possible that all child themes have one combined language file per language? Now every child theme has it own translation, but I guess that 95% of all strings that needs to be translated are the same in every child theme, if we merge them to one file per language it would be faster to translate all themes.
What do you think guys?
November 8, 2013 at 11:34 am #71696Remkus de VriesMemberUltimately that's not up to me. I don't build the themes here, so that's something the StudioPress team could consider. Best to send them a ticket and request this.
Translate the Genesis Framework with the Genesis Translations plugin.
November 18, 2013 at 11:52 am #73979dnjeelMemberRemkus,
Can you add the Eleven40 theme and the genesis-sample theme to the child theme translations for Swedish language?
Thanks!
November 18, 2013 at 12:17 pm #73981Remkus de VriesMemberDone. Though the Genesis Sample Theme doesn't have any text strings and works right out of the box with just the Genesis Translations plugin.
Translate the Genesis Framework with the Genesis Translations plugin.
November 18, 2013 at 12:26 pm #73983Tatiana SantosMemberHello guys!
I am having a hard time to translate Genesis and Modern Blogger Pro child theme to pt_BR.
I already changed the wp.config.php to pt_BR but nothing happens. I also installed Genesis Translations but nothing happens.
I got POedit but I can't find the .po file of the child theme. I know I must create it but which is the font file it should read in order for me to modify?
*I'm lost* Please help. My site is http://www.senhorpet.com
Brazilian blogger
November 23, 2013 at 4:02 pm #75300RGeenenMemberThis reply has been marked as private.November 26, 2013 at 10:08 pm #75792violacaseMember@lucaslem
Thanks for sharing that post. Very helpful.November 26, 2013 at 10:11 pm #75794November 27, 2013 at 1:52 pm #75922Tatiana SantosMemberHello @violacase !
Well, I am not that advanced so the most I could do was to mess up my back admin which now links n buttons appear the code and not the text but all in english. Don't know how to get back to english =/
Brazilian blogger
-
AuthorPosts
- You must be logged in to reply to this topic.