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.