Flag info is in... Spanish?

(Dylan Hunt) #1

Hey I saw a flag on my phone (can’t get to desktop for a bit) and noticed it’s in Spanish or something. Everything else is in English.

(Jeff Atwood) #2

Oh interesting. I remember @gerhard worked on a bug related to this. It’s probably because the person who flagged selected spanish as their UI locale in their user preferences?

(Régis Hanol) #3

Yeah I think he fixed that recently. @dylanh724 are you running the latest version of Discourse?

(Dylan Hunt) #4

How recently? I updated like a day before this post.

(Régis Hanol) #5

You should have the fix then.

@gerhard, any ideas?

(Gerhard Schlager) #6

I didn’t make any changes in that part of the app, but I see where this could go wrong. I’ll try to reproduce the problem.

(Régis Hanol) #8

I was thinking of this commit. Maybe it’s related?

(Gerhard Schlager) #9

Yeah, that was a similar issue. I think I need to force the default locale for SpamRulesEnforcer.enforce! as well.

(Gerhard Schlager) #10

FIX: SpamRulesEnforcer should use default locale · discourse/discourse@5ed5825 · GitHub