Skip to content

Instantly share code, notes, and snippets.

@psy-q
Created May 8, 2012 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psy-q/2635349 to your computer and use it in GitHub Desktop.
Save psy-q/2635349 to your computer and use it in GitHub Desktop.
I18n.locale = --> setting this is ignored
From: /home/rca/work/code/ror/leihs/app/controllers/application_controller.rb @ line 72 ApplicationController#set_gettext_locale:
67: end
68:
69: I18n.locale = locale_symbol
70: FastGettext.locale = locale_symbol.to_s
71:
=> 72: binding.pry
73:
74: end
75:
76: end
[1] pry(#<Backend::InventoryPoolsController>)> I18n.locale
=> :es
[2] pry(#<Backend::InventoryPoolsController>)> FastGettext.locale
=> "es"
[3] pry(#<Backend::InventoryPoolsController>)> locale_symbol
=> :"en-GB"
[4] pry(#<Backend::InventoryPoolsController>)> locale_symbol.to_s
=> "en-GB"
[5] pry(#<Backend::InventoryPoolsController>)> I18n.locale = :"en-GB"
=> :"en-GB"
[6] pry(#<Backend::InventoryPoolsController>)> I18n.locale
=> :es
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment