onomojo / i18n-timezones

Rails I18n timezone translations
MIT License
67 stars 49 forks source link

English labels not shown #17

Closed amatteini closed 10 years ago

onomojo commented 10 years ago

I've tested this up to Rails 4.1.1 and its working fine. Can you provide a more complete example of it not working? I suspect your locale isn't being set properly.

amatteini commented 10 years ago

(Sorry, I deleted my previous message by mistake)

Anyway, the issue appeared when setting, in application.rb:

config.i18n.fallbacks = [:en, :de]

But it works fine when using this instead:

Globalize.fallbacks = {:en => [:en, :de], :de => [:de, :en]}

That fixed my issue, thanks a lot for the quick answer.

s1. https://github.com/globalize/globalize#fallback-locales-to-each-other s2. http://stackoverflow.com/questions/7942450/is-it-possible-to-make-rails-i18n-locales-fallback-to-each-other