Page MenuHomePhabricator

MediaWiki:Movepage-summary is not forced to content language
Closed, DuplicatePublic

Description

MediaWiki:Movepage-summary loads if uselang is set to en, but not if set to other languages.

In general if a summary subpage (example: /es, /fr, etc.) does not exist the english text (or the autotranslate template if used) should be rendered.

Example:

Event Timeline

Summary messages of special pages are always shown in content language.

If Wikimedia Commons want the user language shown, the $wgForceUIMsgAsContentMsg setting for wikimedia commons must be set. Than this task is a Site Request.

Current config shown under https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php - Search for wgForceUIMsgAsContentMsg

See also T177306

matmarex renamed this task from MediaWiki:Movepage-summary does not load correctly to MediaWiki:Movepage-summary is not forced to content language.Jan 1 2018, 6:43 PM

Summary messages of special pages are always shown in content language.

If Wikimedia Commons want the user language shown, the $wgForceUIMsgAsContentMsg setting for wikimedia commons must be set. Than this task is a Site Request.

Current config shown under https://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php - Search for wgForceUIMsgAsContentMsg

See also T177306

Okay, then mw page should be added to wgForceUIMsgAsContentMsg :) Thanks!

Change 402040 had a related patch set uploaded (by Steinsplitter; owner: Steinsplitter):
[operations/mediawiki-config@master] Adding Movepage-summary to wgForceUIMsgAsContentMsg to allow onwiki localizaion of a commosn specific notice. All changes have been made onwiki yet.

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

Change 402040 merged by jenkins-bot:
[operations/mediawiki-config@master] Adding Movepage-summary to wgForceUIMsgAsContentMsg to allow onwiki localizaion of a commosn specific notice. All changes have been made onwiki yet.

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

Mentioned in SAL (#wikimedia-operations) [2018-01-04T14:24:24Z] <niharika29@tin> Synchronized wmf-config/InitialiseSettings.php: Adding Movepage-summary to wgForceUIMsgAsContentMsg T183848 (duration: 01m 02s)

Steinsplitter claimed this task.

After short test with Steinsplitter, the patch unfortunately still doesn't work.

It seems I misread your first post, wgForceUIMsgAsContentMsg is for the opposite use: When a usally content message is part of the array, it would always shown as user message.
There seems no way to load a message always as content language (or says fallback to the mediawiki page as content language - see T57473 or T3495).

I am resetting the assignee of this reopened task as there has not been further work on this (please correct me if I am wrong!). Thanks for your understanding.

Change 941424 had a related patch set uploaded (by Func; author: Func):

[operations/mediawiki-config@master] Revert "Adding Movepage-summary to wgForceUIMsgAsContentMsg to allow"

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

I think this is the same issue as T50956: Can't override optional message in all languages with local customisation.

The revert patch should be deployed at some point. I'll schedule it the next time I have something to deploy.

Change #941424 merged by jenkins-bot:

[operations/mediawiki-config@master] Revert "Adding Movepage-summary to wgForceUIMsgAsContentMsg to allow"

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

Mentioned in SAL (#wikimedia-operations) [2025-11-03T14:05:43Z] <lucaswerkmeister-wmde@deploy2002> Started scap sync-world: Backport for [[gerrit:941424|Revert "Adding Movepage-summary to wgForceUIMsgAsContentMsg to allow" (T183848)]], [[gerrit:1200876|Freeze LiquidThreads on huwiki and svwikisource (T406026 T406227)]]

Mentioned in SAL (#wikimedia-operations) [2025-11-03T14:10:27Z] <lucaswerkmeister-wmde@deploy2002> lucaswerkmeister-wmde, esanders, func: Backport for [[gerrit:941424|Revert "Adding Movepage-summary to wgForceUIMsgAsContentMsg to allow" (T183848)]], [[gerrit:1200876|Freeze LiquidThreads on huwiki and svwikisource (T406026 T406227)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2025-11-03T14:19:59Z] <lucaswerkmeister-wmde@deploy2002> Finished scap sync-world: Backport for [[gerrit:941424|Revert "Adding Movepage-summary to wgForceUIMsgAsContentMsg to allow" (T183848)]], [[gerrit:1200876|Freeze LiquidThreads on huwiki and svwikisource (T406026 T406227)]] (duration: 14m 16s)