Question

Can not localize the subject of the message

When clicking on the "Forgot Password" link, we get to the password change form. An email with OTP is sent to the mail. How do I localize the subject of this email "One time password for resetting operator password"
The activities and processes in which this subject is involved have the status of "Final" and I can not change them.
Tell me, is it possible to translate this subject? If possible, how to do it.

P.S.
pyForgotPasswordOTPCorr rule already localized

Correct Answer
September 25, 2019 - 2:24am

I solved this problem
steps to solve
1) create pyCaption with the necessary content ("One time password for resetting operator password")
2) Localize it (Add to localization RuleSet)
3) open the Send activity (Data-Corr-Email class) and add to the Property-Set in 1 step, setting the value to the variable .pySubject: (Pega-RULES: Utilities) .getLocalizedText (.pySubject, pyCaption, tools)

Comments

Keep up to date on this post and subscribe to comments

Pega
September 24, 2019 - 5:12am

Hi,

You can create a field value and then use the below pega utility in the subject:

@(Pega-RULES:Utilities).getLocalizedText(Value1, pyCaption, tools);

 

September 24, 2019 - 5:59am
Response to ramau

Hello, 

This Utility is already in use (SendSimpleEmail, step10), I create Field Value (pyCaption) whit localized text, but it continues to display Subject in English

P.S.
When I try manually everything works correctly, but Subject in the letter is also not localized.

September 25, 2019 - 2:24am

I solved this problem
steps to solve
1) create pyCaption with the necessary content ("One time password for resetting operator password")
2) Localize it (Add to localization RuleSet)
3) open the Send activity (Data-Corr-Email class) and add to the Property-Set in 1 step, setting the value to the variable .pySubject: (Pega-RULES: Utilities) .getLocalizedText (.pySubject, pyCaption, tools)