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:
ru.foo: [\u041d\u0430]
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?
OK, I ended up translating this manually using gsub() as described here:
http://stackoverflow.com/questions/7015778/is-this-the-best-way-to-unescape-unicode-escape-sequences-in-ruby
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:
ru.items.title: ["\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435"]
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:
ru.foo: [\u041d\u0430]
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?