Russian strings for the flagging dialog here on meta

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.

как дела?

9 Likes

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

1 Like

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.

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

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?

4 Likes

Yes, it’s caching them…
https://github.com/discourse/discourse/blob/181ab8948558aebd9b38c1db474a88ba74b3d3c0/app/serializers/site_serializer.rb#L30-L42

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

3 Likes

Yeah something like that, but allow for user nil

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

Fixed per

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

6 Likes

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