Commit graph

286 commits

Author SHA1 Message Date
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
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
Bartosz Dziewoński
0313128b10 Use PHP 7 "\u{NNNN}" Unicode codepoint escapes in string literals
In cases where we're operating on text data (and not binary data),
use e.g. "\u{00A0}" to refer directly to the Unicode character
'NO-BREAK SPACE' instead of "\xc2\xa0" to specify the bytes C2h A0h
(which correspond to the UTF-8 encoding of that character). This
makes it easier to look up those mysterious sequences, as not all
are as recognizable as the no-break space.

This is not enforced by PHP, but I think we should write those in
uppercase and zero-padded to at least four characters, like the
Unicode standard does.

Note that not all "\xNN" escapes can be automatically replaced:
* We can't use Unicode escapes for binary data that is not UTF-8
  (e.g. in code converting from legacy encodings or testing the
  handling of invalid UTF-8 byte sequences).
* '\xNN' escapes in regular expressions in single-quoted strings
  are actually handled by PCRE and have to be dealt with carefully
  (those regexps should probably be changed to use the /u modifier).
* "\xNN" referring to ASCII characters ("\x7F" and lower) should
  probably be left as-is.

The replacements in this commit were done semi-manually by piping
the existing "\xNN" escapes through the following terrible Ruby
script I devised:

  chars = eval('"' + ARGV[0] + '"').force_encoding('utf-8')
  puts chars.split('').map{|char|
    '\\u{' + char.ord.to_s(16).upcase.rjust(4, '0') + '}'
  }.join('')

Change-Id: Idc3dee3a7fb5ebfaef395754d8859b18f1f8769a
2018-06-04 16:20:13 +00: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
b9668d6d80 build: Update mediawiki-codesniffer to 0.6.0, add "composer fix"
* Fix errors spotted by new release
* Introduce "composer fix", which uses phpcbf to automatically fix some
errors spotted by phpcs.
* Drop $PHPCS_ARGS variable that didn't work on Windows, and add -s flag
* Remove rules from phpcs.xml that are now in MW-CS ruleset.

Change-Id: I13e2155695918c918b67497ac65b85a03897095e
2016-02-17 02:54:42 -08: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
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
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
e14f84ab9c Localisation updates from https://translatewiki.net.
Change-Id: I18970accbce3b383e4ad89df2b5cd0d638861e26
2014-03-21 20:46:11 +00:00
Translation updater bot
28b4dd5ff5 Localisation updates from https://translatewiki.net.
Change-Id: I1cdc5f6df47189ab35d141ed89a4c84cfac7fe18
2014-02-25 21:05: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
e40079c3f8 Localisation updates from https://translatewiki.net.
Change-Id: Iaee33fbd265807b18879b6f9873d1d4344dfb878
2014-01-08 20:34:03 +00:00
Translation updater bot
2325216443 Localisation updates from https://translatewiki.net.
Change-Id: I9b0a5f6786c86abea3e0b1ffed52291eb88447e3
2014-01-01 19:50:22 +00:00
Translation updater bot
40aceb644e Localisation updates from https://translatewiki.net.
Change-Id: I1c1d25fe74b69c0c91c69ca98636c99606dcc111
2013-12-25 19:57:26 +00:00
Translation updater bot
898aff7d3f Localisation updates from https://translatewiki.net.
Change-Id: I224ceef57736f6567735a3d1e19f1ec0fddb515e
2013-12-23 20:44:54 +00:00
Translation updater bot
67fad5af3c Localisation updates from https://translatewiki.net.
Change-Id: Ie9ce20b1c1f8a4e640cc0d79ffdcbee72cc8a024
2013-12-21 20:36:27 +00:00
Translation updater bot
8da847b003 Localisation updates from https://translatewiki.net.
Change-Id: I5986f593323e24a9f86a0f545afab11ce799727b
2013-12-18 20:31:37 +00:00
Translation updater bot
30979c32ea Localisation updates from https://translatewiki.net.
Change-Id: I80558ee8b9933e7c6ee9a866f469da928ebec4bb
2013-12-17 19:23:05 +00:00
Translation updater bot
f8544fb4bd Localisation updates from https://translatewiki.net.
Change-Id: Ida0e6e21ce8aceb61419681e283fe32dedd0a0ce
2013-12-15 20:46:10 +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
Siebrand Mazeland
87a4320444 Localisation updates from https://translatewiki.net.
Updates for translations of special page aliases.

