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/

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:34:46
Script start
Timing: Jan 18 2025 19:34:46
Module start 'layout'
Timing: Jan 18 2025 19:34:46
Module start 'content'
Timing: Jan 18 2025 19:34:46
Module end 'content'
Timing: Jan 18 2025 19:34:46
Script end

Main resources:

Total runtime0.0170 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 589.1641152.6406
Module start 'layout' 0.00680.0039 741.804739.4766
Module start 'content' 0.01070.0044 781.281393.4922
Module end 'content' 0.01510.0019 874.773434.3047
Script end 0.0170  909.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002514.8349140.0002
Check MTime0.00116.6001140.0001
Mysql Total
Database connection0.00084.533710.0008
Mysqli_queries0.004425.870630.0015
Looping result0.00000.134610.0000
Template Total0.00159.110.0015
Template load0.00084.574410.0008
Template processing0.00084.469210.0008
Override
Cache load0.00053.129010.0005
General
dbfile0.00031.634680.0000
String conversion0.00000.058940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs