I would like to insert non English (e.g. Russian or Hebrew) text in my view.
Is that a good idea to do:
<div>что нибудь по русски</div>
or
<div><%= "משהו בעברית" %></div>
or there are better methods ?
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.
Use the Rails i18n API. you basically create YAML files for translations of specific pieces of code; it works amazingly well. Here’s the guide:
http://guides.rubyonrails.org/i18n.html
If you need something more complicated, it’s doable, but the Rails i18n API is one of the best.