This page is part of the Tutorials: Internationalization documentation.
Follow the steps below to translate a Skin into your language.
Download the poEdit translation software, and install it on your computer.
Download or Generate a Translation File
For your convenience, we have generated translations for the official DIYthemes Skins, which you can download and use to save some time.
Note the version number in parentheses next to the Skin’s name — if you’re using a different version of the Skin, the translation file may not be compatible with that version, and so you should generate your own file instead.
To download the
.po file for your Skin, right click on the appropriate link below, then choose save as; when you save the file, remove the
.txt extension from its name.
- Classic Responsive (1.0)
- Promo Skin (1.1)
- Social Triggers – Aweber (1.0.1)
- Social Triggers – MailChimp (1.0.1)
- Pearsonified (1.0.1)
If you need to generate a
.po file for your own Skin (either because one is not provided in the list above, or you’re using a different version of the Skin), you can do that by following these instructions.
Translate the File
In poEdit, open the
.pofile for your Skin.
From the poEdit menu, select File → Save As, and change the file name to a new one which uses a format of
llis the 2 letter code for your language, and
CCis the 2 letter code for your country.
For example, for US English the file would be named
Translate the strings in the new
Save the file (ctrl-S). Poedit should generate a
.mofile in the same directory as your original
.pofile (with a name corresponding to the one you designated in step 2).
Implement the Translation
Access your server via FTP, and navigate to the
Open the folder for your Skin, and create a new folder named
ll_CC.pofiles to the new
languagesfolder you just created.
Configure the Skin to use your language file, by adding this line to your
name_spacewith the appropriate namespace for your skin:
load_theme_textdomain('thesis', THESIS_USER_SKIN . '/languages'); load_theme_textdomain('name_space', THESIS_USER_SKIN . '/languages');
Here are the name space references for the official DIYthemes Skins:
- Classic Responsive:
- Social Triggers:
Important: Remember to maintain a backup copy of your
.mo files on your local computer, in the event that you update to a new version of the Skin. Due to the way automatic updates work in WordPress, you may need to re-upload your
.mo file to the
/languages folder again after the update is complete.