Merge pull request #4119 from techAPJ/badge-fix
FIX: badge display name should be translated from server.en.yml file
This commit is contained in:
commit
68fd1d790b
|
@ -379,7 +379,7 @@ SQL
|
|||
|
||||
def display_name
|
||||
if self.system?
|
||||
key = "admin_js.badges.badge.#{i18n_name}.name"
|
||||
key = "badges.#{i18n_name}.name"
|
||||
I18n.t(key, default: self.name)
|
||||
else
|
||||
self.name
|
||||
|
|
Loading…
Reference in New Issue