Forums / General / Translation issue. eng-GB
Carlos Revillo
Tuesday 06 March 2007 3:01:42 am
Hi. i'm working with a bilingual site. when i installed Exponential, i choosed castillian as main languages and english (UK) for additional languages.
There is no eng-GB folder under share -> translations. So, i made one by myself. but when i upload this new translation.ts file under eng-GB folder, i get a fatal error
Fatal error: Undefined class name 'eztstranslator' in /home/desorden/public_html/tanta/kernel/common/i18n.php on line 151 Fatal error: Exponential did not finish its request The execution of Exponential was abruptly ended, the debug output is present below.
If i delete this folder, all goes as expected, but i would like to add strings to a translation file or something like that for my eng-GB version of my site.
any ideas?
Claudia Kosny
Tuesday 06 March 2007 3:24:05 am
Hi Carlos
eZ uses eng-GB as base language so usually there is no translation needed. Therefore some of the translation stuff only works for non-eng-GB languages, check e.g. line 121 in the i18n.php.
You can do the following a) try to remove all language restrictions from the translation process, which involves some kernel hacking and might cause problems if you don't catch everything b) create a new language which is eng-GB by another namec) base your translations on english as well and don't use translation for the eng-GB siteaccess
Option b) creates a bit of overhead as eZ has to translate strings that were already in EnglishOption c) means that you have to go through your templates and translate everything there first
Claudia