Monday 12 May 2008 4:23:52 am
hello all,
I have two siteaccess (french and english).I want to translate some words in english with the .ts file. My primary /main language is english(eng-GB).
first of all, i have created my extension call traductionkazadi. In extension/traduction/settings/site.ini i have add TranslationExtensions[]=traductionkazadi on [RegionalSettings] section and
[TemplateSettings] ExtensionAutoloadPath[]=traductionkazadi. secondly i have add ActiveExtensions[]=traductionkazadi on [ExtensionSettings] section of settings/override/site.ini to activate my extension.
after this i have create a file translation.ts in extension/traductionkazadi/translations/fre-FR. this file contains:"
<!DOCTYPE TS><TS>
<context>
<name>traductionkazadi</name>
<message>
<source>Pour creer un compte, remplir le formulaire ci-dessous:</source>
<translation>To create your account, fill the fields of the form below:</translation>
</message>
</context>
</TS>
" in my templates i have write this:" {"Pour creer un compte, remplir le formulaire ci-dessous:"|i18n('traductionkazadi')}
and in my french web site i have :
"to create your account ,fill the fields of the form below "
but in my english web site i have :" pour creer un compte, remplir le formulaire ci-dessous" (the words aren't translated). i don't know why it didn't works in my english web site. Please help me. thanks in advance.
The theory is when we know everything and nothing works.
The practice is when everything works and nobody knows why.
If the practice and theory are met, nothing works and we do not know why.
Albert Einstein
|