X

Check out our 2014 Halloween Special Offer

6

How to translate the Theme Junkie WordPress themes to your language

One of the great features of Theme Junkie themes is that our themes are Internationalized (I18n). In simple language, it means that you can translate any of our themes in your own language! Here, I explain how you can translate a theme.

1. Download and install PoEdit.

We need PoEdit to translate a theme. Its a free software and its available for Mac, Windows and Linux. Download PoEdit from this page.

2. Create a new catalog (the local language file)

Start PoEdit and click on the File menu and select the option New catalog from POT file.

This will open the file dialog box. Go to the languages folder of the theme. Select All Files from the file dialog box, and open the en_US.po file in the languages folder.

Now PoEdit will ask you for various configuration options. The most important thing here is to choose the correct country and language you are translating to.

In the remaining fields of the configuration window, fill the required information or just leave them empty.

Now click on the Paths tab and change the path variable to the place where your theme files are located.

Then press OK.

Now PoEdit will ask you to name the file. Its very important to name the file correctly. The naming convention for these files is languageCode_countryCode. The language code must be in lower case while the country code should be in upper case. So, if you are translating the theme for UK English, the file name will be en_UK. Similarly, for translation to french, it will be fr_FR and so on. You can find a list of language codes at this page and country codes here.

3. Translate The Theme

This is the step where we will actually translate the theme. After Step 2 above, you’ll see the standard interface of PoEdit where the left panel contain the strings in the original language and the right panel containing the translations. The right panel will be empty as we haven’t started the translation yet.

Start translating each string one by one. Click on the first string and press Tab button. This will take you to the translation box in the bottom. Type the translation here. Your change will reflect immediately in the right panel. Once you are done with this string, press Enter and move on to the second string. Repeat this procedure until all the strings are translated. After the translation is done, save the file.

4. Upload The Files To Your Server

When you save the catalog file in Step 3 above, PoEdit will create two files, a .po file and a .mo file. Upload both these files to the languages directory of your theme and you are done. If you’re using a localized version of WordPress, your template should now be automatically localized.

5. Questions? Issues?

If you have any questions or doubts then feel free to use the comments form below. If the questions are theme specific, then use our support forums. Happy Translating!

About Roy
Theme Junkie Co-founder. You may Follow us on Twitter or Become our fan on Facebook.

6 Responses to “How to translate the Theme Junkie WordPress themes to your language”

  1. Agent Wordpress
    May 28, 2010 at 10:51 pm #

    Very nice tutorials. I was able to translate my wordpress theme easily by following this tutorial. Thanks a lot for help :)

  2. Eljolras
    May 29, 2010 at 12:24 am #

    Hi,
    thanks for this nice guide but would you give more details for the “languages” folder’s location? Thanks.

    • Roy
      May 29, 2010 at 2:49 am #

      It’s /themename/languages

      Currently the translation feature is available in NewsTube and Bigfoot theme, and we will update the other themes soon.

      • Yann
        June 2, 2010 at 1:45 am #

        Hi,
        And the Portal Theme ? Translate possible ?

        Thanks

        • Roy
          June 2, 2010 at 5:54 am #

          Will be possible soon, we are updating the Portal theme.

  3. Eljolras
    June 12, 2010 at 5:51 am #

    and I am waiting for Newswire update :)