| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Bug: T362974
Change-Id: I5595baafe68a9ff0af4b83758dd1ae2471f2cb17
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Bug: T304802
Change-Id: Iccacf6288d758e526c95df69861385a4ac2d0f55
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
Use @phpcs-require-sorted-array from new codesniffer release 32.0.0
Similiar to special page alias in
I827d1f5010d000609324ec398beeb142d9bac299
Bug: T255826
Change-Id: I7b7cbf0c03714001609437af68fe16e06930cc33
|
|
|
|
|
|
|
| |
Use @phpcs-require-sorted-array from new codesniffer release 32.0.0
Bug: T255826
Change-Id: I827d1f5010d000609324ec398beeb142d9bac299
|
|
|
|
|
|
| |
Ex: https://www.fnac.com/SearchResult/ResultList.aspx?Search=978-2-02-130451-0
Change-Id: Ia605ea23260bb9319f22eac50848bddc46b7b4a0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
This change is performed using:
sed -i -e 's/http:\/\/www.amazon/https:\/\/www.amazon/g' languages/messages/Messages*.php
Change-Id: I22c5e7a8d33a80b8cbe814f9735e7c24f1b004f9
|
|
|
|
|
|
|
| |
Performed using
find . -name \*.php -exec sed -i -e :a -e '/./,$!d;/^\n*$/{$d;N;};/\n$/ba' {} \;
Change-Id: I5d0627f94c73690cf3a8a453539c22c760c2aa60
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When there are multiple aliases, the first alias MUST be the
preferred alias in that language, so that wikitext code
generators can generate the desired syntax.
The other aliases SHOULD be sorted by the following convention:
- Local first, English last
- Most common first, least common last
Bug: T116020
Change-Id: Ia670512e0cb375335873e7f9a08b638bbe039e45
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Most special pages had the underscored title as default;
Swapped titles for a few ones using CamelCase as default.
Change-Id: Id9256dd587c506d8fb5a931346c01f5f4c716b9d
|
|
|
|
|
|
|
| |
And swapped names for it, following the global convention that
underscored names are the default ones
Change-Id: Idf068e670f6e0c96542610bc5740697ec945adbf
|
|
|
|
|
|
| |
The bit being removed here causes a NOTICE with HitCounters.
Change-Id: I318eb641d4ed4b50dea0a172cf7970045b3a49e7
|
|
|
|
|
|
| |
Updates for magic words.
Change-Id: Ic564d36de395c9a30be5f1390591da723f47edce
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Largest patch set in the history of MediaWiki!
Change-Id: I918cfdc46c099017ca3622d1bcbbdd30c4fd00f6
|
|
|
|
| |
Change-Id: I54a8e52634c1e36fadd7a84f236747765fc98684
|
|
|
|
| |
Change-Id: Ica6fa7fc2d685a655e07b24cd54c7ec42d10f214
|
|
|
|
| |
Change-Id: I31ee0d1685cdf6b315cb5336b30e548c76d67a95
|
|
|
|
| |
Change-Id: I083069e8633deaa49055a255e05692dcb1072193
|
|
|
|
| |
Change-Id: Icad3f57cf182107ce7e813297f00473e75e4ad6f
|
|
|
|
| |
Change-Id: I93194841aebc13bb2e6e147ae6170a3acf2186e7
|
|
|
|
| |
Change-Id: I18970accbce3b383e4ad89df2b5cd0d638861e26
|
|
|
|
| |
Change-Id: If3a8ff71e98aab98c39991147c715ec388ef91aa
|
|
|
|
| |
Change-Id: Id6221ab7d0d906278a9163513ca63b74c9d41645
|
|
|
|
| |
Change-Id: If66ddc1478b986417b08bd6d84cf441ea7f4526c
|
|
|
|
| |
Change-Id: I603eeeed9980a1190075cb54092edefdaf3c2ed5
|
|
|
|
| |
Change-Id: I87ed70aa87a61057fa81f0eae63363af85fd71a0
|
|
|
|
| |
Change-Id: I1d75011f4c5f78746fb1b05ef05858ac6a35eec4
|
|
|
|
| |
Change-Id: I02cf02d1e9ce69f9b23eb7ddd23b1482e4ab7891
|
|
|
|
| |
Change-Id: Idcbfe9491adcb996ea88dc2bc9040e9640b6d4fc
|
|
|
|
| |
Change-Id: I6301ccc1c875aea9851b5d134ba3061a094ebaf4
|
|
|
|
| |
Change-Id: Iac95418170688f90f53dcc28f6c429f0e79b0ac4
|
|
|
|
| |
Change-Id: I2dd97b0dda0af44be6ad3979d5934554a4d7e31c
|
|
|
|
| |
Change-Id: I2535a33defbc75fdb860acac3c98a8511e064a0a
|
|
|
|
| |
Change-Id: Id88aa24093b40a87b6beee70d81124179f95f006
|
|
|
|
| |
Change-Id: I86c1c01411f82197c10f7c3cce25feede39f9166
|
|
|
|
| |
Change-Id: I276bff053ef2bfea3180abe56bc2e26b5fcbe89b
|
|
|
|
| |
Change-Id: Icc129087a7b93326b24c5921b2a0046392689f7a
|
|
|
|
| |
Change-Id: I57623a929ef7cce482f476d6e2aa557d4a6f5c89
|
|
|
|
| |
Change-Id: Ie265f224e4d0e521670d892447842c60d7f57e61
|
|
|
|
| |
Change-Id: If319ada434046084f15742666d6b01504d028faa
|
|
|
|
| |
Change-Id: I9ed903822cabaf2a845d01f1a68ee34ac444d980
|
|
|
|
| |
Change-Id: Icb726976f02aaed49f1b1e83a429c6a05c8ae103
|
|
|
|
| |
Change-Id: I8187963fdb3b2cb88ee7afc1cc3b32cf8672e20b
|
|
|
|
| |
Change-Id: Idf89d2bff84d9c4e74be06a2532222891b0fb30e
|