Hi,
We have a web service that we want to return translated text from, we used to call
Dynamicweb.Backend.Translate.SetLanguage(culture.LCID);
return Dynamicweb.Backend.Translate.Translate(key);
We tried to use
var messageTemplate = new Dynamicweb.Rendering.Template("Message.html");
messageTemplate.SetTag("Message", key);
var translatedMessage = messageTemplate.Output().Trim();
Message.html contains the translation tags. Example, <!--@If(Softgear:Message='fel_uppstod')--><!--@Translate(fel_uppstod, global)--><!--@EndIf-->
translatedMessage does not give us the translated version of the key
Regards
Ola