Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm using finnish translation of wordpress. I found the fi.po file which contains all the translations, but for some reason, editing the contents wont edit the contents of the page.

Can I make changes to the translation?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You can make changes to the translation, yes, but it's not as simple as editing the text inside the fi.po file (or any PO file, for that matter). That's because WordPress actually uses another file, with an .MO extension, to render the translations. That extension is not meant to be read by humans, so you wouldn't be able to just open and translate it. It is compiled from a .PO file.

Anyway, it may seem complicated, but the workflow is actually simple:

1) open you fi.po file in a program which is meant for translating (not just text-editing), like Poedit. It's cross-platform, so it doesn't matter what OS you're using;

2) When you save the changes on the .PO file, it'll automatically compile the .MO for you, so you just have to take both files and overwrite the original ones for your changes to take effect.

Keep in mind that if you're changing translations from WordPress' official translations, or from third-party plug-ins, you might lose all your changes when you update.

Here's a bit more background on translating WordPress. And if you need help with configuring Poedit, you be sure to read this.

share|improve this answer
1  
I know that I will lose all the changes on update, but WinMerge is my friend :) –  Christian Sep 29 '12 at 14:07

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.