Less specific

This commit is contained in:
Yuki 2015-06-09 23:30:23 +05:30
parent ff956febee
commit 53f3e487fd
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ I18n.with_locale("") do
unless flag_map.index(cc).nil?
begin
lang = I18n.translate("#{l}.language")
lang = '' if lang == "translation missing: #{l}.language"
lang = '' if lang.index "translation missing"
APP_LOCALES[l] = [lang, cc]
rescue I18n.MissingTranslationData
APP_LOCALES[l] = ['', cc]