Introducing Solo Pine Mods | An affordable & reliable way to customize your theme

Okay
  Print

How do I translate my theme to another language?

Solo Pine's themes are written in English, though you are of course welcome to translate them to your language. While it's possible to go through each theme file and manually translate the appropriate text elements, we highly recommend using the program Poedit to translate your theme. It's easy and will save you LOTS of time.


  1. First, go to WP Dashboard > Settings > General > Site Language > Select your language > Save.
  2. Then, download & install the Poedit program.
  3. Open Poedit and click the "Create a new translation" option. Find your theme package on your computer that you previously downloaded from ThemeForest or Creative Market. 
    Within your theme's files, find the "lang" folder and select the "default.po" file.
  4. Select your language & country from the drop-down box that appears.
  5. A long list of text elements you may translate will appear in the box labeled "Source Text".

    Please note
    : You may not need to translate all of these elements. Many may be WP notification messages or similar that only you will see and your visitors will not see.
  6. Select the line within the "Source Text" box that you'd like to translate. When that line is highlighted, go down to the box labeled "Translation". Here, you can type the direct translation of the "Source Text" in whatever language you'll be using.

    Repeat this step for all of the "Source Text" elements you wish to translate.
  7. When done, click the "save" button and save the file within your theme's "lang" folder.


    IMPORTANT! You must save this new file with a name based on a specific format: aa_AA

    The first "aa" refers to ISO 639 two-letter language code (list found HERE).
    The second "AA" refers to an ISO 3166 two-letter country code (list found HERE).

    ( Example 1 )
    If translating to Danish, we would use the Danish language code of "da" and the Danish country code of "DK". The file name must be the language code in lowercase letters, followed by an underscore character, and lastly the language code in uppercase letters. So the finished file name would then be: "da_DK"

    ( Example 2 )
    If translating to Brazilian Portuguese, your file name would be: "pt_BR"

    Note: For the French language in Canada, please use "fr_FR".
    "fr_CA" is not recognized by WordPress.
  8. When you save the file, it will automatically create your .po format as well as an additional .mo format file of the same name.
  9. Via your FTP program, upload the .po & .mo files you just created to your theme's "lang" folder where it lives on your server.
  10. Lastly, in your WP Dashboard, remember to navigate to Settings > General > Site Language > and select your language from the list here. Save changes. 
  11. You're finished!

Please note: Sometimes a few text elements within your theme won't be automatically translated, requiring you to manually translate it within the theme files. If you find this happening, please check out our FAQ article on Where to find particular text elements to manually translate for help.


For more information regarding translating your theme's, check out: http://codex.wordpress.org/Translating_WordPress