search for: available_locales

Displaying 3 results from an estimated 3 matches for "available_locales".

2009 Feb 09
2
dynamic constant assignment
...", "pl"=>"Polski", "en-US"=>"English (US)", "pt-BR"=>"Português (Brasil)"} my locale is set : I18n.locale => :"en-US" based on the current locale , dynamically changed, I would like to define a new constant, AVAILABLE_LOCALES which would be the ALL_LOCALES minus the current locale... AVAILABLE_LOCALES => {"it"=>"Italian", "fr"=>"Français", "de"=>"Deutsch", "en- GB"=>"English (UK)", "es"=>"Español (España)&qu...
2010 Feb 16
7
YAML, UTF-8, TextMate, Notepad
...can''t find it. Maybe there''s a TextMate bundle ... who knows? In order to get YAML::Load to load the localization, I have to remove the three indicator bytes. Yuck! Once I did that, YAML loads happily. - - - - - - - - - If you store your locales in lib/locale and you use the AVAILABLE_LOCALES idiom as suggested in http://rails-i18n.org/wiki/pages/i18n-available_locales then you can use this in config\initializers\available_locales.rb - - - #See http://guides.rubyonrails.org/i18n.html # # Get loaded locales conveniently # See http://rails-i18n.org/wiki/pages/i18n-available_locales mod...
2010 Nov 18
2
i18n_routes
...с.рф/привет (XN--E1AIJIPB.XN--P1AI/XN--B1AGH1AFP) to welcome#index (for example) i tryed different ways but no luck with them all... in Gemfile ---------------\ gem ''i18n_routing'' -------------------- in routes.rb -------------------------------------- localized(I18n.available_locales, :verbose => true) do match ''about'' => ''welcome#index'', :as => :about end match ''XN--B1AGH1AFP'' => ''welcome#index'', :as => :about --------------------------------- in logs i have ----------------------...