Rails 3: How to insert non English text in view -
i insert non english (e.g. russian or hebrew) text in view.
is idea do:
<div>что нибудь по русски</div>
or
<div><%= "משהו בעברית" %></div>
or there better methods ?
use rails i18n api. create yaml files translations of specific pieces of code; works amazingly well. here's guide:
http://guides.rubyonrails.org/i18n.html
if need more complicated, it's doable, rails i18n api 1 of best.
Comments
Post a Comment