Translating Tuskfish to another language
15 December 2017 | 35 views | Tags: Documentation
At present the default installation of Tuskfish is only available in English (Thai is on the way) but this is easy to fix:
- Make a copy of the file trust_path/libraries/tuskfish/language/english.php and give it the name of your own preferred language. For example, for Thai you would create trust_path/libraries/tuskfish/language/thai.php.
- Edit the file and translate all the English phrases into your own language.
- Open the file trust_path/libraries/tuskfish/configuration/config.php and change the TFISH_DEFAULT_LANGUAGE constant to point at your translation, in this example (Thai) it would be:
define("TFISH_DEFAULT_LANGUAGE", TFISH_LANGUAGE_PATH . "thai.php");
Don’t forget to reset the permissions of config.php to 0400, if necessary.
Your site should now appear in the new language. Please email your translated language file to firstname.lastname@example.org and I will think about including it in the project (subject to quality checks). Alter the comments at the top of the file to your own name, to be credited for your work.
Copyright, all rights reserved.