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

Unable to localize the caption of the control pyCaseBreadCrumb

SA-29934

Summary



User is trying to localize "Claim File" property value in the User interface. User is referring this property value through pyLabel.

Even though localize checkbox is checked, the value is displayed in English rather than translated value.


Error Messages



Not applicable.


Steps to Reproduce



1. Create field value of type pyCaption for Claim File.
2. Use the control pyCaseBreadCrumb to display the caption.


Root Cause



A defect in Pegasystems’ code or rules: pyCaseBreadCrumb is a OOTB available non-auto generated control.

This control does not have code to localize the string.

Resolution



Perform the following local-change:

As pyCaseBreadCrumb is an available rule, Save the rule into application rule set and replace the following line:

tools.appendString("<a class=\"Simple\" onclick=\"javaScript:openWorkByHandle('" + sWorkKey + "','','')\"&gt;" + sWorkLabel + " (" + sWorkID + ")</A&gt; &nbsp;&gt;&nbsp; ");

With:

tools.appendString("<a class=\"Simple\" onclick=\"javaScript:openWorkByHandle('" + sWorkKey + "','','')\"&gt;" + tools.getLocalizedTextForString("pyCaption",sWorkLabel)+ " (" + sWorkID + ")</A&gt; &nbsp;&gt;&nbsp; ");

 
Suggest Edit

Published November 10, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

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

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