- This topic has 16 replies, 5 voices, and was last updated 4 years, 8 months ago by Tom.
October 18, 2014 at 3:26 pm #40019David Miii Niii
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 #40030TomLead DeveloperLead Developer
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 NiiiOctober 19, 2014 at 11:23 am #40256TomLead DeveloperLead Developer
Can you possibly email me the .po and .mo files to email@example.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 #40499TomLead DeveloperLead Developer
Received – 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
Happy to contribute to this great theme!
GreetsOctober 30, 2014 at 2:54 am #42784Radek
could You please tell us anyway how to use translation files of other (not supported) languages at childtheme directory ?
ThanxOctober 30, 2014 at 11:08 am #42833TomLead DeveloperLead Developer
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 #42885TomLead DeveloperLead Developer
Ah 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 #167601TomLead DeveloperLead Developer
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 🙂
- You must be logged in to reply to this topic.