1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Merge pull request #864 from ogom/other_locale

Use the Web UI in other locales.
This commit is contained in:
Mike Perham 2013-04-18 22:12:34 -07:00
commit 7c627a49b3

View file

@ -28,7 +28,7 @@ module Sidekiq
end
def t(msg, options={})
string = strings[get_locale].fetch(msg) || strings['en'].fetch(msg)
string = strings[get_locale] ? strings[get_locale].fetch(msg) : strings['en'].fetch(msg)
string % options
end