WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new to WordPress. two weeks ago I downloaded a theme for my Arabic language blog, and the theme is scripted in English but it contains a folder called languages/ and inside it has two files one is languages/default.po and the other is languages/default.mo. the developer told me that I can use these for translating the theme to my local language. But I have no idea how to use them. So is there another file I have to make?

The default.po file have a similar structure like this:

  #: ../author.php:68 ../page-template-archives.php:31
  msgid "Recently Added"
  msgstr ""

By the way, I googled this but didn't find a specific technique.

share|improve this question
up vote 1 down vote accepted

A translatable WordPress theme is a good way to interact with the audience with the language you desire it to present itself. There are many resources available over the Internet, and most of them worked actually. I don't know why you find them not working for you. Anyways, I found the following tutorial nicely explained the matter so that you can proceed step by step to translate your theme:

The article explained the way more details. You will need a mini software named PO Edit. Installing the software will require your email and password one time. Then opening the .po file into the software you will get a screen like below:
PO Edit screen

On the portion top, the translatable strings are there. Click on each string, and you will get it selected on the screen below-top, i.e. Here in this image the "Category Archives:" is selected. To translate the string just type your translating string in your language on the portion at the bottom, i.e. Here in this image "Translate here..." is the string will replace the original string "Category Archives:".

Please remember:

  • Translate being with the syntax, like: the string "Category Archives:" should translate into something that has a colon (:) at the end, for example: "My Archives:".
  • Do not change any code, like: %s, %1$s etc.

And finally you have to change your WordPress' wp-config.php file to support your language. In your case the language code would be ar for Arabic:

define('WPLANG', 'ar');

You can find all the language code here in Codex. I recommend following the tutorial and it will guide you to success inshALLAH.

share|improve this answer
many thanks.. it seems good – Ali Saleem Dec 3 '13 at 1:56

Your Answer


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.