Less specific
This commit is contained in:
parent
ff956febee
commit
53f3e487fd
|
@ -16,7 +16,7 @@ I18n.with_locale("") do
|
||||||
unless flag_map.index(cc).nil?
|
unless flag_map.index(cc).nil?
|
||||||
begin
|
begin
|
||||||
lang = I18n.translate("#{l}.language")
|
lang = I18n.translate("#{l}.language")
|
||||||
lang = '' if lang == "translation missing: #{l}.language"
|
lang = '' if lang.index "translation missing"
|
||||||
APP_LOCALES[l] = [lang, cc]
|
APP_LOCALES[l] = [lang, cc]
|
||||||
rescue I18n.MissingTranslationData
|
rescue I18n.MissingTranslationData
|
||||||
APP_LOCALES[l] = ['', cc]
|
APP_LOCALES[l] = ['', cc]
|
||||||
|
|
Loading…
Reference in New Issue