Change-Id: I061d2f9c8f5b3f4df58060fae4101e340c68a04d
2013-12-02 09:38:25 +01: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
d4018551b0 Localisation updates from http://translatewiki.net.
Change-Id: I4f52889299ffc8ae8d49634fd8b36d73c66d8b5a
2013-09-07 19:47:58 +00:00
Translation updater bot
73cb0b10ed Localisation updates from http://translatewiki.net.
Change-Id: Idfa4331722672da932fe8a124bc9618de0e31fea
2013-07-01 19:39:13 +00:00
Translation updater bot
55582fc211 Localisation updates from http://translatewiki.net.
Change-Id: I4e865f40a8c69fdc7520bd3a89ec61ca9af57337
2013-06-18 19:46:42 +00:00
Translation updater bot
cc7b23822a Localisation updates from http://translatewiki.net.
Change-Id: I599770c4c8b53d0d46c74f1426168a5c3d963a81
2013-06-12 19:14:13 +00:00
Translation updater bot
3154b26868 Localisation updates from http://translatewiki.net.
Change-Id: Ic862c638ed6ce33d3fe4dad9743c88136d832433
2013-05-20 12:08:40 +00:00
MatmaRex
8672dc7998 SpecialWatchlist: Page header cleanup
Format the three messages in header as one paragraph with three
sentences, instead of a paragraph and two split unordered lists with
one item each and inconsistent full stops.

Message changes: In 'wlheader-enotif' and 'wlheader-showupdated',
remove initial bullet point if present and add final full stop if
missing. First used the regexes below, then went through each language
file and manually changed the messages if applicable (e.g., Thai not
using full stops at all, Asian languages using '。', Devanagari
languages using '।' etc.)
  Find: ('wlheader-[^']+'\s*=>\s*)(['"])(?:\*\s*)?([\s\S]+?)\.?\2,\n
  Replace with: $1$2$3.$2,\n

Bug: 48615
Change-Id: I856f71f36d7f4b4baff5e968d88e4d3f7aeecce2
2013-05-19 17:53:14 +02:00
Translation updater bot
846fe5b4b8 Localisation updates from http://translatewiki.net.
Change-Id: I019d72ecef04cd1851c951d76818afb81ae3f763
2013-04-13 20:31:14 +00:00
Translation updater bot
80324ed926 Localisation updates from http://translatewiki.net.
Change-Id: If7185aa1d59b6c4207765127204270ce2bc91217
2013-01-25 20:08:39 +00:00
Translation updater bot
fae0081553 Localisation updates from http://translatewiki.net.
Change-Id: I48ac66945d3f0b66176c5f19c5b703f0fd14989b
2013-01-17 21:07:31 +00:00
Translation updater bot
ed19c2bdd4 Localisation updates from http://translatewiki.net.
Change-Id: Iecaef86923bb32e102dd69ec12651824565bc3ed
2012-12-16 20:36:18 +00:00
Translation updater bot
8769ad48e8 Localisation updates from http://translatewiki.net.
Change-Id: Ied9bc631fb1feac6b31ce015f9507537f4f16b7b
2012-12-03 20:44:30 +00:00
Translation updater bot
67f448c364 Localisation updates from http://translatewiki.net.
Change-Id: Ie33d83a4d96477c2ed53bba8ee01bc760b980351
2012-10-28 21:04:20 +00:00
Translation updater bot
e118bada90 Localisation updates from http://translatewiki.net.
Change-Id: I1b2cf70c578511ef44a2381e506ee168cc57c7ec
2012-10-07 20:22:26 +00:00
Translation updater bot
6c84db2f8c Localisation updates from http://translatewiki.net.
Change-Id: I766bdb2f0fd630144b1bd56f0fa5135af8fbdf5d
2012-10-03 19:34:49 +00:00
Translation updater bot
20b6b8ec4a Localisation updates from http://translatewiki.net.
Change-Id: I433613595aeda3fbb50b62563fa6265515544b8c
2012-06-23 20:09:38 +00:00
Translation updater bot
f207729442 Localisation updates from http://translatewiki.net.
Change-Id: Icadd46b1444aae30f60f9348d570fea9b70f42e9
2012-05-21 19:55:05 +00:00
Translation updater bot
c3c43983c7 Localisation updates from http://translatewiki.net.
Change-Id: I6f811ac3d564cb4d114cdd03a1e4bb3fe833181c
2012-05-16 18:38:16 +00:00
Translation updater bot
8c5402e99f Localisation updates from http://translatewiki.net.
Change-Id: Ib40693a628c4ff0d7dab68c37af49e91e9c3583d
2012-05-12 16:21:11 +00:00
Translation updater bot
3bc64a9fbb Translation updates from translatewiki.net
Change-Id: If0be46f5e28febeffec3dd80a04751ad70995edf
2012-04-03 21:11:13 +00:00
Raimond Spekking
d38852b2d9 Localisation updates for core and extension messages from translatewiki.net 2012-02-20 20:20:26 +00:00