Out theme is compatible with most of the multilingual and translating plugins like wpml, qTranslate. If you want to create an own language file, it’s very easy.
- Select in the admin panel under Settings -> General -> Site Language the language you want to use
- Download & install Poedit
- You need this programm to translate the .pot-file (untranslated language file with all strings) to the language you want to use and save it as .po & .mo files
- You can find it under: http://poedit.net/
- Open the /wp-content/themes/pinpossible/languages/xx_XX.pot file with Poedit
- Translate all the strings
- Save the file as .po & .mo-file
- The files should have following name:
- LANGUAGECODE_COUNTRYCODE.po
- LANGUAGECODE_COUNTRYCODE.mo
- If you don’t know the string you need to use for “LANGUAGECODE_COUNTRYCODE”, just have a look into your /wp-config.php file under define( ‘WPLANG’, * );
There should be written something like “de_DE” for the german localization. So name your file de_DE.po & de_DE.mo
- The files should have following name:
- Upload the new language files (.po & .mo) to one of the folders
- Main theme
- /wp-content/themes/pinpossible/languages/
- Child theme
I recommend you to use a child theme, so after theme updates your language files will not be overwritten- /wp-content/themes/pinpossible-child/languages/
- WordPress language folder
Here you must add the themes name as prefix of the file names (e.g. pinpossible-de_DE.po, pinpossible-de_DE.mo)- /wp-content/languages/themes/
- After that just reload the page. Your translated strings should work now
- Main theme