- This topic has 16 replies, 5 voices, and was last updated 7 years, 10 months ago by
Tom.
-
AuthorPosts
-
October 18, 2014 at 3:26 pm #40019
David Miii Niii
Hi, Tom.
I’m translating this awesome theme to spanish, but i’ve got some problems with the installation in my child theme. This is the first time i translate a theme, so i’m a newby.
If i copy the files “es_ES.mo” and “es_ES.po” to the parent’s languages directory (“/wp-content/themes/generatepress/languages/”), it works ok. The problem is, when the theme is updated, i lose the translation…
So i guess i should put those files in the child directory (“/wp-content/themes/GeneratePressMiiiNiiiTheme/languages/”), but that doesn’t work π .
What am i missing?Thanks.
October 18, 2014 at 5:47 pm #40030Tom
Lead DeveloperLead DeveloperHi David,
I would love to include the translation in the parent theme permanently – that way you wouldn’t lose it on update?
Let me know if you’d be willing to send it over π
Thanks!
October 18, 2014 at 11:06 pm #40035David Miii Niii
October 19, 2014 at 11:23 am #40256Tom
Lead DeveloperLead DeveloperHi David,
Can you possibly email me the .po and .mo files to support@generatepress.com? That would be awesome! π
Thanks again – I really appreciate it!
October 19, 2014 at 1:15 pm #40321David Miii Niii
Ok, i’ll send it in a moment. I guess the link (to the file) i posted in the last comment have been blocked by the anti spam system, or something, uh?
October 20, 2014 at 10:41 am #40499Tom
Lead DeveloperLead DeveloperReceived – thanks again!
I’ve added the translation to the next version, so you can go ahead and add those files to the “languages” folder in the “generatepress” folder, and when you update, the files will still be there.
Thanks!
October 20, 2014 at 1:13 pm #40527David Miii Niii
Perfect π
Happy to contribute to this great theme!
GreetsOctober 30, 2014 at 2:54 am #42784Radek
Hi Tom,
could You please tell us anyway how to use translation files of other (not supported) languages at childtheme directory ?
Thanx
October 30, 2014 at 11:08 am #42833Tom
Lead DeveloperLead DeveloperHi Radek,
This site has some good info on translating a theme: http://premium.wpmudev.org/blog/how-to-translate-a-wordpress-theme/
Basically, you need Poedit, and then open the generatepress.pot file in the “languages” folder.
Then you can translate whatever strings you want π
Hope this helps.
October 30, 2014 at 1:17 pm #42873Radek
Sorry, but question was how use translated files at childtheme directory, so upgrading parrent theme doesnt mean to reupload my files each time. So how to tell generatepress to use files from: /wp-content/themes/GeneratePressMyChildTheme/languages/ ?
Hope You understand now what I mean with my bad english π
October 30, 2014 at 1:28 pm #42885Tom
Lead DeveloperLead DeveloperAh sorry about that.
Maybe this will help?: http://ronangelo.com/add-language-files-on-a-wordpress-child-theme/
October 30, 2014 at 1:41 pm #42886Radek
Thanx, sounds good, I’ll try tomorrow.
October 31, 2014 at 1:08 am #42976Radek
Works, maybe add this to knowledgebase will be fine π
January 23, 2016 at 2:05 pm #167574Daniel
Hi, i need help please.
Went up to my server files, then edit the file by placing define(βWPLANGβ, βes_ESβ ); in wpconfig.php but I can not update the translation.
Help me appreciate the translation.January 23, 2016 at 5:38 pm #167601Tom
Lead DeveloperLead DeveloperHi there,
You should be able to choose your language in “Settings > General” now at the bottom.
You can edit the translation by opening the language file in the wp-content/generateporess/languages folder.
Let me know if you need more info π
-
AuthorPosts
- You must be logged in to reply to this topic.