Page MenuHomePhabricator

Babel headers "User language" and "Users by language" follow content language
Closed, InvalidPublic

Description

{{#babel}} still uses two English-language strings: User language and Users by language. They should be translated. Additionally, it would be handy to have the option to hide those strings.

Event Timeline

NMaia created this task.Jun 5 2016, 5:54 PM
Restricted Application added subscribers: Zppix, Aklapper. · View Herald TranscriptJun 5 2016, 5:54 PM
Aklapper renamed this task from Internationalize English strings to Allow translating English strings: "User language" and "Users by language".Jun 6 2016, 9:40 AM
Nikki added a subscriber: Nikki.Nov 1 2016, 10:17 AM

You can hide those strings by using "plain=1" as the first parameter (see T33309)

Nemo_bis renamed this task from Allow translating English strings: "User language" and "Users by language" to Babel headers "User language" and "Users by language" follow content language.Nov 1 2016, 10:37 AM
Nemo_bis triaged this task as Normal priority.
NMaia added a comment.Nov 1 2016, 10:41 AM

Thanks @Nikki. Where can I find more documentation on it?

I can't see any wiki where the translation doesn't work in the way explained at https://www.mediawiki.org/wiki/Extension:Babel#Configuration

You're talking of some multilingual wiki which has English as default content language, I suppose. I see the headers don't follow the user language, probably because they are links and must link a page which exists locally.

We could translate the link label if the translations aren't too inconsistent (and hence the link target isn't surprising):

Nemo_bis closed this task as Invalid.EditedNov 6 2016, 5:48 PM

Actually, this is already handled by the code; we just need to set

$wgBabelUseUserLanguage
(boolean) Whether to use the user interface language for the header and footer message. If false (default), it will be in the page content language. This is because using the user interface language may fragment the parser cache.

https://www.mediawiki.org/wiki/Extension:Babel#Configuration

For Wikimedia wikis we can probably reconsider this decision: please open a discussion at https://meta.wikimedia.org/wiki/Wikimedia_Forum and then request a global configuration change.