mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: badge display name should be translated from server.en.yml file
This commit is contained in:
parent
b6a0b891b8
commit
bae836c7c5
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue