Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Vladimir Levijev's Profile

GitHub User: dimir

Comments by Vladimir Levijev

Avatar

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 "Название".

Avatar

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?