refinery / refinerycms-i18n

I18n logic for Refinery CMS

Home Page:http://refinerycms.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

incorrect I18n.locale

thomasmaas opened this issue · comments

-v 0.9.9.13
context: 2 language website, 'nl' default, 'en' second language

localhost:3000/en gives me:

Refinery::I18n.current_frontend_locale = en
I18n.locale = nl

result: english menu & page content loaded but dutch strings as defined config/locales/nl.yml loaded.

I believe the def find_or_set_locale method is the culprit but haven't had time to investigate further.

Make use of Globalize.locale for current_frontend_locale and find_or_set_locale now assigns to ::I18n.locale instead of Thread.current[:globalize_locale] for better consistency and expectation. Closed by 5014709