Commit graph

1051 commits

Author SHA1 Message Date
anterdc99
4da53e4e00
Fix indentations of special page aliases in Trad. Chinese
Change-Id: If502ebe94f3b6414f51c7238df4c49e756393d07
(cherry picked from commit b6ecdfb087106abf405691f48a222ae628c2ff14)
2025-02-06 21:06:56 +08:00
anterdc99
41e8b8d5e7
Add special page aliases for Simp. & Trad. Chinese
Change-Id: I1d30fe0ca4c1956201e465a32c9ca1aa5919f931
(cherry picked from commit 076db709a912ce23c922e4e10f8e9e94712201ac)
2025-02-06 21:02:36 +08:00
C. Scott Ananian
450fe7fcd8 Make {{#language}} consistent with {{#dir}} and {{#bcp47}}
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
2024-07-30 20:27:17 +00:00
Winston Sung
64c005972c Merge zh and zh-tw namespace translations back to zh-hans, zh-hant,
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
2023-07-16 16:27:07 +00:00
Winston Sung
49cabfa6ee MessagesZh_hant: Explicitly specify date formats to prevent fallback
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
2023-06-29 14:35:56 +00:00
Tim Starling
7efc7f7518 Copy the Renameuser extension into core
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
2023-03-03 09:39:39 -05:00
Stang
aa3fac56b4 Remove twn-related comment from languages/messages/* files
Bug: T304802
Change-Id: Iccacf6288d758e526c95df69861385a4ac2d0f55
2022-11-13 22:46:44 -05:00
Timo Tijhof
939700e8ff language: Continue doc Languages subgroup for msg files and subclasses
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
2022-06-29 00:13:45 +00:00
Winston Sung
934c922686 Rearrange zh-related language fallback chain
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
2022-06-01 13:41:10 +00:00
Fomafix
db874bd8a7 Remove U+200E and U+200F from source code comments
'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
2021-08-21 15:07:16 +00:00
Umherirrender
7f28fe35b8 Sort magic words alises alphabetically in static language files
Use @phpcs-require-sorted-array from new codesniffer release 32.0.0

Similiar to special page alias in
I827d1f5010d000609324ec398beeb142d9bac299

Bug: T255826
Change-Id: I7b7cbf0c03714001609437af68fe16e06930cc33
2021-03-06 16:21:51 +01:00
Umherirrender
673477a4b4 Sort special page alises alphabetically
Use @phpcs-require-sorted-array from new codesniffer release 32.0.0

Bug: T255826
Change-Id: I827d1f5010d000609324ec398beeb142d9bac299
2020-10-30 09:59:17 +01:00
Fomafix
ce6f7faadd Remove trailing empty lines in PHP
Performed using
find . -name \*.php -exec sed -i -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba' {} \;

Change-Id: I5d0627f94c73690cf3a8a453539c22c760c2aa60
2017-01-16 22:06:43 +01:00
Kunal Mehta
6e9b4f0e9c Convert all array() syntax to []
Per wikitech-l consensus:
 https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html

Notes:
* Disabled CallTimePassByReference due to false positives (T127163)

Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
2016-02-17 01:33:00 -08:00
Tim Hollmann
6479706b97 Add Special:Randomrootpage (from RandomRootPage extension)
Imported RandomRootPage extension as SpecialRandomrootpage, including
its aliases and localization messages.

Bug: T109809
Change-Id: I7252ae9f4a8f1822b023cc4f0d3a732af48d84d3
2016-01-18 14:12:32 -08:00
Mark A. Hershberger
97e9cdd2ef Remove references to Popularpages alias
The bit being removed here causes a NOTICE with HitCounters.

Change-Id: I318eb641d4ed4b50dea0a172cf7970045b3a49e7
2015-07-25 15:45:44 -04:00
Siebrand Mazeland
661f9e23e0 Localisation updates from https://translatewiki.net.
Updates for magic words.

Change-Id: Ic564d36de395c9a30be5f1390591da723f47edce
2015-01-29 20:39:32 +01:00
Siebrand Mazeland
187a93e554 Localisation updates from https://translatewiki.net.
Updates for special page aliases.

Change-Id: Ic2b34a948d527cee6b76abd7e24a6d8a33b65bd2
2015-01-29 20:14:33 +01:00
Amir E. Aharoni
16534f426b Copy translations of Special:MyLanguage alias from Translate
Tuvan (tyv) didn't have a special page section, so now it's added.

See also I6f84eaf414b6d4239522bad14e90b1cbfc82590f.

Bug: 69461
Change-Id: Ie6a4d878b87ee030f9c042b43f7b1fb424b54099
2014-09-21 09:19:06 +00:00
Niklas Laxström
b382478944 Cleanup message file documentation
* Interface strings are now elsewhere
* MessagesQQQ no longer exists
* Prefer https for translatewiki.net

Change-Id: I76652ea94cca80441cd5d978029e4707ee41c4fd
2014-06-05 14:06:25 +00:00
Siebrand Mazeland
0dd91d5396 Migrate translations for core to JSON format
Largest patch set in the history of MediaWiki!

Change-Id: I918cfdc46c099017ca3622d1bcbbdd30c4fd00f6
2014-04-01 21:25:43 +00:00
Translation updater bot
4835603d8e Localisation updates from https://translatewiki.net.
Change-Id: I54a8e52634c1e36fadd7a84f236747765fc98684
2014-03-31 20:11:50 +00:00
Translation updater bot
504179c922 Localisation updates from https://translatewiki.net.
Change-Id: I6ac7ce50b6204e9e9d63695c9532d33796d4cc7d
2014-03-29 21:13:18 +00:00
Translation updater bot
a3848d8aa2 Localisation updates from https://translatewiki.net.
Change-Id: Ife44ea47332196ed798dff5e015709267b9d8d47
2014-03-28 19:42:36 +00:00
Translation updater bot
9ff59d43e9 Localisation updates from https://translatewiki.net.
Change-Id: Ica6fa7fc2d685a655e07b24cd54c7ec42d10f214
2014-03-27 20:29:00 +00:00
Translation updater bot
8f2e73f9b3 Localisation updates from https://translatewiki.net.
Change-Id: I31ee0d1685cdf6b315cb5336b30e548c76d67a95
2014-03-26 20:37:55 +00:00
Translation updater bot
b7985082a1 Localisation updates from https://translatewiki.net.
Change-Id: Icad3f57cf182107ce7e813297f00473e75e4ad6f
2014-03-24 22:00:50 +00:00
Translation updater bot
e14f84ab9c Localisation updates from https://translatewiki.net.
Change-Id: I18970accbce3b383e4ad89df2b5cd0d638861e26
2014-03-21 20:46:11 +00:00
Translation updater bot
347582bf5a Localisation updates from https://translatewiki.net.
Change-Id: Idf379fd907b86b191bf863d4dded00e5d9c94f35
2014-03-20 20:31:14 +00:00
Translation updater bot
ed3e9d73ed Localisation updates from https://translatewiki.net.
Change-Id: If3a8ff71e98aab98c39991147c715ec388ef91aa
2014-03-19 20:44:32 +00:00
Translation updater bot
9a51184037 Localisation updates from https://translatewiki.net.
Change-Id: Id6221ab7d0d906278a9163513ca63b74c9d41645
2014-03-18 20:38:58 +00:00
Translation updater bot
a047acedae Localisation updates from https://translatewiki.net.
Change-Id: I91e14444039b2b1345602a8c3291794ab3beafd1
2014-03-17 21:11:15 +00:00
Translation updater bot
c9c8d2de86 Localisation updates from https://translatewiki.net.
Change-Id: If66ddc1478b986417b08bd6d84cf441ea7f4526c
2014-03-15 20:07:15 +00:00
Translation updater bot
96c0f2ad6c Localisation updates from https://translatewiki.net.
Change-Id: I87ed70aa87a61057fa81f0eae63363af85fd71a0
2014-03-11 20:43:01 +00:00
Translation updater bot
a83a6504a5 Localisation updates from https://translatewiki.net.
Change-Id: I02cf02d1e9ce69f9b23eb7ddd23b1482e4ab7891
2014-03-07 21:38:12 +00:00
Translation updater bot
7ae73c1ff5 Localisation updates from https://translatewiki.net.
Change-Id: Idcbfe9491adcb996ea88dc2bc9040e9640b6d4fc
2014-03-05 21:03:58 +00:00
Translation updater bot
90c2628eb0 Localisation updates from https://translatewiki.net.
Change-Id: Iac95418170688f90f53dcc28f6c429f0e79b0ac4
2014-03-03 20:52:13 +00:00
Translation updater bot
5a44ef0bca Localisation updates from https://translatewiki.net.
Change-Id: I2dd97b0dda0af44be6ad3979d5934554a4d7e31c
2014-03-02 20:32:03 +00:00
Translation updater bot
f4c666cd00 Localisation updates from https://translatewiki.net.
Change-Id: I2535a33defbc75fdb860acac3c98a8511e064a0a
2014-02-24 20:53:27 +00:00
Translation updater bot
c5120a9676 Localisation updates from https://translatewiki.net.
Change-Id: I11ac7d4aeadddc7f20f44b98a9c08c8f20019ee6
2014-02-23 21:43:18 +00:00
Translation updater bot
6146a7d310 Localisation updates from https://translatewiki.net.
Change-Id: Id88aa24093b40a87b6beee70d81124179f95f006
2014-02-19 20:03:32 +00:00
Translation updater bot
9d4ea06b29 Localisation updates from https://translatewiki.net.
Change-Id: I7b391e39e428d5e358d52770b58b36f56a891036
2014-02-15 20:55:27 +00:00
Translation updater bot
157bda9268 Localisation updates from https://translatewiki.net.
Change-Id: I276bff053ef2bfea3180abe56bc2e26b5fcbe89b
2014-02-14 20:11:54 +00:00
Translation updater bot
988c92e651 Localisation updates from https://translatewiki.net.
Change-Id: I97bdb2a6d7351a1f60ad83d71e3ea18f38c40e54
2014-02-10 20:42:35 +00:00
Translation updater bot
d23c86c1f2 Localisation updates from https://translatewiki.net.
Change-Id: I1e1c0a4e200f61d003e2fcb221d9e51f47a75afd
2014-02-07 21:45:36 +00:00
Translation updater bot
6a0d82e575 Localisation updates from https://translatewiki.net.
Change-Id: I57623a929ef7cce482f476d6e2aa557d4a6f5c89
2014-02-06 20:45:45 +00:00
Translation updater bot
f2a16ab59c Localisation updates from https://translatewiki.net.
Change-Id: I9ed903822cabaf2a845d01f1a68ee34ac444d980
2014-02-01 19:37:45 +00:00
Translation updater bot
7b1abca5c0 Localisation updates from https://translatewiki.net.
Change-Id: Icb726976f02aaed49f1b1e83a429c6a05c8ae103
2014-01-28 21:09:31 +00:00
Translation updater bot
a0cbba1d18 Localisation updates from https://translatewiki.net.
Change-Id: I8187963fdb3b2cb88ee7afc1cc3b32cf8672e20b
2014-01-26 15:54:15 +00:00
Translation updater bot
cf96f84742 Localisation updates from https://translatewiki.net.
Change-Id: Idf89d2bff84d9c4e74be06a2532222891b0fb30e
2014-01-24 20:00:37 +00:00