Translation for system message not being used

(Richard - #1

When a post is flagged on a forum that is using a non-English locale, only the flag_reason is being translated. The other text is not translated and displayed in English. There is a translation present in the configuration.

We can repro this on latest stable. Multisite, if that matters.

User incorrectly translated a substitution variable name
(Jeff Atwood) #2

I think @gerhard may have fixed this a while back?

(Gerhard Schlager) #4

The bug was a little bit different from what you described:

  • It always used the default_locale for the system message.
  • It used the flagger’s locale for the flag reason.

So, in your example, the system locale was set to English and the locale of the user who flagged a post was set to German.

FIX: Use default locale for flag reason · discourse/discourse@badad80 · GitHub

(Jeff Atwood) #5

So this is resolved, then? If so this can be closed?

(Gerhard Schlager) #6

Yes, and auto-close will take care of it :wink:

(Jeff Atwood) #7