Developer forum

Forum » Dynamicweb 9.0 Upgrade issues » Backend translations in DW9

Backend translations in DW9

Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Hi there,

How are translations for backend modules handled in 9? For example, how would I translate labels in a statistics provider or a live integration addin? In the past, we used somehting like this:

Backend.Translate.JsTranslate

When I try this:

Translation.GetTranslation

I get an error (Design for current page view not found) because there's no pageview/design in scope, which makes sense to me.... ;-)

Thanks!

Imar


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

That is the translate method for the template translations.

You should use Dynamicweb.SystemTools.Translate in Dynamicweb.dll

BR Nicolai

Votes for this answer: 1
 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Excellent, that did it....

 

You must be logged in to post in the forum