إشعار `temporarily_closed_due_to_flags` غير موجود في لغة الخادم

Priority/Severity: normal

Platform: all

Description: temporarily_closed_due_to_flags notice is not created in server’s locale.

Reproducible steps:

  1. create a topic and
  2. let a lot of users (with locale settings different from server’s locale) flag the posts of the topic. Then
  3. the temporarily_closed_due_to_flags notice (“This topic is temporarily closed for at least %{count} hour due to a large number of community flags.” in en_US locale) created by @system is in user’s locale instead of the server’s.

It’s similar to what this commit has fixed.

I believe it could be fixed by changing the following code.

إعجاب واحد (1)

Yeah it is a good catch, it is probably running in the context of the last flagger, vs the localization context of the server.

A simple:

locale: SiteSetting.default_locale will sort it out.

We will get this sorted in the next few weeks.

Thank you for reporting this bug. It was fixed in this PR

إعجابَين (2)

This topic was automatically closed after 4 days. New replies are no longer allowed.