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

'Complete Task' does not translate to French post locale change

SA-61175

Summary



On updating the locale as 'fr_CA' and a subsequent log off and log in, 'Complete Task' does not display in French.


Error Messages



Not Applicable.


Steps to Reproduce

  1. Log in to the application
  2. Change the locale to 'fr_CA'
  3. Log off and log in to the application
  4. Create a case and perform some action on the case
  5. Check the case history/audit tab. 'Complete Task' does not display in French


Root Cause



A defect in Pegasystems’ code or rules. The 'Complete Task' text is referred from pyInstructions field value from all the places like AssignmentRouted, SLAGoal, etcetera. There is an issue with InstructionsLookup control which does not look for the 'Complete Task' field value.


Resolution

Perform the following local-change:
  1. Override the InstructionsLookup control in the application ruleset
  2. Replace the text (Complete Task) with the below code in tags <pega:otherwise> and </pega:otherwise>
    <pega:lookup className="Rule-Obj-FieldValue" property="pyLocalizedValue" mode="literal"> 
    <pega:key name="pyClassName" value="@baseclass" /> 
    <pega:key name="pyFieldName" value="pyInstructions" /> 
    <pega:key name="pyFieldValue" value="complete task" /> 
    </pega:lookup> 

     
  3. Create a field value for 'Complete Task' with pyInstructions

The updated InstructionsLookup code should look as following: 

<pega:choose> 
<pega:when test='$this-value != ""'> 

<pega:lookup className="Rule-Obj-FieldValue" property="pyLocalizedValue" mode="literal"> 
<pega:key name="pyClassName" value="@baseclass" /> 
<pega:key name="pyFieldName" value="pyInstructions" /> 
<pega:key name="pyFieldValue" ref="$this-value" /> 
</pega:lookup> 

</pega:when> 
<pega:otherwise> 


<pega:lookup className="Rule-Obj-FieldValue" property="pyLocalizedValue" mode="literal"> 
<pega:key name="pyClassName" value="@baseclass" /> 
<pega:key name="pyFieldName" value="pyInstructions" /> 
<pega:key name="pyFieldValue" value="complete task" /> 
</pega:lookup> 

</pega:otherwise> 
</pega:choose>

 

 

Published July 31, 2018 - 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