Add the same no-arg options for language code that
{{#dir}} and {{#bcp47}} have, for consistency:
* `{{#language}}` will return the name of the *target language*
(for articles, the content language; for messages, the user language)
The default value for the "in language" argument should be the autonym.
This was working previously but only via a baroque code flow path for
invalid language codes. Make this a bit clearer and add tests.
Since non-autonym language code translations are added via the
[[Extension:CLDR]] in production, hook LanguageGetTranslatedLanguageNames
in the ParserTestRunner to ensure that we can test this.
Followup-To: Ice1c671c5b3cc077d2bb80ea5dc25c5eabbfeb36
Followup-To: I19c3e91a924e080f37dc95a0d4e61493583b533e
Change-Id: Ibf6e7f194cc056eadb48a5ad8e6d01a761d9351c
zh-hk respectively
* Merge zh-tw translations back to zh-hant
* Split zh-hans, zh-hant, zh-hk translations and aliases from zh to
respective message files
* Language->getNamespaceAliases() with the updated language fallback
chain can already fetch aliases from language variant i18n files
All translation authors are added when merging those translations.
Bug: T286291
Bug: T296188
Change-Id: Ia2aa17fa15fe6d6b9396bf06b472d28b3ab12f68
Prevent zh-Hant and other zh-Hant-* (including zh-Hant-HK / zh-hk)
fallback to zh-Hant-TW (zh-tw) and show the Republic era formats.
Bug: T339009
Change-Id: I064e693aa3721af364163ac4ccbea7e9e48ae0f7
Copy the Renameuser extension into core, with minimal code changes. The
hook handlers are inlined into Article, SpecialLog and
SpecialContributions.
Bug: T27482
Change-Id: I314021f4138773df6aaf2753b33ab8283cd16974
Follows-up I301f471f86ba2.
For ease of navigation, move Converter subclasses to a group called
"Languages", which for documentation purposes is a subgroup of
"Language". The next commit does the same for Messages* files,
and Language subclasses (done separately for ease of review).
Change-Id: If1cef9aa15f536ebaedd4477ad7453426e7f3b85
Update language fallback chain to zh-hans <=> zh-hant bidirectional to prevent adding translation
duplicates in zh and zh-hans.
Add en magic words in zh message file to prevent fallback to translations of language variants.
Bug: T286291
Bug: T296188
Bug: T252367
Bug: T278639
Related: I484d4cba1e16fce0f7c433a865f3acf676b818c1
Related: Idf39310b4b66f9c5f210d1717e0e47b9e598c13c
Change-Id: I3b30303118ae8cd87dc5f2016372f0de89a7b075
'LEFT-TO-RIGHT MARK' (U+200E) and 'RIGHT-TO-LEFT MARK' (U+200F) are not
needed in the source code comments.
c8caf26ffd removed already the LRM/RLM from Names.php.
Change-Id: I7d5e170af688fb74b8f040be43bd2be0a7622dee
Use @phpcs-require-sorted-array from new codesniffer release 32.0.0
Similiar to special page alias in
I827d1f5010d000609324ec398beeb142d9bac299
Bug: T255826
Change-Id: I7b7cbf0c03714001609437af68fe16e06930cc33
Imported RandomRootPage extension as SpecialRandomrootpage, including
its aliases and localization messages.
Bug: T109809
Change-Id: I7252ae9f4a8f1822b023cc4f0d3a732af48d84d3
Tuvan (tyv) didn't have a special page section, so now it's added.
See also I6f84eaf414b6d4239522bad14e90b1cbfc82590f.
Bug: 69461
Change-Id: Ie6a4d878b87ee030f9c042b43f7b1fb424b54099
* Interface strings are now elsewhere
* MessagesQQQ no longer exists
* Prefer https for translatewiki.net
Change-Id: I76652ea94cca80441cd5d978029e4707ee41c4fd