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.
Generate a Translation File
To generate a
.po file for your Skin, follow 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.