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
- Log in to the application
- Change the locale to 'fr_CA'
- Log off and log in to the application
- Create a case and perform some action on the case
- 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:- Override the InstructionsLookup control in the application ruleset
- 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>
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.