Share » Forums » Setup & design » How to translate data from ez...

How to translate data from ez selection datatype ?

How to translate data from ez selection datatype ?

Friday 25 July 2008 4:59:38 am - 2 replies

Author Message

Helle Andersen

Thursday 28 August 2008 7:11:03 am

Well we found a solution:
1. we added an Eng-GB translations file in /ezpublish/share/translation with the content

<context>
    <name>finansieringsform</name>
    <message>
        <source>DBA</source>
        <translation>DBA</translation>
    </message>
    <message>
        <source>Privatist</source>
        <translation>Independent student</translation>
    </message>
    <message>
etc.

The reason for doing this was to make the selection attribute in the class in the admin module speak Danish rather than English

2. we added the following code in the template:

{let chosen_option=$node.object.data_map.finansieringsform.content.0}
       {$node.object.data_map.finansieringsform.class_content.options[$chosen_option].name|i18n('finansieringsform')}

michiel n.

Wednesday 10 December 2008 10:22:54 am

Please look at http://issues.ez.no/IssueView.php?Id=13248 (also look at related issues and on the forums).
The way you 'solve' it, isn't the best solution. Running ezlupdate will return an error.

Certified eZ developer looking for projects.
michieln at gmail dot com
http://ez.no/certification/verify/225305

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu