Forums / Developer / Problem creating translations for extensions

Problem creating translations for extensions

Author Message

Eirik Alfstad Johansen

Wednesday 08 December 2004 1:43:23 am

Hi,

I have created extension with several template files including the i18n operator. I have then downloaded linguist and ezlupdate and created an empty translation using the following command:

ezlupdate.exe -u --extension extension/myextension

The translation.ts is then created in extension/myextension/translations/untranslated. So far so good.

I then translate some of the texts in translations.ts, put it in extension/myextension/translations/nor-NO/translation.ts, upload and clear cache, but still the extension templates display the default language.

I know that nor-NO is set in the site.ini of the siteaccess I'm viewing, so what else could I be doing wrong. AFAIK, there is no additional INI file/setting needed in order to get extension translations to work.

Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Wednesday 08 December 2004 1:47:37 am

FYI, the debug returns a whole lot of lines similar to:

Warning: ezi18n Dec 08 2004 10:44:49
No translation for file(translation.ts) in context(design/affiliate/commissionlevel): 'Commission level' with comment()

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Jan Borsodi

Wednesday 08 December 2004 3:01:02 am

You will need to add this to your <i>extension/myextension/settings/site.ini.append</i> file.

[RegionalSettings]
TranslationExtensions[]=myextension

Without this it won't look in your extension for translations.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Eirik Alfstad Johansen

Wednesday 08 December 2004 3:27:26 am

Thanks a lot, Jan. I added your tip to http://ez.no/ez_publish/documentation/development/extensions/translation as this is where I would have expected to find it.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/