Developer forum

Forum » CMS - Standard features » RE: DW Translate tag

RE: DW Translate tag

Jonas Mersholm
Reply

I am trying to use the <!--@Translate(Key, Default)--> functionality of DynamicWeb,

Using the following code

<!--@Translate(DIRECTPHONE, “Direkte”)-->:

It simply just outputs the " : ", nothing else, not even the default value.

 

My question is.

1) How do i make it display/output the default value, as expected.

2) How do i translate the string afterwards.

 

best regards.

Jonas


Replies

 
Thomas Schroll
Reply

Hi Jonas

Somewhere in your file structure you will have a file called "Translations.xml" (probably in the root of your design folder). Write the following in the file

<?xml version="1.0" encoding="utf-8"?>
<translations>
  <key name="DIRECTPHONE">
    <translation culture="en-US"><![CDATA[Direct]]></translation>
    <translation culture="da-DK"><![CDATA[Direkte]]></translation>
  </key>
</translations>

 

For every different translate tag you will need a new key with the translations inside the ![CDATA[]]

Regards Thomas 

 
Nicolai Høeg Pedersen
Reply

You can find the translate documentation here:

http://developer.dynamicweb-cms.com/documentation/for-designers/template-terminology.aspx

BR Nicolai

 
Jonas Mersholm
Reply

Thanks both of you, that was really helpfull :)

 

You must be logged in to post in the forum