• Peter Leitzen's avatar
    Fix translations for vulnerabilities dismissal reason · 174808d4
    Peter Leitzen authored
    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.
    174808d4
declarative_enum.rb 3.12 KB