Commit graph

286 commits

Author SHA1 Message Date
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
59ef38fff3 Use Unicode notation (U+XXXX) instead of HTML notation (&#xXXXX;) in comments
Performed using:
sed -i 's/&#x\([0-9a-f]*\);/U+\U\1/gi' languages/messages/* languages/classes/*

Change-Id: Id489ae5ffb10bc5b047f72bc6834dd0488b5f940
2018-10-01 12:26:19 +02: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
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
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
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
e14f84ab9c Localisation updates from https://translatewiki.net.
Change-Id: I18970accbce3b383e4ad89df2b5cd0d638861e26
2014-03-21 20:46:11 +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
5a44ef0bca Localisation updates from https://translatewiki.net.
Change-Id: I2dd97b0dda0af44be6ad3979d5934554a4d7e31c
2014-03-02 20:32:03 +00:00
Translation updater bot
7c3d803937 Localisation updates from https://translatewiki.net.
Change-Id: I71e13fdbb541c2fccbe303849a3c78f0c1260bd2
2014-02-21 22:06:21 +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
Translation updater bot
28a4a17d96 Localisation updates from https://translatewiki.net.
Change-Id: I2bf221ca2d246108335c61947a464d23961a6551
2014-01-21 19:45:39 +00:00
Translation updater bot
fc1665c9da Localisation updates from https://translatewiki.net.
Change-Id: I8b17b1f8ea175c4f1cf75bece53b79eba39bb509
2014-01-18 21:11:17 +00:00
Translation updater bot
5f0cf41d09 Localisation updates from https://translatewiki.net.
Change-Id: Ib0c5b0c2b4d450e2ed7ec2b2a4de418bdf6fa36d
2014-01-17 20:40:24 +00:00
Translation updater bot
8a14c3b7d4 Localisation updates from https://translatewiki.net.
Change-Id: Ibc3cffd4793d8201841e2ba0c92e6b3b7abe4412
2014-01-16 22:59:11 +00:00
Translation updater bot
e40079c3f8 Localisation updates from https://translatewiki.net.
Change-Id: Iaee33fbd265807b18879b6f9873d1d4344dfb878
2014-01-08 20:34:03 +00:00
Translation updater bot
4dd6a41af7 Localisation updates from https://translatewiki.net.
Change-Id: I78257c1482d2a8a5a36693082c3228a63d0f4b8f
2013-12-10 20:48:26 +00:00
Translation updater bot
9ffcc282ab Localisation updates from https://translatewiki.net.
Change-Id: Id4b89fcef61ccf1e329710f6beff9398669fdadb
2013-12-08 20:26:31 +00:00
Translation updater bot
4767a49bf9 Localisation updates from https://translatewiki.net.
Change-Id: Id32d5c87533081016e6a00312703f450782a1d6d
2013-12-07 10:46:45 +00:00
Translation updater bot
5531631535 Localisation updates from https://translatewiki.net.
Change-Id: I91af046a42d410457d6ccb6ce44657a29d184434
2013-12-05 21:22:40 +00:00
Translation updater bot
f3eacb22b9 Localisation updates from https://translatewiki.net.
Change-Id: Ic4c5e76d04630a9da5bde0590db09b55d30132ec
2013-12-04 20:29:19 +00:00
Translation updater bot
e7e842ad37 Localisation updates from https://translatewiki.net.
Change-Id: Iac7415ec17a0a30026e8c542f5ddd98d67b35d59
2013-11-24 20:26:31 +00:00
Translation updater bot
4484261325 Localisation updates from http://translatewiki.net.
Change-Id: I0eb353cd0cadf0bed7cd17d4c3eb2c7e108f6aa6
2013-11-20 21:03:52 +00:00
Translation updater bot
09519accc3 Localisation updates from http://translatewiki.net.
Change-Id: I5a74c20de10a3203ff81d453de6c739a8a476081
2013-11-18 06:37:41 +00:00
Translation updater bot
88e87b54d0 Localisation updates from http://translatewiki.net.
Change-Id: I9c659e0738ccd737dc0e30042e82c2d50048b9d8
2013-11-13 20:17:13 +00:00
Translation updater bot
5642da0d38 Localisation updates from http://translatewiki.net.
Change-Id: I46ce170fbf18fdde0307af661a817aa1d3850d61
2013-11-12 20:33:52 +00:00
Brad Jorsch
db9c4cb3cf Remove linkprefix message, add $linkPrefixCharset
The existing "linkprefix" message is unlikely to be accurately
customized by message translators (as shown by the fact that, of the 10
distinct customizations prior to Iaa7eaa44 (which made them even more
complicated), 3 were broken or entirely ineffective, 1 was half
ineffective, and 2 more seem to have included the Latin-1 Supplement by
accident) or by local wiki admins. So, like linktrail before it, let's
move it out of the system messages and into a separate language
variable.

At the same time, let's make it a simple character set (like
$wgLegalTitleChars) rather than a complicated regular expression. The
complicated regex now lives in the parser.

This also adjusts the output of the API's action=query&meta=siteinfo and
adds an accessor parallel to the linkTrail accessor to Language.

Note the following changes that are not simply extracting the existing
charset from the linkprefix message for $linkPrefixCharset:
* The En message matched all non-ASCII UTF-8 characters by matching the
  component bytes (\\x80-\\xff). The new character set is equivalent.
* Various languages were identical to En and so have no $linkPrefixCharset
  set. These are: Ary Az Ce Ga Id Ka Kiu Km Ltg Mk Ms Ne Nn Ro Roa_tara Sc Si
  Sr_ec Sr_el Tl Tt_cyrl Tt_latn Ug_arab War
* Cu, Uk, and Udm are changed to match any number of „ or « in the prefix.
* Cv tried to include "«" that was redundant to the range \\x80-\\xff
  (see En comment). This was removed.
* Diq was entirely bogus, and so was removed.
* Gu included many additional UTF-8 characters that are redundant to the
  range \\x80-\\xff (see En comment). These were removed, and the
  resulting character set is equivalent to En.
* Mt has been broken since it was introduced in r37242. The charset used is
  equivalent to the broken regex.

Bug: 56031
Change-Id: I3369851b33113fc118a1bace38f3ac310cdd9725
2013-10-29 19:06:15 -04:00
Translation updater bot
ab65effabe Localisation updates from http://translatewiki.net.
Change-Id: I7d7dfd1a1e1a395c639b30489bacceedfbfc6330
2013-10-24 20:56:36 +00:00
Brad Jorsch
c800638273 Improve linkprefix regular expressions
The regular expression in the linkprefix message is run against the
entire page up to each wikilink, and is expected to capture one group
having everything except the prefix and another having only the prefix.
For long pages this winds up being a lot of text, so inefficient regular
expressions are going to cause problems.

The current regex is this:

  /^(.*?)([a-zA-Z\\x80-\\xff]+)$/sD

This is not efficient: it will scan through the string trying to match
against every run of one or more letters/non-ASCII characters,
backtracking at every one except possibly the last. The only reason this
hasn't been a huge problem everywhere is because only a few languages
have this feature enabled.

This change replaces this with this regex:

  /^((?>.*(?<![a-zA-Z\\x80-\\xff])))(.+)$/sD

This is rather more efficient: it will grab the whole string (which is
actually fast even for huge strings), then back off character by
character until it finds one that isn't a letter/non-ASCII.

Note that the above could be simplified somewhat:

  /^((?>.*[^a-zA-Z\\x80-\\xff]|))(.+)$/sD

The performance improvement here is minor, and Gujarati, Church Slavic,
Udmurt, and Ukrainian would still need the other style for their current
implementations.

For Gujarati, we also use another regex trick: a look-behind assertion
in PCRE must be fixed length, so something like (?<!a|bb) won't work.
But that regex fragment is equivalent to (?<!a)(?<!bb) which is allowed,
so we use that instead.

Bug: 52865
Change-Id: Iaa7eaa446b3f045a9ce970affcb2a889f44bdefd
2013-10-24 09:44:33 +00:00
Translation updater bot
cd6bc6116b Localisation updates from http://translatewiki.net.
Change-Id: I0073d11e39dd5a11d7c8c44b80401ad7b8fd6313
2013-10-23 18:58:35 +00:00
Translation updater bot
a78bddbee1 Localisation updates from http://translatewiki.net.
Change-Id: I922e660fafc7a952129beebeaed001712f5c2bc1
2013-10-21 19:42:49 +00:00
Translation updater bot
9b6ed54c6a Localisation updates from http://translatewiki.net.
Change-Id: Ic112ae52452378c970d37c0b3061433131f5f55d
2013-10-04 21:41:40 +00:00
Translation updater bot
bb1d43e7ba Localisation updates from http://translatewiki.net.
Change-Id: I3be3f9075e1d3deabe21db9fffd22698f4f250ff
2013-09-29 19:10:48 +00:00
Translation updater bot
d4018551b0 Localisation updates from http://translatewiki.net.
Change-Id: I4f52889299ffc8ae8d49634fd8b36d73c66d8b5a
2013-09-07 19:47:58 +00:00
Translation updater bot
5f7a37f271 Localisation updates from http://translatewiki.net.
Change-Id: I5e7da5913a10c7f75cdf223f2166cc7873134949
2013-09-04 19:50:47 +00:00
Translation updater bot
17bc2a1927 Localisation updates from http://translatewiki.net.
Change-Id: I332982e76aa7f846c42e81fbd30141d85326f8b8
2013-08-20 19:39:41 +00:00
Translation updater bot
e49190fd3e Localisation updates from http://translatewiki.net.
Change-Id: Iad6b538be6d172d232b8e593ff98faf3d5707abe
2013-08-18 19:39:15 +00:00
Translation updater bot
7e4658fe71 Localisation updates from http://translatewiki.net.
Change-Id: I9a8b8769d0077d4d406c27910b8f94d9f3a2ceeb
2013-08-02 21:40:25 +00:00
Translation updater bot
5f140a8a57 Localisation updates from http://translatewiki.net.
Change-Id: I8ba898043b74a52eeb01aabfb81af51ef3a0c451
2013-07-25 19:25:15 +00:00
Translation updater bot
c16977b359 Localisation updates from http://translatewiki.net.
Change-Id: I1a47d9aee7f6b86cdd51f1ad0ecad9cd92d2ac4f
2013-07-09 20:23:48 +00:00
Translation updater bot
420402c534 Localisation updates from http://translatewiki.net.
Change-Id: I5e01e14f913210f56890636e3a6c59f4db7bbc30
2013-07-07 19:28:48 +00:00
Translation updater bot
f2751c6d27 Localisation updates from http://translatewiki.net.
Change-Id: Iec37b28f3b8deec9ca4be82356d33b9e07a5b6a1
2013-07-04 19:58:00 +00:00
Translation updater bot
d473de4a84 Localisation updates from http://translatewiki.net.
Change-Id: I8cd827a5fece398cc94f0ca6ece76fe32811dcd9
2013-07-03 19:41:20 +00:00