Page MenuHomePhabricator

[Epic] Multivariant and multilingual wiki fixes and improvements
Open, Needs TriagePublic

Description

Multivariant and multilingual wiki fixes and improvements


General goal


Most variant-dependent or language-dependent configuration variables/functions and the system messages using them should be supported for variants and languages.

$wgSitename


Current

$wgSitename = "SITENAME";

Suggested

$wgSitenames = [
	'default' => "SITENAME",
	'languages' => [
		'zh' => "default SITENAME",
		'zh-hans' => "zh-Hans SITENAME",
		'zh-hant' => "zh-Hant SITENAME",
	]
]

Description

This both support multivariant site and multilingual site while {{SITENAME}} in various system messages should be in the language of message, especially in language variants.

$wgLogos


  • T22807 Enable site logo displaying according to user language
  • T273578 Wikis with language variants must override logo in Common.css
  • T305692 Support language fallback for logo variants

wfMessage()


Current

wfMessage( 'message-key' );
wfMessage( 'message-key' )->inContentLanguage();
wfMessage( 'message-key' )->inLanguage( $lang );

Suggested

wfMessage( 'message-key' );
wfMessage( 'message-key' )->inContentLanguage();
wfMessage( 'message-key' )->inPageLanguage();
wfMessage( 'message-key' )->inPageViewLanguage();
wfMessage( 'message-key' )->inLanguage( $lang );

Description

(to do)

Translation:FULLPAGENAME/Page_display_title/*


Current

Translation:FULLPAGENAME/Page_display_title/*

FULLPAGENAME translation

Suggested

(to do)

Description

It should provide a way to fetch page display title without namespace translation. See Template:Localized_link in MediaWiki.org .

Event Timeline

Nikerabbit added a subscriber: Nikerabbit.

Thanks for reporting this, but it's not actionable for us. Tasks should be focused on one specific thing each. This includes many proposals that spans across many repositories and many teams, so there is nobody who can own this task. Could you please report each suggestion as a a separate task?

This is a parent task for (currently uncreated) sub-tasks.

Will create sub-tasks once the plan is done.

Winston_Sung renamed this task from Multivariant and multilingual wiki fixes and improvements to [INIT] Multivariant and multilingual wiki fixes and improvements.Apr 22 2022, 2:46 AM
Winston_Sung updated the task description. (Show Details)

This "parent task" does not seem to serve a purpose on its own; the subtasks don't seem to require a parent task.
I'll assign this to you if for some reason you would like to have this task. :)

Winston_Sung renamed this task from [INIT] Multivariant and multilingual wiki fixes and improvements to [EPIC] Multivariant and multilingual wiki fixes and improvements.Apr 23 2022, 2:06 AM

Thanks.

Winston_Sung renamed this task from [EPIC] Multivariant and multilingual wiki fixes and improvements to [Epic] Multivariant and multilingual wiki fixes and improvements.Apr 23 2022, 2:08 AM