How to translate Kauri ?
Our buyer Mark (Collaboration) made a small tutorial on how to translate Kauri:
- Install and configure WordPress and Kauri Theme following the provided guidelines.
- After making sure, that everything works, as it is supposed to, make a full backup of all files.
- Download the default language files for the Kauri Theme from the url ([YOUR DOMAIN ]/wp-content/themes/[YOUR KAURI VERSION ]/languages/). The files are named “kauri.pot” and “kauri.mo”.
- Change the file type of “Kauri.pot” to “Kauri.po”, as the suggested translation software (“Poedit”) only recognises this file type.
- Use a program like “Poedit” (http://www.poedit.net) to translate the english version of the Kauri Theme into your preferred language. It is very simple. The english text is shown in a form field named something like “Original Text”, and then you enter the new text into a form field named “Translation”.
- You will have to rename the language file according to your chosen language. For the Danish language the file should be named “da_DK.po” (changed from “Kauri.po”). A list of correct file names for different languages can be found here: http://codex.wordpress.org/WordPress_in_Your_Language
- After you have translated all the words and sentences, you want to, save the file. Before doing so, it is very important, that you under “Settings” in “Poedit” have chosen to “Make a .mo-file when saving”. This will automatically save a .po-file and a .mo-file (e.g. “da_DK.po” and “da_DK.mo”). Upload these files to the language folder of the Kauri Theme ([YOUR DOMAIN ]/wp-content/themes/[YOUR KAURI VERSION ]/languages/).
- The last thing you need to do is to tell WordPress to use your language version (thanks alligatorstudio :)). This is done by editing the file “wp-config.php”, which is in the root of your WordPress installation. Around line 70 (or close by) change the line “define (‘WPLANG’, ‘en_US’);” to your language version (same as new file names), e.g. “define (‘WPLANG’, ‘da_DK’);” (do not use citation marks :)) Also make sure to use the correct hyphens like: ’ and not ´ for it to work (use same as in the file “wp-config.php”). And that is it. Very quick, clean and works perfectly.