Forums / Developer / i18n translation problems

i18n translation problems

Author Message

Pierre SCALFATI

Monday 15 June 2009 3:02:40 am

Hello,

I put a post a few weeks ago concerning problems with i18n translation but had no answer to my post. As it is becoming URGENT, I explain once more my problem hoping to have an answer.

I have a website composed of French content (the default is French) and English content.
Presently, my i18n translation doesn't work. When I am on French Website or English Website, the different labels of my template are always displayed in French.

The site.ini;append.php content for the "fre" (french site) folder is as follows :

[RegionalSettings]
Locale=fre-FR
HTTPLocale=fre-FR
ContentObjectLocale=fre-FR
ShowUntranslatedObjects=disabled
SiteLanguageList[]=fre-FR
TextTranslation=enabled
[ContentSettings]
TranslationList=eng-GB;fre-FR

The site.ini;append.php content for the "eng" (english site) folder is as follows :

[RegionalSettings]
Locale=eng-GB
HTTPLocale=eng-GB
ContentObjectLocale=eng-GB
ShowUntranslatedObjects=disabled
SiteLanguageList[]=eng-GB
TextTranslation=enabled
[ContentSettings]
TranslationList=eng-GB;fre-FR

If anyone can answer it would be of great help.

Best regards.

Pierre SCALFATI

Wednesday 01 July 2009 12:45:33 am

Hello,

Finally I've found what was wrong with my configuration. I looked in my site.ini.append.php in my mysite\settings\override folder and found a RegionalSettings block which was declared with french (fre-FR) as Locale. So I removed totally from that file the [RegionalSettings] block (because everything is declared for that block in my mysite\extension\ezwebin\settings\siteaccess\fre\site.ini.append.php and mysite\extension\ezwebin\settings\siteaccess\eng\site.ini.append.php.

I went then in the site.ini.append.php which is in mysite\extension\ezwebin\settings and reduced the content of the [RegionalSettings] block to the following :

[RegionalSettings]
TranslationExtensions[]=ezwebin

 

I hope it will help.

Best regards.

eZ debug

Timing: Jan 19 2025 20:11:31
Script start
Timing: Jan 19 2025 20:11:31
Module start 'content'
Timing: Jan 19 2025 20:11:31
Module end 'content'
Timing: Jan 19 2025 20:11:31
Script end

Main resources:

Total runtime0.1512 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 588.9531180.8359
Module start 'content' 0.00630.0065 769.789193.8828
Module end 'content' 0.01280.1383 863.6719523.0234
Script end 0.1511  1,386.6953 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.2255200.0002
Check MTime0.00140.9028200.0001
Mysql Total
Database connection0.00080.548310.0008
Mysqli_queries0.101367.01171410.0007
Looping result0.00161.06881390.0000
Template Total0.137991.210.1379
Template load0.00070.453710.0007
Template processing0.137290.768310.1372
Override
Cache load0.00050.311010.0005
Sytem overhead
Fetch class attribute can translate value0.00120.791110.0012
XML
Image XML parsing0.00030.175310.0003
General
dbfile0.00885.7963200.0004
String conversion0.00000.006630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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