Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us