Tasks » How do I translate Tasks into my language?
Note, a translation kit can be found here.
Basically, all you do is make a copy of english.php in the languages directory, and translate all the strings to your language.
The string that needs to be translated is on the right side, with the key that the application uses to find the string on the left side:
$language->sample = array("key_1" => "This is the string to translate."
,"key_2" => "This is another string to translate."
);
Some strings have tokens (__0, __1, etc.) in them that will be replaced with actual data. The token is two underscore characters followed by a number. You can move the tokens around the string as you need to to make the sentance work best in your language. For example:
$language->sample = array("key_1" => "This string has __0 token." // number
,"key_2" => "This string shows the title (__0) of task __1." // title, number
);
Note that most special characters need to be encoded in their HTML entity equivalents. The exceptions are marked with // NO_HTML at the end. These are mostly:
- The $language->email strings. These are used in plain text e-mail and the special characters are not needed.
- The $language->messages strings that begin with 'js_'. These are used in JavaScript prompts and the HTML entities for the special characters are not displayed properly.
Here is a chart that might be helpful.
If you are doing a translation to a language like Chinese or Korean that uses multi-byte characters, make sure that name is in the $mb array in the html() function in functions.inc.php in your installation.
Then just send me the file you've created and I'll post it with the other language packs.