From 1395b38dd2182663c3fe61172ab076523f3f0c0e Mon Sep 17 00:00:00 2001 From: ogom Date: Fri, 19 Apr 2013 11:51:56 +0900 Subject: [PATCH] fix other locale --- lib/sidekiq/web.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sidekiq/web.rb b/lib/sidekiq/web.rb index db41112a..2ddce591 100644 --- a/lib/sidekiq/web.rb +++ b/lib/sidekiq/web.rb @@ -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