Translating a Wordpress theme
This is a short tutorial on how to properly translate a Wordpress theme. Mystique is used as example here. I will choose PoEdit as the translation application, since it’s the easiest to use because of the simple user interface.
…so, here are all the steps:
First download and install Poedit.
Select the theme you wish to translate and extract or copy the theme files into a new directory. In this example, I’m unzipping all the theme files inside the C:\mystique directory. Now open the PoEdit application, and create a new catalog (File > New catalog), or you can open an existing catalog from the theme directory, if the theme has one. For example, the en_US.po file for Mystique.
From the menu, select Catalog > settings and fill all the required information.

Don’t close the settings window yet. Click on the Paths tab and change the local path from 1st line with your path to the theme files, in our example C:\mystique
Click OK, then update the catalog (Catalog > Update from sources) to verify that your path to the theme is correct, and to update all the strings. You can also update the catalog from a existing .pot template, if the theme has one (that way you wouldn’t need to extract all the theme files on your computer).
If you don’t get any errors, you can start translating the theme by selecting each string in bold from the list, and typing the translation in editable area from the bottom. Here’s a sample phrase translated to French:

Be careful with the php values, such as %s, %2$s etc. Always include them in the translated string! If you want to hide some of them you can use html comments – for example if you want to hide the author link in Mystique (original string: Posted by %1$s in %2$s):
Posté <!-- par %1$s --> dans %2$s
When you’re finished, save your catalog by using the languagecode_COUNTRYCODE file naming convention, eg. as fr_FR, and upload the compiled catalog that was generated by PoEdit (eg. fr_FR.mo) to your server, in the appropriate theme language file directory. That’s it
Related resources:
WordPress in Your Language
Thank you for this tutorial!
I have just one question. How to activate it?
to activate your translation change the WPLANG constant in the wp-config.php file:
for example:
There are also plugins that can change that for you, if you don’t want to mess with the code…
I have wordpress in Portuguese with the definition file in WP_config
in pt_BR, but the theme continues in English. what do you think I should do?
thanks
I got the same problem. Where should I put the translated file in the server?
Tu es Français ?
Non, c’est un exemple
Ok, sinon j’aurai pu te traduire ton thème
Et j’aurai aussi pu te faire quelques proposition pour améliorer ton thème Mystique
there already is a french translation, but it’s outdated. you’re welcome to update it if you wish
Ok, no soucy
Te iubeeeesc ! :*
Nice theme..!!!!!!!!!!!!
Hi.
Great work
But can you tell me how i can change the theme language?
I have all the wordpress configurations in Portuguese but in theme is in English. :S
Thnaks my friend
I send to you my french translation of the mystique theme.
Thanks very nice Theme
Hello!
First, greate wok, Mistique is a very nice theme,
I have a question:
How to get the twitter’s link’s opens in a new window like target=”_blank”
the twiter’s open an kill the blog, because open in the same window?
Tanks for the help.
Sorry about my english…
great posts, I was thinking make my first theme, and then I found your tips here, thanks…
Great stuff. It took me a while to get the hang of it, but thanks
I was dumb enough to do through changing the files on the server, although i think i got it right ..
However the theme remains in English, whereas I made a Dutch translation? Any help?
Could you share this translation? I’m looking for a dutch translation
I have a dutch translation available for sharing for v1.6 this weekend.
Hi this program is fantastic! thanks a lot!
But i have a little problem i open the file it_IT from the theme Mistyque that i use on my site and i have modified 3 o 4 strings. No errors, and i save the file; then i up it with mi FTP on the server and i overwrite the old one.
Now i go to modifie the “wpconfig.php and i see that define (’WPLANG’, ‘it_IT‘); is already set on it_IT but my theme (you can see in the link) is in english how can i solve this problem? Couse is quite hard to translate every time i have to do an upgrade.
Please help me! Your themes are fantastic!!
PS: I have just updated my theme to the last one 1.62
How can I update my Translation files to you?
The last zh_CN version is not translated so well.