Forums / Translation / Finnish / Issue with translation comments

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Issue with translation comments

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>