How to set the UI language for Web Report Designer

Hello
I would like set a language for Web report designer from Controller. I have tried assigning values using
ll.Language = listLabelDesignerDataProvider.GetLlLanguage(currentCultureName);
ll.Core.LlSetOption(LlOption.LCID, CultureInfo.GetCultureInfo(currentCultureName).LCID);
ll.Variables.Add(“Language”, currentCultureName);
ll.DesignerWorkspace.DesignerLanguages.Add(CultureInfo.GetCultureInfo(currentCultureName).LCID);

None of these created the Web report designer in the language mentioned. Please guide how to set UI language in the case of Web Report designer.

Thanks and Regards
Philip

Hello Philip,

if I use in the controller code of OnProvideListLabel(…) the Language property of the new instance works fine for me. The available and supported languages of the UI of the Web Report Designer are define in the enumeration of LlLanguage. Using one of the ASP.NET samples:

...
public override void OnProvideListLabel(ProvideListLabelContext provideListLabelContext)
{
    ListLabel ll = DefaultSettings.GetListLabelInstance(provideListLabelContext.RepositoryId, null);
    ll.Language = LlLanguage.Chinese;
    provideListLabelContext.NewInstance = ll;
}
...
1 Like