Translate descriptions for declarative_enum dynamically
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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mehmet Emin INAC