Friday 24 March 2006 4:26:23 am
The translation files are named translation.ts (the same filename for each language) and located in /share/translations/locale. For example the Dutch translation is in the file /share/translations/dut-NL/translation.ts
Those translations are primarily for the admin interface. If you just want to translate some template texts for a specific siteaccess, it is better to put them in an extension. Create the following directory structure:
extensions
your_site // a name you choose
translations
locale1 // for example: dut-NL
translation.ts
locale2 // for example: ger-DE
translation.ts
Then put the following lines in /settings/siteaccess/your_siteaccess/site.ini.append[.php]:
[RegionalSettings]
Locale=locale
TextTranslation=enabled
TranslationExtensions[]=your_site
'locale' is the locale you want to use for this site access, for example dut-NL or ger-DE 'your_site' is the name of the directory you chose above. To create the translation.ts files, you can use the tool ezlupdate, which scans your templates for the i18n operator and creates entries for each message to be translated. You can also create the files manually, see the files in /share/translations for as an example of the general structure.
|