lhc/web/wiklou.git
11 years agoMerge "(bug 29374) Enabled $wgVectorUseSimpleSearch by default."
Nikerabbit [Sun, 23 Sep 2012 22:55:34 +0000 (22:55 +0000)]
Merge "(bug 29374) Enabled $wgVectorUseSimpleSearch by default."

11 years agoMerge "Remove pass-by-reference from WikiExporter constructor"
IAlex [Sun, 23 Sep 2012 20:56:50 +0000 (20:56 +0000)]
Merge "Remove pass-by-reference from WikiExporter constructor"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 23 Sep 2012 19:09:12 +0000 (19:09 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Don't parse the section summary when creating a page by adding a new section."
Siebrand [Sun, 23 Sep 2012 19:03:38 +0000 (19:03 +0000)]
Merge "Don't parse the section summary when creating a page by adding a new section."

11 years agoMerge "Follow-up Ifd700826 (60d119c), address a fixme in a re-enabled test."
Siebrand [Sun, 23 Sep 2012 19:01:20 +0000 (19:01 +0000)]
Merge "Follow-up Ifd700826 (60d119c), address a fixme in a re-enabled test."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 23 Sep 2012 18:59:42 +0000 (18:59 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic47a081c0071b926ada2b4f46b2d6e57841e9b23

11 years agoMerge "(bug 35693) ApiQueryImageInfo now suppresses errors when unserializing metadata"
Siebrand [Sun, 23 Sep 2012 18:55:37 +0000 (18:55 +0000)]
Merge "(bug 35693) ApiQueryImageInfo now suppresses errors when unserializing metadata"

11 years agoRemove pass-by-reference from WikiExporter constructor
umherirrender [Sun, 23 Sep 2012 18:53:30 +0000 (20:53 +0200)]
Remove pass-by-reference from WikiExporter constructor

The pass-by-reference is a left over from PHP 4 times.

This avoids:
Strict Standards: Only variables should be passed by reference in
\includes\api\ApiQuery.php on line 523

Change-Id: I8c9afcd9f7631bbb0bdb9ea608339bbbd5726a26

11 years ago(bug 35693) ApiQueryImageInfo now suppresses errors when unserializing
btongminh [Sun, 23 Sep 2012 18:52:00 +0000 (20:52 +0200)]
(bug 35693) ApiQueryImageInfo now suppresses errors when unserializing
metadata

Change-Id: I7c9649b54a9d1d8f8b79beff7435a32860b80a61

11 years agoFollow-up Ifd700826 (60d119c), address a fixme in a re-enabled test.
Alexandre Emsenhuber [Sun, 23 Sep 2012 08:15:20 +0000 (10:15 +0200)]
Follow-up Ifd700826 (60d119c), address a fixme in a re-enabled test.

Make the "Date menu next month is 11 months ago" also work when the
current month is december.

Change-Id: Ie7b998bf962abbb3e2f789a3d8a9af8c52e7feaa

11 years agoMerge "Fix broken tests for Xml."
IAlex [Sun, 23 Sep 2012 08:09:16 +0000 (08:09 +0000)]
Merge "Fix broken tests for Xml."

11 years agoMerge "Add User to Title::userCan calls in api"
IAlex [Sun, 23 Sep 2012 05:22:42 +0000 (05:22 +0000)]
Merge "Add User to Title::userCan calls in api"

11 years ago(bug 29374) Enabled $wgVectorUseSimpleSearch by default.
Timo Tijhof [Sun, 23 Sep 2012 02:38:44 +0000 (04:38 +0200)]
(bug 29374) Enabled $wgVectorUseSimpleSearch by default.

Change-Id: I418cd5424c26bbd6bc9df455557c3904fa55ab2e

11 years agoSiteStats: use field names in select instead of *
umherirrender [Sat, 22 Sep 2012 22:42:34 +0000 (00:42 +0200)]
SiteStats: use field names in select instead of *

Change-Id: Id8eefdf5fb320a920b7d1c725e0d250f9b6125c1

11 years agoMerge "Reenable testStoredFunctions() in DatabaseTest.php."
Aaron Schulz [Sat, 22 Sep 2012 20:06:51 +0000 (20:06 +0000)]
Merge "Reenable testStoredFunctions() in DatabaseTest.php."

11 years agoAdded "parallelize" option to file performance test script.
Aaron Schulz [Sat, 22 Sep 2012 19:10:41 +0000 (12:10 -0700)]
Added "parallelize" option to file performance test script.

Change-Id: I6f32b5964c44339d0fe192f9c25edee484de9dfa

11 years agoReenable testStoredFunctions() in DatabaseTest.php.
Tim Landscheidt [Sat, 22 Sep 2012 18:14:22 +0000 (18:14 +0000)]
Reenable testStoredFunctions() in DatabaseTest.php.

Change-Id: I85192a326f8e83d433f69b296431cae57628e78f

11 years agoAdd User to Title::userCan calls in api
umherirrender [Sat, 22 Sep 2012 11:33:33 +0000 (13:33 +0200)]
Add User to Title::userCan calls in api

Change-Id: I86ee1398abe4a790796d61aba1e1739bc55e565b

11 years agoMerge "Moved begin() since the lock() function may cause a BEGIN."
IAlex [Sat, 22 Sep 2012 07:12:10 +0000 (07:12 +0000)]
Merge "Moved begin() since the lock() function may cause a BEGIN."

11 years agoMerge "Defer user stats update like the others."
IAlex [Sat, 22 Sep 2012 07:03:40 +0000 (07:03 +0000)]
Merge "Defer user stats update like the others."

11 years agoFix broken tests for Xml.
Tim Landscheidt [Sat, 22 Sep 2012 02:10:56 +0000 (02:10 +0000)]
Fix broken tests for Xml.

Change-Id: Ifd7008269cc960004676ba79449911d63476615c

11 years agoMerge "Document that setSubtitle() and addSubtitle() need safe HTML"
Nikerabbit [Fri, 21 Sep 2012 23:43:04 +0000 (23:43 +0000)]
Merge "Document that setSubtitle() and addSubtitle() need safe HTML"

11 years agoMerge "Convert width HTML attribute in tables into inline CSS"
Siebrand [Fri, 21 Sep 2012 23:10:40 +0000 (23:10 +0000)]
Merge "Convert width HTML attribute in tables into inline CSS"

11 years agoMoved begin() since the lock() function may cause a BEGIN.
Aaron [Fri, 21 Sep 2012 23:00:02 +0000 (16:00 -0700)]
Moved begin() since the lock() function may cause a BEGIN.

Change-Id: Ib5f7d6b7464a27d08de12c63495374319ac09dfe

11 years agoMerge "Don't send COMMIT if not in a transaction."
Catrope [Fri, 21 Sep 2012 22:51:05 +0000 (22:51 +0000)]
Merge "Don't send COMMIT if not in a transaction."

11 years agoDefer user stats update like the others.
Aaron [Fri, 21 Sep 2012 22:50:26 +0000 (15:50 -0700)]
Defer user stats update like the others.

Change-Id: I6092f383d2e4a5f9a2457dbc4b0aa8a1f3c2829a

11 years agoMerge "Remove all custom plural rules and use CLDR plural rule system"
Siebrand [Fri, 21 Sep 2012 22:45:42 +0000 (22:45 +0000)]
Merge "Remove all custom plural rules and use CLDR plural rule system"

11 years agoDocument that setSubtitle() and addSubtitle() need safe HTML
Siebrand Mazeland [Fri, 21 Sep 2012 22:30:28 +0000 (15:30 -0700)]
Document that setSubtitle() and addSubtitle() need safe HTML

Change-Id: Id5431fc20fb9e9cc755e6a3c393146888a5b666e

11 years agoDon't send COMMIT if not in a transaction.
Aaron [Fri, 21 Sep 2012 22:27:10 +0000 (15:27 -0700)]
Don't send COMMIT if not in a transaction.

Change-Id: Ifffbf703b15cd875feda1514d3c0d488b8665b66

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 21 Sep 2012 20:48:08 +0000 (20:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5debd374244a7a7047b1197d75bc335cd11780cf

11 years agoConvert width HTML attribute in tables into inline CSS
Alexandre Emsenhuber [Fri, 21 Sep 2012 20:38:58 +0000 (22:38 +0200)]
Convert width HTML attribute in tables into inline CSS

Change-Id: If992be00e55fdbdc9521f773a5db4eef97e7f3ed

11 years agoAdded @since tags
jeroendedauw [Fri, 21 Sep 2012 19:00:34 +0000 (21:00 +0200)]
Added @since tags

Change-Id: Ibfaa5efcb40f4087c4333e9f83b717fc1877b9a5

11 years agoMerge "Improve documentation of maintenance scripts."
Siebrand [Fri, 21 Sep 2012 18:46:55 +0000 (18:46 +0000)]
Merge "Improve documentation of maintenance scripts."

11 years agoP-wrapping tests to spec. existing behavior to assist Parsoid.
Subramanya Sastry [Fri, 21 Sep 2012 17:22:30 +0000 (12:22 -0500)]
P-wrapping tests to spec. existing behavior to assist Parsoid.

* Block tags on a line change paragraph wrapping behavior for
  that line and previous lines.  Added tests that captures how
  the PHP parser currently deals with it so that Parsoid can
  emulate this correctly.

Change-Id: I0bcddd2a6d64502d80f4a8155bcd1425bd5db7be

11 years agoDo not use Checkboxes for user without deletelogentry in log
umherirrender [Fri, 21 Sep 2012 13:16:29 +0000 (15:16 +0200)]
Do not use Checkboxes for user without deletelogentry in log

When a user has only deletedhistory and not deletelogentry he should not
see checkboxes, because the button at the begin of the page is missing
and than the checkbox is useless. Use links instead, as the history page
does.

Change-Id: Icae8267dcf3032437eae08372ddbe5769bed7a86

11 years agoImprove documentation of maintenance scripts.
Alexandre Emsenhuber [Thu, 20 Sep 2012 20:49:55 +0000 (22:49 +0200)]
Improve documentation of maintenance scripts.

Change-Id: Id86d06d3c22a69f7e378bf6e75b5c78ef8b47c51

11 years agoMerge "(bug 40415) Add missing dependencies for some modules"
Krinkle [Fri, 21 Sep 2012 03:11:19 +0000 (03:11 +0000)]
Merge "(bug 40415) Add missing dependencies for some modules"

11 years ago(bug 40415) Add missing dependencies for some modules
helder.wiki [Fri, 21 Sep 2012 00:37:48 +0000 (21:37 -0300)]
(bug 40415) Add missing dependencies for some modules

* "mediawiki.user" depends on "user.options" and "user.tokens"
* "mediawiki.action.view.dblClickEdit" depends on "mediawiki.page.startup"

Change-Id: I5ef5e4ab68ff1a472d2aebcea474e3fd76e510fe

11 years agoMerge "LivePreview: bind a delegated click event for #wpPreview/Diff"
Krinkle [Fri, 21 Sep 2012 01:19:15 +0000 (01:19 +0000)]
Merge "LivePreview: bind a delegated click event for #wpPreview/Diff"

11 years ago[FileBackend] Fallback to $wgMemc for swift auth caching in cli mode.
Aaron [Thu, 20 Sep 2012 19:24:14 +0000 (12:24 -0700)]
[FileBackend] Fallback to $wgMemc for swift auth caching in cli mode.

Change-Id: I4338c68a18f1424b0d0ec4fe3fcf77c79ba774c8

11 years agoRemove all custom plural rules and use CLDR plural rule system
Santhosh Thottingal [Sat, 15 Sep 2012 03:53:45 +0000 (20:53 -0700)]
Remove all custom plural rules and use CLDR plural rule system

We have a data driven plural rule evaluation system in core now.
See I1aa3b081

Added more tests

(This was I4451fc7d and reverted because javascript references
 were not removed from Resources.php)

Change-Id: I57c3c238c0717664384da50aa2cbfa74369d7a55

11 years agoMerge "Worked around hash path inconsistency to unbreak stash file thumbs."
Aaron [Thu, 20 Sep 2012 16:59:09 +0000 (16:59 +0000)]
Merge "Worked around hash path inconsistency to unbreak stash file thumbs."

11 years agoMerge "zhtable: Add tradphrase: 準軍事"
Siebrand [Thu, 20 Sep 2012 16:55:29 +0000 (16:55 +0000)]
Merge "zhtable: Add tradphrase: 準軍事"

11 years agozhtable: Add tradphrase: 準軍事
Liangent [Thu, 20 Sep 2012 14:49:24 +0000 (22:49 +0800)]
zhtable: Add tradphrase: 準軍事

Change-Id: I61968fea5089b7c5b159ba12ef8ea4a71b5b9d83

11 years agoMerge "(bug 40380) inexistent language files are loaded"
Hashar [Thu, 20 Sep 2012 10:02:32 +0000 (10:02 +0000)]
Merge "(bug 40380) inexistent language files are loaded"

11 years ago(bug 40380) inexistent language files are loaded
Hashar [Thu, 20 Sep 2012 10:00:36 +0000 (10:00 +0000)]
(bug 40380) inexistent language files are loaded

Revert "Remove all custom plural rules and use CLDR plural rule system"

This reverts commit c575d2ff7bfee4049998a4d43676fd8f2250582c

Apparently the files are still shipped by the resources loader and causes at least the UploadWizard to be malfunctioning when used in the context of Wiki Loves Monument campaign.

11 years agoMore documentation for node count limit
Tim Starling [Thu, 20 Sep 2012 06:04:54 +0000 (16:04 +1000)]
More documentation for node count limit

Change-Id: I6b35ee3ee6b9f8a84e997bbf09aa72c807caf71e

11 years agoLog page titles that are more than 10% of the node count limit
Tim Starling [Thu, 20 Sep 2012 04:39:32 +0000 (14:39 +1000)]
Log page titles that are more than 10% of the node count limit

Change-Id: I6824d305efd73de95ad15c65d3421886c2f86aa9

11 years agoDon't send empty Vary headers.
Aaron Schulz [Thu, 20 Sep 2012 04:18:19 +0000 (21:18 -0700)]
Don't send empty Vary headers.

Change-Id: I0b6bd7ab24323782302c28cf1438dce62f5b8c5a

11 years agoMerge "Trigger warning for bad use of transactions."
Aaron Schulz [Thu, 20 Sep 2012 04:06:20 +0000 (04:06 +0000)]
Merge "Trigger warning for bad use of transactions."

11 years agoTrigger warning for bad use of transactions.
daniel [Mon, 27 Aug 2012 09:55:15 +0000 (11:55 +0200)]
Trigger warning for bad use of transactions.

Mediawiki currently does not support nested transactions, which means that
starting a transaction while another is in progress will silently commit
the previous transaction, causing lots of potential inconsistency.

This change introduces checks that will log a warning whenever begin() is
used while a transaction is already in progress, and whenever commit() or
rollback() are used without a transaction being in progress.

NOTE: this exposes several places in the code where transactions have inadvertedly
be nested, or unmatched calls to begin() resp commit() are used. With
$wgDevelopmentWarnings enabled or I36583fb0 merged, this may cause tests to fail.
The following changes fix the issues in question: I80faf2ed, Ia225251e, Iff394f97,
and I20d90fed.

Change-Id: I8c0426e12b78edbd758b1f087c35dabd64498624

11 years agoWorked around hash path inconsistency to unbreak stash file thumbs.
Aaron [Thu, 20 Sep 2012 00:45:39 +0000 (17:45 -0700)]
Worked around hash path inconsistency to unbreak stash file thumbs.

Change-Id: I567467b75a600841440b36352d5675866d3fca2b

11 years agoMerge "Fix docs."
Nikerabbit [Thu, 20 Sep 2012 00:08:07 +0000 (00:08 +0000)]
Merge "Fix docs."

11 years agoFix docs.
Siebrand Mazeland [Thu, 20 Sep 2012 00:05:44 +0000 (17:05 -0700)]
Fix docs.

Change-Id: Ib6a5e5440c40ed6dab95affa7ed8ebe8acc13299

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 19 Sep 2012 20:37:19 +0000 (20:37 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I8aefb49b7778a482655e0006f7e943f1e540d08e

11 years agoDon't parse the section summary when creating a page by adding a new section.
Alexandre Emsenhuber [Wed, 19 Sep 2012 19:29:11 +0000 (21:29 +0200)]
Don't parse the section summary when creating a page by adding a new section.

Related to I9a56b7c6 (9e6aba6). Fix for Ifa80db1d (8d4913e).

Change-Id: I8772461451a4239c16a5450cccaf1e7696a3f740

11 years agoMerge "[FileBackend] Avoid stat call in getFileContents() for swift."
ArielGlenn [Wed, 19 Sep 2012 18:28:20 +0000 (18:28 +0000)]
Merge "[FileBackend] Avoid stat call in getFileContents() for swift."

11 years agoMerge "(bug 11056) Closing bracket skipped in emailed links"
Siebrand [Wed, 19 Sep 2012 17:24:37 +0000 (17:24 +0000)]
Merge "(bug 11056) Closing bracket skipped in emailed links"

11 years agoMerge "(bug 39975) Fixed thumb_handler.php handling of /temp thumb urls."
ArielGlenn [Wed, 19 Sep 2012 17:12:23 +0000 (17:12 +0000)]
Merge "(bug 39975) Fixed thumb_handler.php handling of /temp thumb urls."

11 years agoMerge "Rationale for using MD5 hash"
IAlex [Wed, 19 Sep 2012 16:57:17 +0000 (16:57 +0000)]
Merge "Rationale for using MD5 hash"

11 years agoRationale for using MD5 hash
Tim Starling [Wed, 19 Sep 2012 05:25:31 +0000 (15:25 +1000)]
Rationale for using MD5 hash

Just documenting some benchmark work I did.

Change-Id: Ic24edc5b857e06a8bfe83d70f2da0d7f4690c6af

11 years ago(bug 11056) Closing bracket skipped in emailed links
Federico Leva [Wed, 19 Sep 2012 14:33:19 +0000 (16:33 +0200)]
(bug 11056) Closing bracket skipped in emailed links

Fixing password reminders, reported on TWN.
Adding <> as already done for enotif and translationnotif.
Directly in the parameter as requested by Siebrand on I5aac9a75.

Change-Id: Ib796d28b73ae61e472113dd062e487fbdb8bf1bb

11 years ago(bug 33328) prefs-searchoptions - wrong wording
Federico Leva [Wed, 19 Sep 2012 10:43:22 +0000 (12:43 +0200)]
(bug 33328) prefs-searchoptions - wrong wording

Change-Id: I89db0a93807aa3df0a77e675ce1b17115bae3931

11 years agoMerge "Updated plural rules from CLDR 22"
Siebrand [Wed, 19 Sep 2012 07:01:52 +0000 (07:01 +0000)]
Merge "Updated plural rules from CLDR 22"

11 years agoMerge "(bug 40098) Don't parse the section's name in the summary when creating a...
Siebrand [Wed, 19 Sep 2012 06:56:46 +0000 (06:56 +0000)]
Merge "(bug 40098) Don't parse the section's name in the summary when creating a new section"

11 years agoMerge "Forward the User object from WikiPage to Revision."
Siebrand [Wed, 19 Sep 2012 06:54:53 +0000 (06:54 +0000)]
Merge "Forward the User object from WikiPage to Revision."

11 years agoMerge "add dir='ltr' to non-localized debug toolbar stuff"
Siebrand [Wed, 19 Sep 2012 01:43:23 +0000 (01:43 +0000)]
Merge "add dir='ltr' to non-localized debug toolbar stuff"

11 years agoMerge "(bug 32052) Improve "noarticletext-nopermission" message"
Siebrand [Wed, 19 Sep 2012 00:04:54 +0000 (00:04 +0000)]
Merge "(bug 32052) Improve "noarticletext-nopermission" message"

11 years ago[FileBackend] Factored out setConcurrencyFlags() function.
Aaron [Tue, 18 Sep 2012 23:04:13 +0000 (16:04 -0700)]
[FileBackend] Factored out setConcurrencyFlags() function.

* This moves some options code from FileBackend to FileBackendStore,
  where it belongs. This also allows for reuse by other operations.

Change-Id: Ic9a7d36a6e4bc6b815a7d68926105401f65c53fb

11 years ago(bug 32052) Improve "noarticletext-nopermission" message
Federico Leva [Tue, 18 Sep 2012 21:20:12 +0000 (23:20 +0200)]
(bug 32052) Improve "noarticletext-nopermission" message

Specifying explicitly that user has no permission.
Better at the end because it's not the most important thing and for consistency.
Wording stolen from 'movenotallowed' and so on.

Change-Id: I81abd21ee646332dd455a48076515cf0a683fd9c

11 years agoForward the User object from WikiPage to Revision.
Alexandre Emsenhuber [Tue, 18 Sep 2012 20:44:58 +0000 (22:44 +0200)]
Forward the User object from WikiPage to Revision.

This affects the following methods of WikiPage:
- getText()
- getUser()
- getCreator()
- getUserText()
- getComment()

These are wrapper to methods in the Revision class
that accept an optional User object as second parameter
in the case FOR_THIS_USER is passed as first parameter.

Change-Id: I81a2470378bc1134dd144743d376ba31f4fe13d1

11 years ago(bug 40046) MediaWiki's info action should link first revision of a page
madman [Tue, 18 Sep 2012 00:10:48 +0000 (00:10 +0000)]
(bug 40046) MediaWiki's info action should link first revision of a page

Change-Id: I9cf13eafc7a18db27391cfc160f780cd73d88b87

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 18 Sep 2012 19:07:43 +0000 (19:07 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib3e345d8717343355fb0d093f8d8c3fe7d9b92ed

11 years ago(bug 39975) Fixed thumb_handler.php handling of /temp thumb urls.
Aaron Schulz [Thu, 13 Sep 2012 04:42:53 +0000 (21:42 -0700)]
(bug 39975) Fixed thumb_handler.php handling of /temp thumb urls.

This basically makes the 'rel404' param for temp thumbanils not
start with "/temp" anymore so that they don't count as bogus.

Change-Id: I88c2c50b5372c7b95108d26ba16ddcd91fdb1154

11 years agoMerge "(bug 40306) Only convert align to float for table."
Krinkle [Tue, 18 Sep 2012 15:09:00 +0000 (15:09 +0000)]
Merge "(bug 40306) Only convert align to float for table."

11 years agoRemove some debug output when opening a new database connection
Alexandre Emsenhuber [Sun, 2 Sep 2012 20:28:13 +0000 (22:28 +0200)]
Remove some debug output when opening a new database connection

Simplified the messages to avoid duplicates.

Change-Id: Ibcccc98bc18bdd0e0b876d9ad97f281c643eeabf

11 years ago(bug 40306) Only convert align to float for table.
Antoine Musso [Mon, 17 Sep 2012 20:16:34 +0000 (22:16 +0200)]
(bug 40306) Only convert align to float for table.

Align should be converted to text-align for all the elements specified
in $presentationalAttribs mapping. Table however is an exception, it
applies to alignment of the block (instead of the content).

Follow up I108cbd10 / 27a4d74bd7.

Change-Id: Iee17d4ef1a6a9b46d88a330cfc9179bccfe93247

11 years agoMerge "(bug 40302) Lock user table with LOCK TABLES"
Aaron Schulz [Tue, 18 Sep 2012 05:45:31 +0000 (05:45 +0000)]
Merge "(bug 40302) Lock user table with LOCK TABLES"

11 years ago[FileBackend] Avoid stat call in getFileContents() for swift.
Aaron Schulz [Tue, 18 Sep 2012 05:32:58 +0000 (22:32 -0700)]
[FileBackend] Avoid stat call in getFileContents() for swift.

* Also removed unused "nostat" flag in addMissingMetadata().

Change-Id: I5f4d827d916b9ca97b9ffd6943c73b6b2faae724

11 years agoMerge "Use number input type for year in dateMenu"
IAlex [Tue, 18 Sep 2012 04:32:30 +0000 (04:32 +0000)]
Merge "Use number input type for year in dateMenu"

11 years agoUpdated CLDRPluralRuleParser from upstream
Santhosh Thottingal [Mon, 17 Sep 2012 21:36:23 +0000 (14:36 -0700)]
Updated CLDRPluralRuleParser from upstream

* A minor fix for an implied global variable
  See https://github.com/santhoshtr/CLDRPluralRuleParser/commit/42fdda60370b130c4f544992d70278a100983508

Change-Id: Ib842145a2a8b4e1821d49edbdc729b7b58b1cf46

11 years agoUse number input type for year in dateMenu
robin [Mon, 17 Sep 2012 00:52:55 +0000 (02:52 +0200)]
Use number input type for year in dateMenu

Use the HTML5 number input type for the year input field in the dateMenu (used on e.g. history pages), since a year is always a number :)
(There was once a year type proposed, but that didn't make it into HTML5)

Patchset 2: use Html::input instead of Xml::input (and change the other Xml's to self::)

Change-Id: If9ad28566abfc02a164367d7cdd6992939169c0a

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 17 Sep 2012 19:35:39 +0000 (19:35 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I94d426ae00b4ac3d523f5485bd1e94866df12db6

11 years ago(bug 40302) Lock user table with LOCK TABLES
Reedy [Mon, 17 Sep 2012 18:17:11 +0000 (19:17 +0100)]
(bug 40302) Lock user table with LOCK TABLES

Change-Id: I26905c29e004a4c7df82fd38aab908287daf193e

11 years agoUse Revision::isCurrent() in ApiParse.
Alexandre Emsenhuber [Mon, 17 Sep 2012 18:14:27 +0000 (20:14 +0200)]
Use Revision::isCurrent() in ApiParse.

We have a loaded Revision object so we may use that
method as well.

Change-Id: Ie8bb871f8874871d7df3111d39ba23a01769cd34

11 years agoadd dir='ltr' to non-localized debug toolbar stuff
aude [Mon, 17 Sep 2012 15:14:09 +0000 (15:14 +0000)]
add dir='ltr' to non-localized debug toolbar stuff

It might be nice to localize this stuff; until then,
it is rather annoying to look at broken parentheses
when using MediaWiki and the toolbar in a RTL language.

Removed text-align: left, so it won't be flipped.

Added an explicit label for Peak memory - it's clearer and it helps
with LTR layout (the units are localized and confuse the display).

Added lang="en" dir="ltr" to the main containter, which is
the right thing until it's properly localized.

Change-Id: I1d0ef6d12eefac0ff28277e4cc2dbc62acd9eee2

11 years agoUpdated plural rules from CLDR 22
Niklas Laxström [Fri, 14 Sep 2012 16:33:36 +0000 (16:33 +0000)]
Updated plural rules from CLDR 22

Change-Id: I0325635a8e0fa3d5defbcbc3a0f4746ed4ab14c1

11 years agoMerge "(bug 40251) Added more languages to plural override"
Siebrand [Mon, 17 Sep 2012 16:48:32 +0000 (16:48 +0000)]
Merge "(bug 40251) Added more languages to plural override"

11 years agoMerge "Removed some language files no longer needed"
Siebrand [Mon, 17 Sep 2012 16:48:05 +0000 (16:48 +0000)]
Merge "Removed some language files no longer needed"

11 years agoMerge "Fix spelling in nan date formats"
Siebrand [Mon, 17 Sep 2012 16:47:01 +0000 (16:47 +0000)]
Merge "Fix spelling in nan date formats"

11 years agoMerge "Use email input type on SpecialChangeEmail"
IAlex [Mon, 17 Sep 2012 16:02:57 +0000 (16:02 +0000)]
Merge "Use email input type on SpecialChangeEmail"

11 years agoMaintenance in Html::openElement regarding input types
robin [Mon, 17 Sep 2012 01:27:50 +0000 (03:27 +0200)]
Maintenance in Html::openElement regarding input types

Followup to c22000

Remove unset() for 'search' type, it will now simply be unset through the regular checking (removed it in the validTypes for that, but it is still in validTypes in HTML5 mode).

Update / remove outdated code comments.

Change-Id: I452462b81360b67b76dd8baa732d52113b6aafe6

11 years agoUse email input type on SpecialChangeEmail
robin [Mon, 17 Sep 2012 00:38:20 +0000 (02:38 +0200)]
Use email input type on SpecialChangeEmail

Change the input type for the e-mail input field to HTML5 'email' ('input' should have been 'text' anyway').

Change-Id: Idb1195e3f56b6b43d3b86d38747a4113d04053b5

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 16 Sep 2012 19:49:54 +0000 (19:49 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib713d5ca9ae274ada2b391b520516182c61007e2

11 years agoAdd support for plural rules for decimal numbers
Santhosh Thottingal [Sat, 15 Sep 2012 03:20:04 +0000 (20:20 -0700)]
Add support for plural rules for decimal numbers

* Update CLDRPluralRuleParser from upstream
* Use parseFloat instead of parseInt in mediawiki.jqueryMsg
* Add qunit tests

Change-Id: I0b44df6c9e299142925a557f6dc41d749d381a02

11 years ago(bug 37453) Move $wgDisable(Lang|Title)Conversion to ParserOptions
Liangent [Sun, 10 Jun 2012 15:35:15 +0000 (23:35 +0800)]
(bug 37453) Move $wgDisable(Lang|Title)Conversion to ParserOptions

This allows easier fix of bug 37453, and patch to fix it is
included in this changeset.

Change-Id: I9096534639394755d0a296dea7380e7b938befef

11 years agoRemoved some language files no longer needed
Niklas Laxström [Sun, 16 Sep 2012 18:06:52 +0000 (18:06 +0000)]
Removed some language files no longer needed

Only have plural defined which is same as in cldr

Change-Id: I0bacb38397af14bf413dcf4a9df0b9f3fbe4110b

11 years agoMerge "Fixed warning spam in SqlBagOStuff."
IAlex [Sun, 16 Sep 2012 18:06:24 +0000 (18:06 +0000)]
Merge "Fixed warning spam in SqlBagOStuff."

11 years agoMerge "Use WikiPage::makeParserOptions() where possible."
Aaron Schulz [Sun, 16 Sep 2012 18:02:56 +0000 (18:02 +0000)]
Merge "Use WikiPage::makeParserOptions() where possible."

11 years agoMerge "Migrate hsb plural rules to cldr format"
IAlex [Sun, 16 Sep 2012 18:00:37 +0000 (18:00 +0000)]
Merge "Migrate hsb plural rules to cldr format"