Contents |
Introduction
In case you wish to translate one of our themes to another language then here is a tutorial on how to do so.
In case you are wanting to make your site bilingual, meaning your content is available in multiple languages then you will need to use a plugin such as QTranslate or WPML.
http://mysitemyway.com/docs/index.php/QTranslate
http://mysitemyway.com/docs/index.php/Using_WPML
Setting the default language for Wordpress
After installing Wordpress open up your wp-config.php file and around line 72 you should see this,
define('WPLANG', '');
This is where you set the language of your Wordpress installation. For example if you wanted to change your language to french then you would do this,
define ('WPLANG', 'fr_FR');
Translating the theme .pot file
Navigate to your theme folder, /wp-content/themes/[your_theme]/, and you should see a folder called /languages/. Inside you'll find the theme .pot file.
Inside this file you'll find all of the theme texts ready to be translated. The best way to translate them is with a program called Poedit. http://www.poedit.net/
After installing Poedit you'll open up your .pot file and start translating all of the texts, http://mysitemyway.com/docs/index.php/Using_WPML#Theme_Translation, after saving your changes Poedit will create a .mo file for you.
Uploading the .mo file
First off rename your .mo file to whatever language code you are using. In our above example we set the Wordpress language to french so in this case we would rename our .mo file to fr_FR.mo
The first two letters are the language code and the last two are the country code.
Next upload your .mo file into /wp-content/themes/[your_theme]/languages/ for Wordpress to pick it up. If you do not have a languages folder then go ahead and create one.
More on language codes
If your confused on which language or country code you should be using you can look it up here,
http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Language-Codes http://www.gnu.org/software/gettext/manual/html_chapter/gettext_16.html#Country-Codes
Community translated .mo files
Dutch: by hydra - http://mysitemyway.com/support/topic/theme-translation-uploads













