User translations loading breaks default translations
Reported by Yaroslav Markin | September 1st, 2008 @ 11:57 AM
- Have a Rails application with a Model and error_messages_for. I'm using restful_auth register form.
- Have this in
config/initializers
puts "** Loading locales"
Dir[File.join(Rails.root, "config", "locale", "**/*")].each do |file|
I18n.load_translations(file)
end
- Have any
*.yml
translation file inconfig/locale
I am using ru-RU
as my default locale.
- Play with that yml file:
ru-RU:
activerecord:
Gives
translation missing: ru-RU, activerecord, errors, template, header
translation missing: ru-RU, activerecord, errors, template, body
Login translation missing: ru-RU, activerecord, errors, models, user, attributes, login, blank
ru-RU:
activerecord:
errors:
messages:
Gives
Login translation missing: ru-RU, activerecord, errors, models, user, attributes, login, blank
(a bit better)
ru-RU:
activerecord:
errors:
messages:
models:
attributes:
Gives the same.
Comments and changes to this ticket
-
Yaroslav Markin September 1st, 2008 @ 12:28 PM
Discovered that
ru-RU: activerecord: models: user: "Пользователь" attributes:
Does not give any errors at all.
-
John Smith December 17th, 2020 @ 12:36 PM
I Ride Bus is the snappiest and least demanding approach to lease a bus. Get and analyze moment cites on charter buses and minibusses from one side of the country to the other. For successful and proficient charter bus rental arrangements that permit you to securely and dependably travel anyplace inside the United States, Iridebus is the best approach! With unrivaled admittance to a tremendous organization of charter bus rental service merchants, we will consistently assist you with finding the best vehicle for your gathering, regardless of whether it's a 24 to 35 traveler minibus or a 49 to 57 traveler mentor bus.
-
yter dgd August 11th, 2024 @ 05:16 PM
shopping in-store provides the opportunity for immediate purchase and gratification. Unlike online shopping, where delivery times can vary, visiting a local vape store allows customers to walk out with their products in hand ecigarettes canada. This immediate access is especially beneficial for those who need to replenish their supplies quickly or want to try out a new product right away.
-
liam smith August 19th, 2024 @ 02:05 PM
When user translations are loading, it can sometimes disrupt the display of default translations. cox customer support billing This issue occurs if the system struggles to integrate new translations in real-time, causing temporary inconsistencies. Ensure that translation updates are completed before viewing to avoid breaking the default content and maintain a smooth user experience.
-
Sara watson November 28th, 2024 @ 12:39 PM
Download the latest version of Brawl Stars APK and immerse yourself in an action-packed multiplayer battle arena. Play solo or team up with friends, collect unlimited gems, stars, and trophies, and enjoy smooth performance with high-quality graphics. So, what are you waiting for? Get the version of your choice below and start your Brawl Stars adventure today! click https://brawlstarsapk.org/ for more.
-
Sara watson November 28th, 2024 @ 12:39 PM
Download Cash Frenzy 777, an online gaming application that offers a huge variety of games right on your desktop and mobile screens that you can play and make real money from your home. You can download the application by clicking the download button below. Let’s delve into the world of Cashfrenzy777 and see what this amazing application has to offer. https://cashfrenzy-777.com/
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.