Archived topic
Translation problem .po/.mo with Polylang
18 replies · Started by Viktor on September 20, 2018
Hi there,
I downloaded and edited the .po/.mo files for Bulgarian (bg_BG) and added them to gp-premium\lang\. This translated some of the backend but at the front end in the Blog section "Leave a comment" (for zero comments) and "# Comments" remain in English even though I have translated them manually in the .po file.
Any ides what might be going on? I use Polylang for managing the website languages.
Thanks a lot!
Hi there,
Those values are in the free theme, so you'd need to grab the translations from here: https://translate.wordpress.org/projects/wp-themes/generatepress
Then the file would go into wp-content/translations/themes.
Let me know if this helps or not :)
Hi Tom,
I got the same issue... my website have 3 languages portuguese, english and bulgarian... for the bulgarian I used PO archive from https://translate.wordpress.org/projects/wp-themes/generatepress.
and I did exactily what you said, but some terms didn't translated like fields in comment area and search field placeholder.
do you have any idea what may be?
And those terms are fully translated in the .po files you downloaded?
Yes, I checked :/
Just to confirm, where did you add the .po file? And what did you name it?
Hi,
well, when I reported the issue for you, I was testing only on my local version of the website.
I downloaded the files and renamed it to generatepress-bg_BG.po and generatepress-bg_BG.mo and put it in the wp-content/languages/themes folder. Now I put these same files in this same folder but in the online version and it worked.
Does that make sense?
Local vs live shouldn't matter, but it sounds like you're doing everything right. Maybe the wp-content/languages folder requires a live server? Super strange.
Hello,
I have the same problem. I went through your article https://docs.generatepress.com/article/uploading-translations/ and the translations are not visible on the site. I tried to translate comment section on my wodpress site but it's stuck in "English" language (Leave a comment, Post comment,..).
Is there any caching involved?
There shouldn't be.
Did you upload GeneratePress translations or GP Premium translations?
Hi, I exported GeneratePress po file from wodpres translation page, renamed as stated in the article and uploaded to the folder via ftp.
Hmm, that should do it for those particular strings.
Which language are you downloading?
Slovenian
And just to confirm, you exported both the .po and .mo files and named them like this:
generatepress-sl_SI.po
generatepress-sl_SI.mo
Then you uploaded them in wp-content/languages/themes?
Let me know :)
Hmm..sorry for not knowing but how can I export .mo file? :) There is only option for .po export on the wordpress page (or am I missing something).
EDIT: OK Looks like I missed the option for exporting .mo file. I would sugest to add this to your article. I will try uploading .mo file also.