Thyme has multi-language support. This allows you to choose which language to display the entire interface in. Existing languages are in the languages sub-folder under include. These files are not encoded and can be freely modified.
If you look at this folder's contents, you'll see our language selection is very sparse at the moment. We are seeking translators who are willing to translate Thyme in exchange for a free licensed version along with free upgrades for life!
Let's take a look at the en_US.php language file. Each language file has a few basic components. These are also explained in-depth in the file itself. The main items are:
- _CAL_EURO_DATE_ - With this defined as 1 or true, all dates in Thyme are displayed as dd-mm-YYYY instead of the US version of mm-dd-YYYY.
- _CHARSET_ - The charactor set to use in Thyme
- _LANG_NAME_ - The display name of the language
(Note: the below items are defined at the bottom of the file)
- _DATE_INT_FULL_ - How to display a date when using a full day, month, and year
- _DATE_INT_NOYR_ - How to display a date when using only the day and month
- $_cal_alphabet - Valid characters in this language's alphabet
- $_cal_weekdays - List of weekdays starting on Sunday
- $_cal_months - List of months starting on January where $_cal_months[1] is January
All other items in the file are direct translations in the format of:
define("_TERM_", "Translation");
For instance, if translating from English to Spanish, the following line:
define("_DELETE_", "Delete");
would become:
define("_DELETE_", "Eliminar");
To start translating Thyme, copy en_US.php to a name that suites your translation in the format of language abbreviation_country abbreviation.php. For instance, to begin translating Thyme to Brazillian Spanish, we would copy the file to es_BR.php. Then, since you've already chosen a language during setup, you'll have to edit include/config.php. Alter the _CAL_LANG_ setting to use your file by changing it to es_BR (note, not es_BR.php).
For a full list of ISO standard language abbreviations, see this list. You may view ISO standard country code abbreviations here.
Want to translate Thyme? Contact us!
|