As of version 0.25 it's possible to translate the user interface of WikkiTikkiTavi. Shipping with the 0.25 version is only the default version, as we hope that the community as a whole will contribute in providing other languages to be included in later versions.
This page provides links to translation which are available, even though not included in the latest distribution, and is the place to add new translations. And how to change the language of your local Tavi installation. After these sections are some instructions on how to translate.
For most of the translations the following entries are missing. Could you please update these as soon as possible? Listed in reverse order of addition.
If added/changed before 2004-03-31T1200 CET, they will make into the new 0.26-version of 'Tavi. If not, they will still make it, but be replaced by english texts... Do add a note of your addition on TaviTranslation/ExistingTranslations ;-(
Also see TaviTranslation/ExistingTranslations for a table view, which also compares which version the different translations are.
The language of your Tavi-installation depends on the defintion of the LANGUAGE_CODE-variable as set in your config.php, and on which files are included in your lang-dir in your actual installation. To change the language you should have a line in your config.php like:
define('LANGUAGE_CODE', 'fr');
The examples states that one wants the french version, by using the two letter abbreviation of the french, that is fr. This will make 'Tavi look for a file called lang_fr.php in the lang-dir of your installation. (Note this directory is new as of version 0.25) If the file is present it will be used, and if not present 'Tavi will default to use the default language of english.
You could either use the files provided in the lang-directory of your installation, or you could make a copy of the version provided from one of the subpages of this page. Create your new version, and edit at will. Note that on this site, the syntax to present a language file is:
Name of file, i.e. lang_fr.php <phpcode> ... The actual file ... </phpcode> Any comments if any...
This will from time to time be checked by the developers, and included into the main distribution. Please be careful to keep any punctuation marks within the language files.
Note that this translation doesn't give you the option to test your translation. If you want to do so, then you need to store the translated language file into the lang-dir, and change your configuration as described in the previous section.
After create the lang_xx.php in lang folder and edit config.php the translation not load, that's because a error in the definition of the variable 'LANGUAGE_CODE' to fix this error change:
init.php located in lib folder and edit the line number 43 ('LANGUAGE_CODE') and change:
// Choose a textual language for this wiki
if (defined(LANGUAGE_CODE)) {
require('lang/lang_'.LANGUAGE_CODE .'.php');
} else {
require('lang/default.php');
}
in this:
// Choose a textual language for this wiki
if (defined('LANGUAGE_CODE')) {
require('lang/lang_'.LANGUAGE_CODE .'.php');
} else {
require('lang/default.php');
}
This issue has been fixed in upcoming release 0.26. This and all the following changes are available in the latest CVS-release --EvenHolen
As stated by OttoHerrmann (and the chinese translator) there does not yet exist a way to translate the template/prefs.php. This is an error which will be corrected shortly, but if you want to translate before this is fixed then please provide a version of this file as well at the lang_xx.php-file.