Skip to content

Translate descriptions for declarative_enum dynamically

Peter Leitzen requested to merge pl-declarative-enums-translations into master

What does this MR do and why?

Translate descriptions for declarative_enum dynamically using N_(...) combined with _(var).

Prior this change the translated strings were loaded in class scope so switching the locale had no effect on them anymore. The descriptions were always displayed in English.

This is a follow-up of !55525 (merged) and !58431 (merged).

Related to #326765 (closed).

How to set up and validate locally

View vulnerabilities page with locale zh_CN and see dismissal reason translated properly.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Mehmet Emin INAC

Merge request reports