RailsCasts Pro episodes are now free!
Learn more or hide this
GitHub User: dimir
OK, I ended up translating this manually using gsub() as described here:
Ugly solution, but it works.
I have done exactly as in this episode. When I fetch translations from redis they are printed on translations page like this:
I get the same if I print it to the log file. In the view with ru locale when using t('items.title') it's translated to "Название".
Thanks for the great article! I'm using redis and translations view for my russian ("ru") translations. The problem is, in the translations#index view my translation values look like escaped unicode entities:
while when I use t('foo') in my views the value is output properly. With English translation everything is fine of course. Does anyone know what could cause that "broken" output in translations#index view?