Support Article
Localization is not working for results in Time Zone dropdown
SA-9033
Summary
Localization is not working for results of RF_TimeZoneList control. The control does not have the code to get the localized values.
Error Messages
na
Steps to Reproduce
Include the control RF_TimeZoneList in a section in the localized application.
Root Cause
The root cause of this problem is a defect in customer application code/rules.
Resolution
This issue is resolved through the following local change:
The control "RF_TimeZoneList" is available rule. It can be saved as to have the below statement --
for(int i=0; i< timezones.length; i++) {
tools.appendString("<OPTION VALUE=\""+ timezones[i] +"\">"+ tools.getLocalizedTextForString("pyLabel",timezones[i]) + "</OPTION>");
}
By this statement, for all the timezones, the corresponding localized string would be shown in the select box.
It is required to create corresponding field values(pyLabel in @baseclass) in the application rule set for all those timezones which are candidates for localiization.
Published June 12, 2015 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.