Leszek Manicki [Wed, 16 Mar 2016 16:07:31 +0000 (17:07 +0100)]
Fix ApiQueryInfo response for prop=watchers
Ie84e6feaa42db1bc7a1f89b56aed37dd7fe95ea4 part of them problem
with incorrect API response but if when no watchers data is
fetched (ie. due to early return in ApiQueryInfo::getWatcherInfo),
response contains "watchers": null instead of skipping "watchers"
key entirely.
Bug: T129482
Change-Id: I9cab120ec4e6a9cf4626678e45ef14ea8efc8cbc
jenkins-bot [Thu, 17 Mar 2016 02:04:30 +0000 (02:04 +0000)]
Merge "mediawiki.api.parse: Restore support for stringified objects"
jenkins-bot [Thu, 17 Mar 2016 01:05:49 +0000 (01:05 +0000)]
Merge "Action::factory: Don't crash on missing Action classes"
Matthew Flaschen [Fri, 11 Mar 2016 00:04:15 +0000 (19:04 -0500)]
mediawiki.api.parse: Restore support for stringified objects
Follows-up
11e6b3d. Don't assume non-string values are mw.Title objects.
mw.Title is the special case. Restore the previous default of assuming wikitext.
This was presumably avoided earlier because 'instanceof' throws if given undefined
as right-hand expression and don't want a needless dependency on mediawiki.Title.
Change-Id: I794ed4105d116e63ed505a17a237f289b80d3b15
Roan Kattouw [Thu, 17 Mar 2016 00:39:54 +0000 (17:39 -0700)]
Action::factory: Don't crash on missing Action classes
Show the "no such action" error message instead.
Normally I wouldn't favor putting this in here, but it's way
too easy to register a missing class by accident, see my rant
on T107921#
2128080.
Bug: T107921
Change-Id: I56da8a5810cae3547a0c8f2d3f435dfd790fbeaf
jenkins-bot [Wed, 16 Mar 2016 22:32:43 +0000 (22:32 +0000)]
Merge "Support multiple extension-dir paths to be passed to mergeMessageFileList"
Translation updater bot [Wed, 16 Mar 2016 20:56:35 +0000 (21:56 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I2cd76699393ba63879babd31f435387593d3a2aa
Mukunda Modell [Thu, 4 Feb 2016 01:06:02 +0000 (19:06 -0600)]
Support multiple extension-dir paths to be passed to mergeMessageFileList
If scap is modified to pass the path to both extensions/ and skins/ then
the extension-list file in wmf-config will no longer be needed, eliminating
many headaches. (refs T125678)
Bug: T125678
Change-Id: I4fd0c99d68fa32bf2378691955850a1be2c022df
James D. Forrester [Wed, 16 Mar 2016 19:22:40 +0000 (19:22 +0000)]
Update OOjs UI to v0.16.3
Release notes:
https://git.wikimedia.org/blob/oojs%2Fui.git/v0.16.3/History.md
Change-Id: Idb6d1250bea3041bf6c4d198f21544b1f5bc4893
jenkins-bot [Wed, 16 Mar 2016 18:20:27 +0000 (18:20 +0000)]
Merge "Make Job::toString() handle array parameters better"
Timo Tijhof [Sat, 12 Mar 2016 00:59:30 +0000 (00:59 +0000)]
Upgrade Sinon.JS to 1.17.3
No major changes for us other than a bugfix that makes the
following work as expected:
var clock = this.sandbox.useFakeTimers();
setTimeout(function () {
clock.tick(10);
});
click.tick(1);
// Expected: 11ms is recorded
// Actual: 1ms is record
This was broken up until Sinon 1.16.0 (Lolex 1.3.0) because it saved the
"clock.now" value before running any pending timeout callbacks. Then it
unconditionally assigned the "clock.now" value to 'oldNow + ticked', which
discarded ticks made by a callback.
Change-Id: I2775f4c6353aef12ced6dc45e73fe8d4e49c2b68
jenkins-bot [Wed, 16 Mar 2016 17:30:52 +0000 (17:30 +0000)]
Merge "Improve translation for bs namespaces"
jenkins-bot [Wed, 16 Mar 2016 17:28:51 +0000 (17:28 +0000)]
Merge "mediawiki.api.test: Refactor to embrace async"
Sébastien Santoro [Wed, 9 Mar 2016 21:02:05 +0000 (21:02 +0000)]
Improve translation for bs namespaces
NS_USER_TALK: "Razgovor sa korisnikom" → "Razgovor s korisnikom"
Translation author: Srđan M. (Srdjan m)
Bug: T115812
Change-Id: Ia674baa1476e5977adb77f4b783c20f90925948f
James D. Forrester [Wed, 16 Mar 2016 10:45:25 +0000 (10:45 +0000)]
Drop deprecated $wgPreloadJavaScriptMwUtil
This was always false since introduction in
3c72b527 released in MediaWiki
1.19, and deprecated in
0ac4f998, released as part of MediaWiki 1.26. Any
code that still needs the mediawiki.util module can continue to use it via
expressing this dependency through their ResourceLoader manifest as usual.
Bug: T111077
Change-Id: Ic838af8727476c047f01ef0dbbeb952c85e263e1
Aaron Schulz [Wed, 16 Mar 2016 10:24:10 +0000 (03:24 -0700)]
Make Job::toString() handle array parameters better
Previously it would result in array(x) in fairly simple cases.
Change-Id: I6bfe67faa45835babb2c7e259b5cd158e0f0a649
Aaron Schulz [Tue, 15 Mar 2016 22:46:56 +0000 (15:46 -0700)]
Track the # of times remnant refreshLinks jobs divide
Change-Id: I32ec09cf1fc6d3a14d99b30ad465fcf6912ce9e0
jenkins-bot [Tue, 15 Mar 2016 21:59:19 +0000 (21:59 +0000)]
Merge "Add RecursiveLinkPurge log for API requests"
jenkins-bot [Tue, 15 Mar 2016 21:41:42 +0000 (21:41 +0000)]
Merge "Adding number of changes info for grouped category changes"
Aaron Schulz [Mon, 14 Mar 2016 21:21:47 +0000 (14:21 -0700)]
Add RecursiveLinkPurge log for API requests
Change-Id: I29636c045f7b561b2da0100f5e69050808d1aec7
WMDE-Fisch [Thu, 10 Mar 2016 16:48:59 +0000 (17:48 +0100)]
Adding number of changes info for grouped category changes
This patch addes the summarized number of category changes
for grouped category changes on the EnhancedChangesList.
Bug: T126849
Change-Id: I3c8ccb2ad6310dac19a724b2ce923c1e67e588be
Translation updater bot [Tue, 15 Mar 2016 21:17:29 +0000 (22:17 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I4830f0116910a4e4bddfd7b0d44e7caea70f1f5c
addshore [Tue, 15 Mar 2016 20:34:03 +0000 (20:34 +0000)]
Add REL NOTES about watchlist wl_id field
Change-Id: Ib3bfe0d0011d96da6d6cfad5930645d343f7cbb6
jenkins-bot [Tue, 15 Mar 2016 20:14:23 +0000 (20:14 +0000)]
Merge "Add id field to watchlist db table"
jenkins-bot [Tue, 15 Mar 2016 17:47:12 +0000 (17:47 +0000)]
Merge "Use WatchedItemStore::removeWatch in SpecialEditWatchlist"
jenkins-bot [Tue, 15 Mar 2016 17:29:37 +0000 (17:29 +0000)]
Merge "Add WatchedItemStore::countWatchedItems"
jenkins-bot [Tue, 15 Mar 2016 17:22:00 +0000 (17:22 +0000)]
Merge "WatchedItemStore add db connection helper methods"
jenkins-bot [Tue, 15 Mar 2016 17:18:09 +0000 (17:18 +0000)]
Merge "Reset WatchedItemStore default instance after tests"
addshore [Tue, 15 Mar 2016 01:12:29 +0000 (01:12 +0000)]
Use WatchedItemStore::removeWatch in SpecialEditWatchlist
Bug: T129481
Change-Id: I12bf46244532195ba19516ba571a1728bd365db9
addshore [Tue, 15 Mar 2016 16:08:45 +0000 (16:08 +0000)]
Fix ApiQueryInfo break from use of WatchedItemStore
Fixes an issue introduced in:
I5a465773599cce9f8c9e94847cede6d12282c827
The new code now returns all targets even when 0
watcher have been found.
This patch adjusts the api to expect that.
Bug: T129482
Change-Id: Ie84e6feaa42db1bc7a1f89b56aed37dd7fe95ea4
addshore [Mon, 14 Mar 2016 16:54:28 +0000 (16:54 +0000)]
Add WatchedItemStore::countWatchedItems
This method counts the number of individual items
that a user is watching.
A subject and corresponding talk page would mean a
count of 2
Unit and integration tests are also added here
Bug: T129481
Change-Id: I4b55318dc1d1c5abab1c5da16cebf1a43ddf9248
addshore [Tue, 15 Mar 2016 15:45:21 +0000 (15:45 +0000)]
WatchedItemStore add db connection helper methods
As suggested in:
https://gerrit.wikimedia.org/r/#/c/277276/2/includes/WatchedItemStore.php
Change-Id: Id82d987eee025e21efc381bd441cd07fbc50aea0
addshore [Tue, 15 Mar 2016 00:12:06 +0000 (00:12 +0000)]
Reset WatchedItemStore default instance after tests
Prior to this change in tests the overridden store
would remain in the instance static and thus could
be used in other places.
This patch introduces the used of ScopedCallbacks
in the override methods in WatchedItemStore.
This means that any instance of WatchedItemStore
should return to a regular state after each test.
This is better than requiring the tests to reset
the value back to the origional as this would likely
be forgotten and result in long hunts for failing
tests.
This was found while writing more tests...
Change-Id: I9aa71425642174ae9ea2c6d4f85dcd07d724af11
jenkins-bot [Tue, 15 Mar 2016 15:30:15 +0000 (15:30 +0000)]
Merge "Use WatchedItemStore::countWatchers in SpecialWatchlist"
jenkins-bot [Tue, 15 Mar 2016 15:29:59 +0000 (15:29 +0000)]
Merge "Add countUnreadNotifications to WatchedItemStore"
jenkins-bot [Tue, 15 Mar 2016 15:29:25 +0000 (15:29 +0000)]
Merge "Move countVisitingWatchers to WatchedItemStore"
jenkins-bot [Tue, 15 Mar 2016 15:29:19 +0000 (15:29 +0000)]
Merge "Move counting of watchers to WatchedItemStore"
jenkins-bot [Tue, 15 Mar 2016 15:29:15 +0000 (15:29 +0000)]
Merge "Improve cache assertions in WatchedItemStoreUnitTest"
jenkins-bot [Tue, 15 Mar 2016 15:29:10 +0000 (15:29 +0000)]
Merge "Uncache things in WatchedItemStore::updateNotificationTimestamp"
jenkins-bot [Tue, 15 Mar 2016 14:52:56 +0000 (14:52 +0000)]
Merge "Make unused variable optional in ChangesList::insertDiffHist"
jenkins-bot [Tue, 15 Mar 2016 07:27:16 +0000 (07:27 +0000)]
Merge "Move dbSetup=true; follow-up
d920237"
Matthew Flaschen [Tue, 15 Mar 2016 02:49:13 +0000 (22:49 -0400)]
Move dbSetup=true; follow-up
d920237
See https://gerrit.wikimedia.org/r/#/c/274643/8/tests/phpunit/MediaWikiTestCase.php
I unintentionally changed it so dbSetup wasn't always set to true
(it was in the early return case in the old code, but not the new)
Bug: T95870
Change-Id: I2119b0233330b88a61d15fe4dc55fe855fce4b6a
Reedy [Mon, 14 Mar 2016 21:57:03 +0000 (21:57 +0000)]
Fix undefined $modelId in MWUnknownContentModelException
Change-Id: I13b93cc1e9d7c050765fab5d8de4e17ca4319dc1
jenkins-bot [Mon, 14 Mar 2016 21:21:15 +0000 (21:21 +0000)]
Merge "Add a structure test to validate all extension.json files"
Translation updater bot [Mon, 14 Mar 2016 21:07:09 +0000 (22:07 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ifab2110151643c82611927a45c0a0da9259f07d6
Kunal Mehta [Sun, 28 Feb 2016 09:19:14 +0000 (01:19 -0800)]
Add a structure test to validate all extension.json files
Adds a structure test to validate that all loaded extension.json and
skin.json files validate against the schema at
docs/extension.schema.json.
Bug: T128307
Change-Id: I2fd1caaa50c288821ab6847dc29d60e6554d9df5
Chad Horohoe [Mon, 14 Mar 2016 19:09:25 +0000 (12:09 -0700)]
SpecialVersion: Just use HTTPS links to mw.org instead of protocol-relative
No need to make people redirect if they're on HTTP :)
Change-Id: I273be400e3889add553a2f066dfec008c170e6c0
jenkins-bot [Mon, 14 Mar 2016 18:56:21 +0000 (18:56 +0000)]
Merge "Remove support for non-Composer PHPUnit"
Max Semenik [Sat, 12 Mar 2016 19:59:05 +0000 (11:59 -0800)]
Remove support for non-Composer PHPUnit
Composer is now a standard way to install MediaWiki's PHP dependencies,
no reason for it not to be the same for PHPUnit.
Change-Id: Ibd977eb3480dafaf270ff63abc43c413d7b72144
Timo Tijhof [Mon, 14 Mar 2016 17:50:09 +0000 (17:50 +0000)]
resourceloader: Remove 'require' and 'module' from debug mode
Partially reverts
94c116240 and
7fd977b242 as it was incorrectly
split up. This should've been part of Idbd05488 instead of
94c116240.
Bug: T108655
Bug: T129776
Change-Id: Ia5e6e57c9bd651ec913a2543e2df8951ff345ea2
jenkins-bot [Mon, 14 Mar 2016 17:38:07 +0000 (17:38 +0000)]
Merge "Make use of …::class feature in ContentHandler/DatabaseUpdater"
jenkins-bot [Mon, 14 Mar 2016 17:21:31 +0000 (17:21 +0000)]
Merge "completionSearch: try an exact match even if the backend returns no result"
Timo Tijhof [Sat, 12 Mar 2016 02:15:14 +0000 (02:15 +0000)]
mediawiki.api.test: Refactor to embrace async
This was using lots of synchronous hacks but those don't work in newer
versions of Sinon.JS (and only worked by accident up until now).
The test will still run pretty quick, but it will yield to some extend because
mw.Api and jQuery.ajax both create XHR objects with async=true.
* Remove redundant QUnit.expect() calls (deprecated).
* Make use of QUnit's new Promise-return feature.
This simplifies some tests by no longer having to call async() or start()
manually when only dealing with a single promise.
This blocks upgrade of Sinon.JS.
Change-Id: I08b08ea3c3e8b41f4aea50d86b2c9dc0f579ba67
addshore [Mon, 14 Mar 2016 16:12:01 +0000 (16:12 +0000)]
Use WatchedItemStore::countWatchers in SpecialWatchlist
Bug: T129481
Change-Id: I6da41a80bfc658106862238622f95db087c5bea7
addshore [Thu, 10 Mar 2016 12:04:31 +0000 (12:04 +0000)]
Add countUnreadNotifications to WatchedItemStore
This query / logic has been extracted from
ApiQueryUserInfo.
Unit & Integration tests have also been added.
Relating to the task linked this is the last change
needed in this ApiQueryUserInfo!
Bug: T129482
Change-Id: I91aa109416c16cd1f257c9de46669e35d6fd34d7
addshore [Fri, 5 Feb 2016 12:04:58 +0000 (13:04 +0100)]
Move countVisitingWatchers to WatchedItemStore
Also adds tests
Bug: T129479
Change-Id: I2868c31fc09121de381d822e8f49194e3022bb42
addshore [Tue, 26 Jan 2016 20:12:37 +0000 (21:12 +0100)]
Move counting of watchers to WatchedItemStore
Also adds tests
Bug: T129479
Bug: T129482
Change-Id: I5a465773599cce9f8c9e94847cede6d12282c827
addshore [Thu, 10 Mar 2016 13:43:36 +0000 (13:43 +0000)]
Improve cache assertions in WatchedItemStoreUnitTest
Change-Id: If4b2086cc29fcfc73dee2e9f96591a9e4aa50da9
jenkins-bot [Mon, 14 Mar 2016 15:55:42 +0000 (15:55 +0000)]
Merge "Move some LocalFile comments around"
Thiemo Mättig [Mon, 14 Mar 2016 15:54:50 +0000 (16:54 +0100)]
Make use of …::class feature in ContentHandler/DatabaseUpdater
Change-Id: Ic0d51a41c50f52e1fbdab58e3b63319caa5c7d1d
jenkins-bot [Mon, 14 Mar 2016 15:37:16 +0000 (15:37 +0000)]
Merge "Don't add label-elements for elements that doesn't have one"
addshore [Thu, 10 Mar 2016 13:07:35 +0000 (13:07 +0000)]
Uncache things in WatchedItemStore::updateNotificationTimestamp
When the notification timestamp for a LinkTarget is
updated all items relating to that LinkTarget should
be uncached!..
This also switches this class from a BagOStuff to
a HashBagOStuff as this cache index is only maintained
per process..
Change-Id: I5dc58e018a6a4a15903abc1e0b326b4220abc75e
jenkins-bot [Mon, 14 Mar 2016 14:05:36 +0000 (14:05 +0000)]
Merge "Change remaining places to use short array syntax"
jenkins-bot [Mon, 14 Mar 2016 13:18:28 +0000 (13:18 +0000)]
Merge "Follow-up Ia16e19985: Fix table sort arrow direction"
jenkins-bot [Mon, 14 Mar 2016 12:07:59 +0000 (12:07 +0000)]
Merge "Add support for External Store for unit tests"
Ed Sanders [Sun, 13 Mar 2016 13:09:51 +0000 (13:09 +0000)]
Follow-up Ia16e19985: Fix table sort arrow direction
In Ia16e19985 we accidentally fixed the down arrow being
'sort_up', but by not switches the class order we changed
the meaning of the up and down arrows.
An up arrow should be labelled as 'up' but show when the
table is in ascending order (smallest at the top).
Bug: T129775
Change-Id: Ia30d4a26728dd0fe93939d746ce9bf9e90742de6
jenkins-bot [Mon, 14 Mar 2016 09:54:30 +0000 (09:54 +0000)]
Merge "Use an example with working digit transformation"
Florian [Sun, 13 Mar 2016 23:11:42 +0000 (00:11 +0100)]
Don't add label-elements for elements that doesn't have one
Fix the OOUI field element implementation to conditionally add
labels to the FieldLayout (only if the label isn't empty). Also
add setShowEmptyLabel( false ) to HTMLButtonField (labels usually
aren't set outside of the button, the button itself should have a label).
Bug: T129821
Change-Id: I0499bb82245273519e77c80e78bc431588875a85
Translation updater bot [Sun, 13 Mar 2016 21:25:00 +0000 (22:25 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ib5ad9c2a48f781ae667e27786edbcb4c03c4abc5
jenkins-bot [Sun, 13 Mar 2016 07:54:39 +0000 (07:54 +0000)]
Merge "build: Update grunt-jscs to 2.8.0"
jenkins-bot [Sun, 13 Mar 2016 07:54:34 +0000 (07:54 +0000)]
Merge "Update Karma's QUnit to v1.22.0"
Paladox [Wed, 2 Mar 2016 20:28:23 +0000 (20:28 +0000)]
build: Update grunt-jscs to 2.8.0
Change-Id: Ica4fac1bee551467614a76c76aa699406927c9a4
Translation updater bot [Sat, 12 Mar 2016 19:50:54 +0000 (20:50 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: I8af274b32e9af1553e074c4b29eedd0f7f3803eb
Kunal Mehta [Thu, 3 Mar 2016 18:53:30 +0000 (10:53 -0800)]
registration: Improve error message for non-array attributes
Change-Id: I7cbf7353ebbbbbbf36500f86164e3b32d7723cca
Timo Tijhof [Sat, 12 Mar 2016 18:51:09 +0000 (18:51 +0000)]
Update Karma's QUnit to v1.22.0
Follows-up
54bbef467d, which updated the version used by
MediaWiki's Special:JavaScriptTest.
Change-Id: I7876808c3b5ac88976706cdff1cf7abe8075cfdb
Chiefwei [Fri, 11 Mar 2016 09:16:39 +0000 (17:16 +0800)]
Convert array() syntax to [] in Makefile.py
Update Makefile.py for Chinese conversion table to convert array() syntax to [] in languages/data/ZhConversion.php .
Change-Id: I10ba5d16ca619f64458feba51e12c3bd5d18435d
jenkins-bot [Sat, 12 Mar 2016 10:20:12 +0000 (10:20 +0000)]
Merge "Chinese Conversion Table Update 2016-1"
Timo Tijhof [Sat, 12 Mar 2016 02:08:19 +0000 (02:08 +0000)]
Upgrade QUnit to v1.22.0
The v1.19.0 release fixed a major bug in QUnit.test Promise handling
> Test: Don't pass Promise fulfillment value to QUnit.start
Without this fix, passing tests that involve an async Promise
can wrongly be marked as failure when they have a falsey resolution
value due to the resolution value being passed to QUnit.start()
by accident.
Change-Id: Id4b52085529f4cf8996f8053648680026ed62941
Matthew Flaschen [Thu, 3 Mar 2016 07:30:24 +0000 (02:30 -0500)]
Add support for External Store for unit tests
This allow running PHP tests with External Store DB configured.
This means it needs to do the unittest_ prefixing similar to the main
tables.
It could do resetting (truncating the tables) similar to the tablesUsed
functionality. However, if External Store is truncated unconditionally,
revision, etc. also needs to be. This can cause performance issues.
I was thinking of making resetting ES optional, but it wasn't needed
to pass any of the core tests, so I just left it out entirely for now.
Bug: T95870
Change-Id: If27435210d5a2165795dd759b17a7e51fe9bba10
jenkins-bot [Fri, 11 Mar 2016 23:52:42 +0000 (23:52 +0000)]
Merge "Add description for mw.hook#event-postEdit in JavaScript"
Kaldari [Fri, 11 Mar 2016 22:10:05 +0000 (16:10 -0600)]
Add description for mw.hook#event-postEdit in JavaScript
Change-Id: I82ae21348b2ee686f80eda454f2aa6cf60ae20c4
Stephan Gambke [Sat, 27 Feb 2016 14:27:54 +0000 (15:27 +0100)]
Add link to anon's user page; remove "Not logged in"
Improve the personal tools:
* Remove the "Not logged in" text message. It is misleading. Being among the
personal tool links people click on it expecting it to have some function.
* Instead add a proper link "Unknown user" to the IP user page.
Bug: T121793
Change-Id: I049d0671a7050585659fc8b9dcf21e0f92393bcf
Aaron Schulz [Fri, 11 Mar 2016 22:14:40 +0000 (14:14 -0800)]
Move some LocalFile comments around
Change-Id: I7d7c5618481245aa6e8328ad58f5e841f010fe01
Translation updater bot [Fri, 11 Mar 2016 20:55:12 +0000 (21:55 +0100)]
Localisation updates from https://translatewiki.net.
Change-Id: Ie105d1bced55a141d9c641ab0c6cec53e267d427
jenkins-bot [Fri, 11 Mar 2016 19:21:34 +0000 (19:21 +0000)]
Merge "Normalize user provided URL link for Special:LinkSearch page"
umherirrender [Fri, 11 Mar 2016 17:41:26 +0000 (18:41 +0100)]
Change remaining places to use short array syntax
Change-Id: I0785c73a239c11188ad7411c5cd8ed09a2dbc9b3
jenkins-bot [Fri, 11 Mar 2016 16:59:45 +0000 (16:59 +0000)]
Merge "mediawiki.api.parse: Allow parsing pages"
Siebrand Mazeland [Tue, 8 Mar 2016 20:26:08 +0000 (21:26 +0100)]
Wikimedia\Assert\Assert is never used
Change-Id: Ie12f158ec01deb2db7c3d515fe16839117380ee8
jenkins-bot [Fri, 11 Mar 2016 16:11:46 +0000 (16:11 +0000)]
Merge "i18n of submit button on Special:ChangeContentModel"
Thiemo Mättig [Mon, 7 Mar 2016 10:41:03 +0000 (11:41 +0100)]
Don't return PHPUnit_Framework_MockObject_MockObject when not needed
The callers of this method don't need to know about this additional
interface.
Change-Id: I9e5531e495b7f5c890e8e520d661ccd5b0a644e1
Siebrand Mazeland [Tue, 8 Mar 2016 22:27:14 +0000 (23:27 +0100)]
Update and correct documentation in Language class
Change-Id: I1d530bded0da7133f9b5120b515f32fc87507c84
Pmlineditor [Fri, 11 Mar 2016 14:15:30 +0000 (19:45 +0530)]
i18n of submit button on Special:ChangeContentModel
This patch adds a message, 'changecontentmodel-submit', for
Special:ChangeContentModel to prevent reuse of the default
"Submit" text from FormSpecialPage.
Bug: T120576
Change-Id: I72466867a6739ba144c5a2984b8ca2589292815c
jenkins-bot [Fri, 11 Mar 2016 08:45:15 +0000 (08:45 +0000)]
Merge "OutputPage: Set wgPageContentLanguage to pageViewLang instead of pageLang"
dcausse [Fri, 11 Mar 2016 08:30:34 +0000 (09:30 +0100)]
completionSearch: try an exact match even if the backend returns no result
Unfortunately some backends (like Cirrus) are not able to do proper crossnamespace
lookup. If the backend returns no result we should still try an exact title match.
Bug:T129575
Change-Id: Ic08ec0aac0fd8a289f21753d74ae62ba509de841
Timo Tijhof [Tue, 8 Mar 2016 23:44:18 +0000 (23:44 +0000)]
OutputPage: Set wgPageContentLanguage to pageViewLang instead of pageLang
Follows-up
80a090ea7 (r104483).
I'm assuming the difference is that pageLanguage will be the canonical variant
for the page (as authored in wikitext, presumably the wiki's default), whereas
pageViewLanguage will be the variant of the pageLanguage based on the current
user-interface language (if and only if the user interface is related).
Viewing zh by default has:
* userLanguage: zh
* pageLanguage: zh
* pageViewLanguage: zh
Viewing zh-cn by default has:
* userLanguage: zh
* pageLanguage: zh
* pageViewLanguage: zh-cn
Viewing zh-cn with uselang=en has:
* userLanguage: en
* pageLanguage: zh
* pageViewLanguage: zh-cn
Viewing zh-cn with uselang=zh-tw has:
* userLanguage: zh-tw
* pageLanguage: zh
* pageViewLanguage: zh-cn
The main use case behind wgPageContentLanguage in
80a090ea7 was tablesorter
which should match the language and variant of the rendered wikipage content.
The parser output and div#mw-content-text element use pageViewLanguage, so
let's set wgPageContentLanguage to that as well.
Change-Id: Ibf399dfe5ca60fb55e7acd75a5c0238d8b903807
jenkins-bot [Fri, 11 Mar 2016 08:24:16 +0000 (08:24 +0000)]
Merge "resourceloader: Create ResourceLoaderContext::msg() method"
jenkins-bot [Fri, 11 Mar 2016 07:14:43 +0000 (07:14 +0000)]
Merge "Include user name in Special:BotPassword success messages"
Matthew Flaschen [Fri, 11 Mar 2016 00:04:15 +0000 (19:04 -0500)]
mediawiki.api.parse: Allow parsing pages
Bug: T46925
Change-Id: Ic0d762d02c96e0b39b4983d3b66ebdfb6f88d3a2
Chiefwei [Fri, 11 Mar 2016 01:09:21 +0000 (09:09 +0800)]
Chinese Conversion Table Update 2016-1
Update the Chinese conversion table routinely to fix bugs reported from
https://zh.wikipedia.org/wiki/Wikipedia:%E5%AD%97%E8%AF%8D%E8%BD%AC%E6%8D%A2/%E4%BF%AE%E5%A4%8D%E8%AF%B7%E6%B1%82 .
It is only data changes and only works for Chinese WikiProjects.
Change-Id: I39f9945a38078364a740dbb552f87d4bcf62033c
Timo Tijhof [Thu, 10 Mar 2016 23:33:58 +0000 (23:33 +0000)]
resourceloader: Create ResourceLoaderContext::msg() method
This makes it easier to fetch messages without having to manually
call inLanguage() on each wfMessage() call, which is currently
causing some code forget this and use plain wfMessage() which
defaults to MediaWiki user language from session.
I've considered setting $wgLang or RequestContext::getMain(),
but that's still bad since modules get passed a context in their
methods and shouldn't be using global context either.
The warnings provided by MW_NO_SESSION are exactly what we want.
Change-Id: I1288fa5622d9f82d21bb66c8eb6518b90e7cddb4