Is there a way to force Rails to always use the texts from de.yml, regardless of what the user’s locale is?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Rails guide is helpful. http://guides.rubyonrails.org/i18n.html
To begin with:
http://guides.rubyonrails.org/i18n.html#setting-and-passing-the-locale
Okay, but we want not just the default locale, but to insist on this regardless of user’s locale? No problem, that’ll happen already (I think), if you just don’t implement the code that’s next in the guide to set the current locale to be user specific.