Wednesday, 13 September 2017

Call resource strings in transformations

 

Using resource strings in transformations

ASCX Transformation :-

We can use below code

<%# Localize("{$stringKey$}") %>
Text / XML transformations – use localization macro expression string or we can use the GetResourceString method
{$stringKey$}
 

OR 

 {% GetResourceString("stringKey") %}
 

Call resource strings in the Kentico API

Kentico API provide ResHelper.GetString() class
string localizedResult = ResHelper.GetString("stringKey");

 

 

 

 

No comments:

Post a Comment