Strange behaviour of eng-GB and eng-US

Author Message

Heiner Wurbs

Thursday 28 September 2006 3:50:17 am

Hi,

I found a very strange behaviour concerning the language codes:

In my site.ini I have the following:

[RegionalSettings]
Locale=eng-GB
ContentObjectLocale=eng-GB
SiteLanguageList[]=eng-GB
TextTranslation=enabled

[ContentSettings]
TranslationList=eng-GB

To use this

{"salutation"|i18n( 'mycontent/texts' )}

, the system should search for a share/translations/eng-GB/translation.ts file. But there is nothing like this.

Even the system looks neither in the eng-US nor in the untranslated. If I create a eng-GB directory and cop the translation.ts file, then it is working.

My question is now, how does this eng-GB is working ?

Regards
Heiner

Claudia Kosny

Thursday 28 September 2006 12:14:49 pm

Hello Heiner

eng-GB is thought to be the default language - all the text pieces used in the templates are in eng-GB and then translated into the target language using the i18n operator. That's why there is no eng-GB translation file by default. And if I read the code in i18n.php correctly the text translation is disabled if there is no file for the language or the fallback languages (if any).

I am not sure why you think that the eng-US file should be checked - none of the settings in your site.ini suggests so. The untranslated file is, as far as I know. only there to make creating new translations easier.

Greetings from Luxembourg

Claudia

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 19 2025 04:30:34
Script start
Timing: Jan 19 2025 04:30:34
Module start 'layout'
Timing: Jan 19 2025 04:30:34
Module start 'content'
Timing: Jan 19 2025 04:30:35
Module end 'content'
Timing: Jan 19 2025 04:30:35
Script end

Main resources:

Total runtime1.0164 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.2734152.6406
Module start 'layout' 0.00660.0026 741.914139.4766
Module start 'content' 0.00921.0051 781.3906461.2031
Module end 'content' 1.01430.0021 1,242.59388.1406
Script end 1.0164  1,250.7344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.4602160.0003
Check MTime0.00240.2397160.0002
Mysql Total
Database connection0.00110.109210.0011
Mysqli_queries0.967695.2028540.0179
Looping result0.00060.0562520.0000
Template Total0.975496.020.4877
Template load0.00240.236920.0012
Template processing0.973095.732620.4865
Template load and register function0.00020.021810.0002
states
state_id_array0.00210.206910.0021
state_identifier_array0.00140.138620.0007
Override
Cache load0.00200.1927200.0001
Sytem overhead
Fetch class attribute can translate value0.00090.085820.0004
Fetch class attribute name0.00200.194020.0010
XML
Image XML parsing0.00020.022320.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00080.0814100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 12
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs