
default_locale is useless
Reported by Mihai Târnovan | August 16th, 2009 @ 02:34 PM
I think the intended usage for this method was to be used in an initializer to provide a default locale different from @@default_locale (:en). However, if some code calls I18n.translate before your initializer runs (for me this was happening in authlogic when it configured error messages for email validation), the locale will be set to :en and your call to default_locale in the initializer will be useless, as the locale was already set to @@default_locale. The workaround for this would be simply to use I18n.locale instead of I18n.default_locale in your initializer.
Comments and changes to this ticket
-
Rise Hluoluo August 8th, 2021 @ 06:58 AM
Software Produksi Musik Terbaik User ke platform streaming dan ke speaker orang adalah satu hal, https://rajasoftware.net/ tetapi memproduksinya dari awal menggunakan perangkat lunak produksi musik adalah satu hal.
-
Walaim Henry March 23rd, 2023 @ 06:55 AM
Are you looking to set up a guest network on your wifi router? If so, you’ve come to the right place. Setting up a guest network on your wifi router is an easy process that can provide a secure connection for your visitors and other users who need access to your internet connection. https://wifirouterhub.com/best-wifi-router-for-2000-sq-ft-home/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
Internationalization API for Ruby.
This library is used in Ruby on Rails but also suited for use in other contexts.