Support Article

Unable to localize the caption of the control pyCaseBreadCrumb



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.


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; ");


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


Published November 3, 2016 - Updated November 10, 2016

Have a question? Get answers now.

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