Issue with translation comments

|
|
Next topic
 »
Author Message

Helge Silset

Friday 19 August 2011 6:02:03 am

Hello!

Our client is running a multi-lingual site and we're experiencing this with the finnish siteaccess only.

The login buttons value is marked up like this:

 {'Login'|i18n('design/ezwebin/user/login','Button')}

And the value displays as expected when translated in every language except finnish, where the value of the button is "Login <linebreak> Button":

Kirjaudu sisään
Nappi

What's causing this?

André R.

Friday 19 August 2011 8:26:08 am

have you checked the .ts file?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Helge Silset

Monday 22 August 2011 6:22:43 am

Hi André,

Yeah, the translation file should be correct. We also have an issue (in the same template) where the translation for "Username" is printed twice. I've included both translations from my_extension/translations/fin-FI/translation.ts:

 <context>
    <name>design/ezwebin/user/login</name>
    <message>
        <source>Username</source>
        <comment>User name</comment>
        <translation>Käyttäjänimi</translation>
    </message>
    <message>
        <source>Login</source>
        <comment>Button</comment>
        <translation>Kirjaudu sisään</translation>
    </message>
</context>

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 17 2025 23:43:12
Script start
Timing: Jan 17 2025 23:43:12
Module start 'layout'
Timing: Jan 17 2025 23:43:12
Module start 'content'
Timing: Jan 17 2025 23:43:12
Module end 'content'
Timing: Jan 17 2025 23:43:12
Script end

Main resources:

Total runtime0.1285 sec
Peak memory usage4,096.0000 KB
Database Queries58

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 593.7031152.6406
Module start 'layout' 0.00620.0037 746.343839.4844
Module start 'content' 0.00990.1170 785.8281569.9844
Module end 'content' 0.12690.0015 1,355.812512.1406
Script end 0.1284  1,367.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.5346160.0002
Check MTime0.00131.0324160.0001
Mysql Total
Database connection0.00080.618910.0008
Mysqli_queries0.079962.2285580.0014
Looping result0.00060.4415550.0000
Template Total0.098176.320.0490
Template load0.00211.640820.0011
Template processing0.095974.679520.0480
Template load and register function0.00030.260810.0003
states
state_id_array0.00070.563610.0007
state_identifier_array0.00080.635320.0004
Override
Cache load0.00181.3702180.0001
Sytem overhead
Fetch class attribute can translate value0.00070.510730.0002
Fetch class attribute name0.00302.331640.0007
XML
Image XML parsing0.00110.836130.0004
class_abstraction
Instantiating content class attribute0.00000.007840.0000
General
dbfile0.00090.6802170.0001
String conversion0.00000.008440.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
3content/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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs