Hi All,
I'm creating a telerik report for an application supporting multiple languages.
One of the labels needs to display value based on some condition - the entry is present in default resx file like below - where text1 & text2 are in english
Key => label.Value
Value => =iif(Fields.someProperty= 1, "text1", "text2")
What is the best way to do this in remaining languages? If this condition changes in future, I don't want to change it in other language files.
Thanks in advance.
4 Answers, 1 is accepted

Hello Siddhi,
Basically, you can localize the report in multiple languages. Firstly, you need to set the Localizable property to True. Then select a value from the Language property. Once you select the language, set the textbox value. For example:
= Parameters.Parameter1.Value ? "FRTrueValue" : "FRFalseValue"
Then you can select another Language, and again you need to add the localized value. If you want to change the value later, select the Language and make the required change.
Please, check the attached report for further reference.
Regards,
Neli
Progress Telerik
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).

Thanks for your reply.
Now consider if I want to support 20 language for my application. If in future condition changes from
= Parameters.Parameter1.Value ? "FRTrueValue" : "FRFalseValue"
to
= Parameters.Parameter2.Value ? "FRTrueValue" : "FRFalseValue"
then will I have to change the condition 20 times for each language?
Regards,
Siddhi
Hi Siddhi,
Thank you for your clarification. In such a case, I am afraid that you will need to reset the values manually.
Regards,
Neli
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.