= 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` ==
----
```
$wgLogos = [
'variants' => [
'zh-hans' => [
'1x' => 'https://zh.wikipedia.org/static/images/project-logos/zhwiki-hans.png',
],
'zh-cn' => [
'1x' => 'https://zh.wikipedia.org/static/images/project-logos/zhwiki-hans-2x.png',
],
],
'1x' => 'https://zh.wikipedia.org/static/images/project-logos/zhwiki-2x.png',
];
```
```
$wgLogos = [
'languages' => [
'zh-hans' => [
'1x' => 'https://zh.wikipedia.org/static/images/project-logos/zhwiki-hans.png',
],
'zh-cn' => [
'1x' => 'https://zh.wikipedia.org/static/images/project-logos/zhwiki-hans-2x.png',
],
],
'1x' => 'https://zh.wikipedia.org/static/images/project-logos/zhwiki-2x.png',
];
```
== `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 .