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/
-
hfutr2 July 19th, 2024 @ 06:42 PM
these consultants provide valuable insights into leveraging EDI for strategic advantage. They analyze data generated through EDI transactions to identify trends, optimize inventory levels, and forecast demand more accurately by visit here. This data-driven approach helps businesses make informed decisions, improve supply chain visibility, and strengthen relationships with trading partners by meeting their EDI compliance and performance requirements consistently.
-
yter dgd August 28th, 2024 @ 06:36 AM
The app facilitates cross-platform multiplayer coordination, allowing you to organize and join multiplayer sessions across different gaming platforms. Whether you’re playing with friends on PC while others are on consoles, Game Vault ensures that communication and coordination are smooth play on your android devices. This feature enhances the multiplayer experience by bridging platform gaps and fostering inclusive gaming communities.
-
Islam December 8th, 2024 @ 09:14 AM
The app enables seamless cross-platform multiplayer coordination, making it easy to organize and participate in multiplayer sessions across various gaming platforms. Whether you're playing on PC while your friends are on consoles, Game Vault 777ensures smooth communication and coordination on your Android devices. This feature significantly improves the multiplayer experience by bridging the gap between platforms and creating a more inclusive gaming community.
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.