Page MenuHomePhabricator

Some language tags show wrong language ("English") in Babel boxes
Closed, ResolvedPublic

Description

On Meta, Babel boxes for languages into which MediaWiki has not been translated (such as gos, pjt, abc...) show the language name as "English". This is because Meta has customized the text of Babel system messages to make Babel box links work correctly on global user pages, leading to T57473: i18n fallback uses message from i18n file before customized message from DB (MediaWiki: namespace).

See screenshot for an example (on translatewiki.net).

twn-O3G0.png (495×270 px, 19 KB)

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:55 AM
bzimport set Reference to bz62714.
bzimport added a subscriber: Unknown Object (MLST).

(In reply to Purodha Blissenbach from comment #0)

Created attachment 14831 [details]
Screenshot of seection of
https://translatewiki.net/w/i.php?title=User:Purodha showing several Babel
boxes of different languages all incorrectly saying

I don't see how frr and others are incorrect. Could you explain?

Attached:

twn-O3G0.png (495×270 px, 19 KB)

(In reply to Andre Klapper from comment #1)

I don't see how frr and others are incorrect. Could you explain?

They are correct, indeed.
Change /all/some/ in my above report.
Aplologies for my wrong use of English and my typo.

Why is it related? Because they're about related problems.

As for fixing them via CLDR, I'm not sure how CLDR could be expected to "fix" all the invalid language codes (e.g., including typos).

Interestingly, {{#babel:gos}} works on a local MW installation and on test2wiki and enwiki:

gos-N  This user has a native understanding of Gronings.

But it doesn't work on TWN or meta:

gos-N  This user has a native understanding of English.

This is apparently because the page MediaWiki:Babel-N-n has been customised on the latter two wikis, which confuses the hell out of the Babel extension.

If T57473: i18n fallback uses message from i18n file before customized message from DB (MediaWiki: namespace) was fixed, this would be too.

In T64714#2909699, @TTO wrote:

the page MediaWiki:Babel-N-n has been customised on the latter two wikis

Really? Where?

On Meta it is This user has a [[m:$1|native]] understanding of [[m:$2|English]].

As for TWN, I looked at Purodha's user page, which was using gos-1 (not gos-N), so in fact the message in question is MediaWiki:Babel-1-n, which has been blanked. (Sorry for my incorrect comment before.)

Thanks. I deleted that message on twn.

@Iniquity: Reading does not maintain Babel hence removing Web-Team-Backlog. Please only add team projects to task with consent of teams. Thanks.

Change 884400 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/extensions/Babel@master] Fix handling of babel translations when local messages are overriden

https://gerrit.wikimedia.org/r/884400

Note the above patch does not fix T144045, which is an unrelated issue with similar symptoms, one of which is that {{#babel:gom}} produces "This user has a native understanding of English". This patch fixes the bug that all untranslated languages use English if a local message is present on-wiki.

Change 884400 merged by jenkins-bot:

[mediawiki/extensions/Babel@master] Fix handling of babel translations when local messages are overriden

https://gerrit.wikimedia.org/r/884400

Pppery removed a project: Patch-For-Review.