settingslogic icon indicating copy to clipboard operation
settingslogic copied to clipboard

suggestion: I18n awareness

Open grimen opened this issue 16 years ago • 1 comments

....take I18n.locale into account. Seems to be tricky to setup now.

grimen avatar Dec 12 '09 23:12 grimen

Are you trying to set the namespace to I18n.locale? That's what I'm trying to do and I get this:

Error message:

can't convert nil into Hash

Stack trace:

/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:107:in `replace'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:107:in `initialize'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:63:in `new'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:63:in `instance'
/Library/Ruby/Gems/1.8/gems/settingslogic-2.0.6/lib/settingslogic.rb:40:in `[]'

EDIT:

This works:

namespace I18n.locale.to_s

bergman avatar Mar 11 '10 15:03 bergman