KiranKumarS3582 Member since 2018 7 posts
Ministry of Education Saudi Arabia
Posted: 1 year ago
Last activity: 1 year 6 months ago

The stage Name used inside a correspondence is not getting translated

Issue: The stage Name used inside a correspondence to send mails to users is not getting translated to locale language.


In Rich Text Editor of the correspondence change Edit Mode to source tab and copy paste this code in it:

<% String stageName=tools.getStepPage().getString("pxCurrentStageLabel");%>test test&nbsp;<pega:reference name=".pxCurrentStageLabel"></pega:reference> <%=tools.getLocalizedTextForString("pyButtonLabel",stageName)%>

1.<% String stageName=tools.getStepPage().getString("pxCurrentStageLabel");%>// Store Stage Name

2.test test&nbsp;<pega:reference name=".pxCurrentStageLabel"></pega:reference>// append your text

3.<%=tools.getLocalizedTextForString("pyButtonLabel",stageName)%>// get the localized Value, Since StageName is a Link type of a control, pyButtonLabel is the fieldName to be used .

Refer attachment for screen shot

***Edited by Moderator Marissa to update SR Details***

Pega Platform Case Management SR Exists Developer Knowledge Share
Share this page LinkedIn