Russian strings for the flagging dialog here on meta


(Dan Dascalescu) #1

I was trying to send a message to the user of this post and clicking the flag button got me this:

Far as I can tell, I haven’t been deported to Russia yet.

как дела?


(TechnoBear) #2

And I can confirm I get the same if I try to message you.


(Alan Tan) #3

I experienced this yesterday as well but it wasn’t russian for me. It magically went away after a couple of refreshes so I couldn’t reproduce it.


(Felix Freiberger) #4

I’ve seen this issue in this topic, too – it disappeared after a refresh. I didn’t find a way to reproduce this afterwards.


(Robin Ward) #5

I have a hunch this is related to the caching of the site json that @sam added. Is it caching the flag descriptions which are translated server side?


(Gerhard Schlager) #6

Yes, it’s caching them…


(Kane York) #7

Sooo… cache_fragment("post_action_flag_types_#{scope.user.effective_locale}") ?


(Sam Saffron) #8

Yeah something like that, but allow for user nil


(Kane York) #9

Oh right, I18n.locale should be set during the request. d’oh


(Sam Saffron) #10

Fixed per

https://github.com/discourse/discourse/commit/dc10bdee3dd23ae8d2acb4729c119e4b0b3f4853


(Sam Saffron) #11

This topic was automatically closed after 24 hours. New replies are no longer allowed.