Page MenuHomePhabricator

wrong language used
Closed, ResolvedPublic

Description

Author: floeff

Description:
My wiki has English locale, but when I login with my personal account which has German locale, the confirmation e-mails to new users is German as well.


Version: unspecified
Severity: critical

Details

Reference
bz25311

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:17 PM
bzimport set Reference to bz25311.

Something probably should be using wfMsgContent...

(In reply to comment #1)

Something probably should be using wfMsgContent...

wfMsgForContent that is

floeff wrote:

Wow, that was quick - thanks a lot! It still seems to be a bit inconsistent:

  • The e-mails are in the language the user has chosen when opening the wiki (LanguageSelector plugin), but the e-mail with the confirmation (user+password) is always in English. If possible, this should also be in the chosen language.
  • However, that's not that annoying. ;) What strikes more is that the e-mail for the admins/bureaucrats is always in the language of the user, e.g. Dutch for a user using a Dutch client.

The confirmation is in the content language, set by a MW core variable, LanguageSelector may not control this.

I'm not sure what the second item is about though.

floeff wrote:

#2 is about: When I receive e-mail notification from someone wanting to have an account, the notification to me is always in HIS language, not in mine.

(In reply to comment #6)

#2 is about: When I receive e-mail notification from someone wanting to have an
account, the notification to me is always in HIS language, not in mine.

This should be changed to use the content language.

(In reply to comment #7)

(In reply to comment #6)

#2 is about: When I receive e-mail notification from someone wanting to have an
account, the notification to me is always in HIS language, not in mine.

This should be changed to use the content language.

Done in r82591.

(In reply to comment #4)

Wow, that was quick - thanks a lot! It still seems to be a bit inconsistent:

  • The e-mails are in the language the user has chosen when opening the wiki

(LanguageSelector plugin), but the e-mail with the confirmation (user+password)
is always in English. If possible, this should also be in the chosen language.

I don't plan to support that plugin for anon users at this time :/

The other things should be done now.