When the operator logs in for the first time, he receives a message with a one-time password to change the password for the account.
For this letter, the Subject "One time password for resetting operator password" is set.
Please tell me how can I localize it?
I looked at the Activity pxSendOTP and the SendSimpleEmail invoked in step 8, but I can’t change them since they have the status of "Final"
I took a quick look at the pxSendOTP activity and saw it gets the subject via OTPInputs.pyEmailSettings.pySubject. You could potentially try tracing the process (you'll need to trace the requestor remotely) and look for where that gets set from. Its possible you might be able to find an extension point to hook the localization into.
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)