Issue with Localization of Error Message

Hi,

I have a requirement where,I have to localize an error message into German. The Error message is: “There has been an issue; please consult your system administrator”.

This error message comes from the Activity “ActivityStatusExceptionHandler”, where it contains java code in step 3.

Please find the Highlighted text in attachment.

Thanks in advance

@SARAVANAG

  • Create a pyCaption field value rule for “There has been an issue; please consult your system administrator” and translate it to German

  • Save the above rule to German locale ruleset which is created during localization wizard

  • Replace below line in java

myStepPage.putString(“pyMessageLabel”,sMessage);

to

myStepPage.putString(“pyMessageLabel”,tools.getLocalizedTextForString(“pyCaption”, sMessage));

Thank you.

Hi @Priyanka Boga,

When we are trying to create field value for the error “There has been an issue; please consult your system administrator”,it is getting truncated as "There has been an issue; please consult your system administrato ", as it allows only 64 characters only for creating field value.

@SARAVANAG - For longer text we can make use of paragraph rules and add the localization for that manually in the localization import file.

Design considerations for localization | Pega Academy?

Localization | Pega Academy.