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

Property value referenced in a field value is not localized

SA-50945

Summary



Property value referenced in a field value is not localized.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Configure a field value that references a property
  2. Run the flow. In a subsequent screen, the field values are displayed in English.
  3. Switch to a different language
  4. Run the flow. The field values does not display in the set language


Root Cause



Localizing a property value that is referenced in a field value is not supported in the product by default.


Resolution



Perform the following local-change:
  1. Create a non-auto generated control, for example, LocalizationControl, and add the below code:

    /* Body of LocalizationControl control starts */
    <% 
    ClipboardProperty cp_active = tools.getActive(); 
    String localizedValue = tools.getLocalizedTextForString("pyCaption" , cp_active.getStringValue()); 
    %> 
    <%= localizedValue%> 
    /* Body of LocalizationControl control ends *&nbsp;


     
  2. Change the existing field value to use the custom control along with the property reference 
     

 
Suggest Edit

Published March 12, 2018 - 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