Developer forum

Forum » Templates » Translate
Martin Kure
Reply

Hi all,

I'm trying to use the translate method.

I've added the translations.xml to my design-folder. 

In the translations.xml I'm using this part:

     <key name="NewsletterEmail">
        <translation culture="de-DE"><![CDATA[E-mail]]></translation>
        <translation culture="da-DK"><![CDATA[]]></translation>
        <translation culture="en-GB"><![CDATA[Email]]></translation>
        <translation culture="nn-NO"><![CDATA[E-post]]></translation>
        <translation culture="sv-SE"><![CDATA[E-post]]></translation>
    </key>

And I'm using this tag:

   <!--@Translate(NewsletterEmail, "E-mail", global)-->

But on all languages, it's just picking the default value. Is there something really simple, that I don't see?

/BR

Martin


Replies

 
Sten Hougaard
Reply
This post has been marked as an answer

Hi Martin,

It depends on which version of Dynamicweb you are using. As of 8.5 (I think) Dynamicweb have changed the translate feature a bit.

You may read about here (for instance): http://manual.dynamicweb-cms.com/Dynamicweb-On-line-Manual/Management-Center/Translations.aspx

You will no longer need/can use the global part of the Translate tag. Try removing that part (and the comma of cause).

/Sten Hougaard 
@netsi1964

Votes for this answer: 1
 
Martin Kure
Reply

Hi Steen, 

perfect. Thanks Steen, that did the trick.

/Martin

 

 

You must be logged in to post in the forum