Problem with i18n

Author Message

Toni Ascó

Thursday 20 May 2004 4:44:57 am

hi, i've been following the thread http://www.ez.no/community/forum/developer/what_is_i18n_ to understand how i18n works, but well, strings are not translated correctly.

My syte.ini has locale as es-es and i've created the extension/atlantis/translations/eng-GB/translation.ts file to try to translate some words from spanish to english.
the context is named hotel_translations, but when i type in my templates something like
{'noticias'|i18n('hotel_traduccions'} i still get noticias instead news that is what the translatio.ts file states...

Any idea?

Toni

Lazaro Ferreira

Thursday 20 May 2004 9:11:38 am

Hi,

Check your context string again, Above you wrote hotel_translations and then in your template you wrote hotel_traduccions, it doesn't match

Also turn on your debug settings at your site.ini.append file

Lazaro

Lazaro
http://www.mzbusiness.com

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 07:18:41
Script start
Timing: Jan 19 2025 07:18:41
Module start 'layout'
Timing: Jan 19 2025 07:18:41
Module start 'content'
Timing: Jan 19 2025 07:18:41
Module end 'content'
Timing: Jan 19 2025 07:18:41
Script end

Main resources:

Total runtime0.0162 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 590.5781152.6094
Module start 'layout' 0.00670.0038 743.187539.4141
Module start 'content' 0.01050.0039 782.601689.1953
Module end 'content' 0.01440.0017 871.796930.3047
Script end 0.0161  902.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002415.0390140.0002
Check MTime0.00116.4973140.0001
Mysql Total
Database connection0.00127.150810.0012
Mysqli_queries0.003924.350630.0013
Looping result0.00000.098810.0000
Template Total0.00138.110.0013
Template load0.00074.392510.0007
Template processing0.00063.693410.0006
Override
Cache load0.00042.703710.0004
General
dbfile0.00031.632880.0000
String conversion0.00000.061940.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