Themeforest

There are over 6800 spoken languages in the world and currently our Travelify theme uses one – English is translated in English, French, German, Hungarian, Italian, Spanish and Chinese. However, this theme is built they way that you can translate it with ease. We have already added default “.po” WordPress language files and you can start translation from there.

Please note! This tutorial will apply on most WordPress themes that are translation ready and not just Travelify or Pinbin so feel free to read further even if you are not using our themes.

How to translate any WordPress Theme?

1. First of all you will need to download .PO file editor like Poedit or other. It is possible to use any text editor but it will be so much easier to use Poedit than regular text edit so I strongly recommend to download it. It’s free, works on Mac, Windows and Linux and there is no reason not to use it.

Poedit-preview

2.  Second thing is to open default language files form your theme. In Travelify case it is located in languages folder inside theme folder. This file is called travelify.po. You should use this default file for translation but you need to create a new file when you are done. Most themes has the same structure and language files should be somewhere inside theme folder. There is chance that your theme is not ready for translation so it might take time to modify. If you are not developer it might be a pain to create translation support for theme.
travelify translation

3. Now in the Poedit click on original text one by one and write your translation underneath. Just like you can see iu the screenshot below. It will take some time to get through all of them so be patient. If you think that some translations you won’t need you can leave them as they are in the original language.
Wordpress theme translation
4. Now the most important part. When you are saving your file in theme language folder you should use proper language code. For instance if you have translated WordPress theme to German you should use “de_DE.po” as file name and “fr_FR.po” for French. This will make sure that WordPress understands what language you are referring to. For other languages codes please see this documentation.

translation filename

5. Now WordPress will use theme language the same as your WordPress language. If your WordPress dashboard uses French, don’t expect for theme to show German. Changing WordPress language will automatically change theme language if it is available in the theme language folder under proper name we discussed in Step 4.

6. Changing WordPress language is as easy as adding

define ('WPLANG', 'fr_FR');

to the “wp-config.php” file located at your WordPress installation root folder. You can download WP language files or entire WordPress installation in your language from here.

If you have translated Travelify or Pinbin WordPress themes you can send me “.po” language files and I will add them to default theme installation. I will feature your name on theme itself as well as I will give credit on this website. I really appreciate your support and will say a proper thank you! :)

If you have any questions regarding WordPress theme translation or any question related to our WordPress themes please don’t hesitate and leave your questions in comments below.

Update:

We have created a special page for our contributors!

Aigars

Frontend web developer and web designer specialized in free and premium WordPress theme development. Started to learn to code in early 2013 and now I am familiar with CSS/HTML/JavaScript (jQuery). Obsessed with application performance, user experience and simplicity.

This Post Has 48 Comments

  1. Chris

    Hi Aigars,
    Thanks for your tuto, i did a translation file for french language. I succeed in installing it onto my site, but i realize that somme texts didn’t change/appear in the po file.
    I can provide you my version, feel free to contact me by mail.

  2. Seamwills

    Hi Aigars

    Thanks for you great job, I love this theme and I’ve translated it into Chinese, I worked on 1.3.0 and I noticed there is one line missing in the original po file so the corresponding sentence keeps unchanged, wish you could fix it, the detail:

    Featured Slider -> How to use the featured slider?
    Create Post or Page and add featured image to it.

    I’m glad to translate the theme and I’m willing to share my work, you could email me to have the translated po file if you wish. :-)

  3. Aigars

    Tamas,

    Thank you for your contribution! Really appreciate it.

    Will add Hungarian translation to the next theme update. And of course I will add you to list of contributors.

    You can reach me via support[at]divilab.com.

    Btw, Awesome use of Travelify theme! :)

  4. Guilherme Santos

    Hello Aigars,

    I really liked Travelify theme and I’m translating it to Brazilian Portuguese.
    Are you interested to make this translation avaliable for everyone?

    Sincerely,

    Guilherme Santos

  5. Mario A. Rosato

    Hi Aigars! I’m bilingual Spanish/Italian and have translated to both languages. I will send the files to your email so you can make them available for everybody. I’m glad to say I’m not a programmer, just a beginner using WP, but the task was quite easy by following the step by step guide you provided. You’ve done an excellent job!

    1. Aigars

      Awesome! :)

      Please send me translation to suppport[at]divilab.com and I will respond to you ASAP.

      I will look into RTL formating when I will receive your translation because right now I don’t have any samples for testing.

    1. Aigars

      Daniel,

      Romanian language would be great!

      You can send translation files to support[at]divilab.com.

      Read more buttons translation are inside the same default travelify.po file. You just need to create a new file called ro_RO.po based on default language file.
      Let me know if you face any problems with translation.

  6. Axib

    I suggest you use poeditor.com for translating wordpress themes. It has tons of benefits, translators can work collaboratively in many languages and it supports pot, po, xls, xlsx, strings, xml, resx and properties files.

    1. Aigars

      Thank you for pointing this out! I see that these strings are missing from default translation files. I have already updated it and pushed to WordPress and Github.

      https://github.com/puikinsh/Dazzling
      http://wordpress.org/themes/dazzling/developers/

      Soon proper translation file will be available via automated update as well.

      Have you noticed that there are some other missing strings to translate?

      I would really appreciate if you could send translation files as well, so I can add them to theme installation.

      Thank you for your effort! I really appreciate it!

  7. Mervi

    I have translated about 50 % of the language file to swedish but I can´t figure out why it doesn´t seem to work. The file is named sv-SE.po and wordpress is set to show swedish. Most of the the text in the backend is swedish. Any ideas about what´s wrong?

    I can send you the translation I´ve done this far.

  8. kamildj

    Hi! I want to use Dazzling theme with a bilingual page. I’m using mqTranslate and everything works fine besides the theme – it won’t show in Polish. I uploaded Polish translation into /dazzling/languages (both .pl and .mo files) and set define(‘WPLANG’, ‘pl_PL’); but the theme does not want to switch to Polish (all the other things (posts/titles/menus) with language tags work perfectly). Any hints why?

  9. Sini

    Hi. I’ve been translating the pinbin theme into Finnish, and I’m using the Polylang plugin to translate the site I’m building. I’ve changed and added a few extra translatable strings into a child theme, but I can’t get the comments section to translate, nor have I found where to turn the strings translatable either. Basically, what I mean is that I can’t get strings like “[commenter] says”, “Logged in as”, or, for example, the post comment button to translate. Everything else is working great, but this bugs me. Any tips on how to achieve this?

    1. Aigars

      Hi,

      Pinbin theme needs some major overhaul and hopefully I will get my hands on it within few weeks. Your mentioned parts of currently are not possible to be translated via .po file.

      This was my first WordPress theme I ever created and there are many rough edges that needs to be polished and I am committed to do so.

      I will keep you posted.

      Sorry for my inconvenience.

Leave a Reply