I'm trying to use Translate.Translate(..) dynamicweb api function from inside custom module code.
The idea is to use translation key from Translations XML file and put the value dynamically as a template tag.
sth like:
LoopCompare.SetTag("value", Translate.Translate("Oui", true));
this line doesn't do the job. What do I miss?
the xml file in use:
<?xml version="1.0" encoding="utf-8"?>
<translation culture="es-ES"><![CDATA[Si]]></translation>
<translation culture="pl-PL"><![CDATA[Tak]]></translation>
</translations>
Thanks