FIX: badge display name should be translated from server.en.yml file

This commit is contained in:
Arpit Jalan 2016-03-28 23:59:53 +05:30
parent b6a0b891b8
commit bae836c7c5
1 changed files with 1 additions and 1 deletions

View File

@ -379,7 +379,7 @@ SQL
def display_name def display_name
if self.system? if self.system?
key = "admin_js.badges.badge.#{i18n_name}.name" key = "badges.#{i18n_name}.name"
I18n.t(key, default: self.name) I18n.t(key, default: self.name)
else else
self.name self.name