10

Today, I had the message in my inbox that I've earned a new privilege. The message was followed by "Узнайте больше об этом в Справке.", which LibreTranslate translates to "Find out more about this in the Help."

Screenshot

To my best knowledge, I never stated to speak Russian anywhere, and I can't find a language setting in my profile.

4

1 Answer 1

6

Firstly, congrats on being able to create tag synonyms! And thanks for the report! I've fixed this to correctly provide per site translations for the privilege help text.

The explanation is basically the same as past incarnations of this issue where we've had a "first hit; first cached" issue. The simple version of the fix is to just do the localization each time and never store the result. With something like this change:

- public static string Message = Localize("Learn more about it in the help center");
+ public static string Message => Localize("Learn more about it in the help center");

But we also still want to cache it, so I put in a PerLocaleDictionary (custom wrapper we use to store caches per site local). Issue should be all set in production.

See Also: Wrong language in recent achievements

3
  • 1
    Спасибо!​ ​ ​ ​ Commented Sep 26 at 14:24
  • 2
    Пожалуйста!​ ​ ​
    – KyleMit StaffMod
    Commented Sep 26 at 15:01
  • Without knowing the code base in any detail, that sounds like a sensible solution to me. Thanks for the fix, and thanks for the explanation. Commented Sep 28 at 13:16

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .