I tried to rename all the :en locale-files to :nb, since it was using the 
:en strings and not the :nb ones. It still shows the same english strings, 
so it seems it isn't even using the locale-folder. 

So in desperation I added another:

config.i18n.load_path += Dir[Rails.root.join('config', 'locales', 
'*.{rb,yml}').to_s]

to the application config. But, it still doesn't use my locale setting or my 
locales. 

I then renamed my locales folder to force rails to not use it, but even that 
didn't make a change. 

I have checked using:

config.hobo.show_translation_keys = true

which confirms that all translations are done using :en as key, instead of 
the :nb default_locale. 

So, somewhere - somehow the locale-setting changes from :nb to :en. 

I changed the debug code in my controller action to use locale instead of 
default_locale. The output shows that when it enters the controller the 
locale is unset (default_locale is :nb though).I then force the locale by 
setting set it it is :nb:

DJBM2::Application.config.i18n.locale=:nb

(and confirmed the setting by log-output). But, when the translation methods 
are called it is again using :en as the locale. 

This is freaking me out! 
How and where is it getting set to :en?
How can that happen? 
Any ideas?


~Ronny

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/hobousers/-/pHZmA75qBEkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to