lhc/web/wiklou.git
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 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"

11 years agoMerge "(bug 40257) action=info no longer shows subpages where disabled"
IAlex [Sun, 16 Sep 2012 17:58:13 +0000 (17:58 +0000)]
Merge "(bug 40257) action=info no longer shows subpages where disabled"

11 years agoFixed warning spam in SqlBagOStuff.
Aaron Schulz [Sun, 16 Sep 2012 17:56:52 +0000 (10:56 -0700)]
Fixed warning spam in SqlBagOStuff.

Change-Id: Iac573980596349deab757eac859d9e28dc2963b6

11 years agoMigrate hsb plural rules to cldr format
Niklas Laxström [Sun, 16 Sep 2012 17:53:10 +0000 (17:53 +0000)]
Migrate hsb plural rules to cldr format

Change-Id: I9d1c34d8e63767a6abc4f98c09caf65d5056433a

11 years agoMerge "Fix strict error in UploadStashFile"
IAlex [Sun, 16 Sep 2012 17:48:20 +0000 (17:48 +0000)]
Merge "Fix strict error in UploadStashFile"

11 years agoMerge "Update 'protectedinterface' and 'editinginterface'"
IAlex [Sun, 16 Sep 2012 17:47:51 +0000 (17:47 +0000)]
Merge "Update 'protectedinterface' and 'editinginterface'"

11 years agoFix strict error in UploadStashFile
Reedy [Sun, 16 Sep 2012 17:18:27 +0000 (18:18 +0100)]
Fix strict error in UploadStashFile

Strict standards: Declaration of UploadStashFile::thumbName() should be compatible with that of File::thumbName() in /var/www/wiki/mediawiki/core/includes/upload/UploadStash.php on line 498

Call Stack:
    0.0004     645672   1. {main}() /var/www/wiki/mediawiki/core/index.php:0
    0.0756    5904264   2. MediaWiki->run() /var/www/wiki/mediawiki/core/index.php:59
    0.0756    5904264   3. MediaWiki->main() /var/www/wiki/mediawiki/core/includes/Wiki.php:446
    0.0797    6328272   4. MediaWiki->performRequest() /var/www/wiki/mediawiki/core/includes/Wiki.php:536
    0.0960    7042800   5. SpecialPageFactory::executePath() /var/www/wiki/mediawiki/core/includes/Wiki.php:290
    0.1041    8003528   6. SpecialPage->run() /var/www/wiki/mediawiki/core/includes/SpecialPageFactory.php:494
    0.1041    8003528   7. SpecialSpecialpages->execute() /var/www/wiki/mediawiki/core/includes/SpecialPage.php:611
    0.2082   17300016   8. SpecialSpecialpages->getPageGroups() /var/www/wiki/mediawiki/core/includes/specials/SpecialSpecialpages.php:42
    0.2083   17300016   9. SpecialPageFactory::getUsablePages() /var/www/wiki/mediawiki/core/includes/specials/SpecialSpecialpages.php:54
    0.4498   30176624  10. SpecialPageFactory::getPage() /var/www/wiki/mediawiki/core/includes/SpecialPageFactory.php:372
    0.4527   30373096  11. SpecialUploadStash->__construct() /var/www/wiki/mediawiki/core/includes/SpecialPageFactory.php:344
    0.4861   33604352  12. FileRepo->getUploadStash() /var/www/wiki/mediawiki/core/includes/specials/SpecialUploadStash.php:52
    0.4861   33604832  13. AutoLoader::autoload() /var/www/wiki/mediawiki/core/includes/AutoLoader.php:0
    0.4898   33952264  14. require('/var/www/wiki/mediawiki/core/includes/upload/UploadStash.php') /var/www/wiki/mediawiki/core/includes/AutoLoader.php:1150

Change-Id: Iee2aae16df804f42cbae9c21c870781a08ad3850

11 years agoMerge "For languages without plural forms, use them from fallback language"
Siebrand [Sun, 16 Sep 2012 17:03:11 +0000 (17:03 +0000)]
Merge "For languages without plural forms, use them from fallback language"

11 years agoMerge "Remove all custom plural rules and use CLDR plural rule system"
Siebrand [Sun, 16 Sep 2012 17:01:03 +0000 (17:01 +0000)]
Merge "Remove all custom plural rules and use CLDR plural rule system"

11 years agoUpdate 'protectedinterface' and 'editinginterface'
Federico Leva [Sun, 16 Sep 2012 13:45:32 +0000 (15:45 +0200)]
Update 'protectedinterface' and 'editinginterface'

They still lived in 2008.
* Link domain only as in 'allmessagestext': hardcoded setlang is not a good idea nowadays.
* "Consider using" didn't reflect reality.
* Clarify local vs. general; 'allmessagestext' still has a slightly different flavour.
* Copy sysop-only warning to 'protectedinterface' as well: normal users need it even more.

Change-Id: Ie588e683215a714fc8df6b898f4447862e7bd00c

11 years agoMerge "Tweaked various FileBackend docs."
Aaron Schulz [Sun, 16 Sep 2012 08:03:36 +0000 (08:03 +0000)]
Merge "Tweaked various FileBackend docs."

11 years agoTweaked various FileBackend docs.
Aaron Schulz [Sun, 16 Sep 2012 06:38:34 +0000 (23:38 -0700)]
Tweaked various FileBackend docs.

Change-Id: Ie64fa644802b393ecbbb4db4b026bc45511de2ac

11 years agoMerge "Generated node count limit"
Aaron Schulz [Sun, 16 Sep 2012 04:36:10 +0000 (04:36 +0000)]
Merge "Generated node count limit"

11 years agoMerge "Fix and update i18n QUnit test breakages"
Nikerabbit [Sun, 16 Sep 2012 02:14:37 +0000 (02:14 +0000)]
Merge "Fix and update i18n QUnit test breakages"

11 years agoFix and update i18n QUnit test breakages
Timo Tijhof [Fri, 14 Sep 2012 02:57:57 +0000 (04:57 +0200)]
Fix and update i18n QUnit test breakages

* mediawiki.language.test:
  Was broken for a while because the setup/teardown set
  language.data instead of language.data.values so each test
  resulted in:
  > TypeError: Cannot read property 'en' of undefined

  Also stored the copy in the QUnit module context instead
  of in the shared scope.

* mediawiki.cldr.test: Update QUnit pattern.
  - Removed redundant Initial check
  - '--' from test name
  - test()'s expect count argument
  - Superfluous comments, its just assert.equal it should go
    without saying at this point through the unit tests what
    the 2nd and 3rd are.

* mediawiki.cldr.test:
  Fixed trailing comma in commented out code and whitespace
  warnings.

Change-Id: I95de3bb551efd7993cfcfba4a5cc3f310e7d6805

11 years agoGenerated node count limit
Tim Starling [Sat, 15 Sep 2012 21:51:58 +0000 (14:51 -0700)]
Generated node count limit

To prevent large template DOM caches from sending servers into swap,
throw an exception when more than some number of DOM elements are
parsed. Unfortunately, it wasn't possible to return a normal error
message, because it broke PST and extractSections and corrupted the
article text. It's safer to refuse to save the edit, and we don't
have decent ways to do that short of throwing an exception.

Ideally we would like to have an upstream patch that hooks libxml to
allocate memory from PHP's request pool, then a fatal error would be
raised instead of swapping.

Change-Id: I4cb4f6fd313e1e0940b56cc5e586afd1bea9267a

11 years agoFor languages without plural forms, use them from fallback language
Santhosh Thottingal [Sat, 15 Sep 2012 19:49:44 +0000 (12:49 -0700)]
For languages without plural forms, use them from fallback language

* Fixes Bug 40251 and this is alternate for I403a29e2
* This brings back the old mediawiki behavior for languages without
  defined plural rules
* Add a test for hu, which had issue as per Bug 40251

Change-Id: I345c305134a62d43c9dfedc5243981d0e77e326d

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 15 Sep 2012 19:48:04 +0000 (19:48 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I934f969266263faeb63856ad11bab40df46940a5

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

Change-Id: I4451fc7d434d9d29bb6ea36f0c0698fbe8dc4ff4

11 years ago(bug 40257) action=info no longer shows subpages where disabled
Marius Hoch [Sat, 15 Sep 2012 00:02:16 +0000 (02:02 +0200)]
(bug 40257) action=info no longer shows subpages where disabled

action=info no longer shows the number of sub pages if sub pages
are disabled in the current namespace (using $wgNamespacesWithSubpages).

Change-Id: Ide68fd89d7220ca6cd4fdf5d170e839c091bcb92

11 years agoMerge "LockManger documentation cleanups."
Aaron Schulz [Sat, 15 Sep 2012 18:04:44 +0000 (18:04 +0000)]
Merge "LockManger documentation cleanups."

11 years agoLockManger documentation cleanups.
Aaron Schulz [Sat, 15 Sep 2012 17:58:56 +0000 (10:58 -0700)]
LockManger documentation cleanups.

Change-Id: I472306586bd28a4e863afabc0e48d707850761a4

11 years agoFix spelling in nan date formats
Niklas Laxström [Sat, 15 Sep 2012 16:55:02 +0000 (16:55 +0000)]
Fix spelling in nan date formats

http://translatewiki.net/wiki/Thread:Portal_talk:Nan/Misspelt_word_in_date_format

Change-Id: I41f31e7139fc297d4166e74488332b7ceb57a6c3

11 years agoFix comment in wikibits.js
Timo Tijhof [Sat, 15 Sep 2012 14:35:29 +0000 (16:35 +0200)]
Fix comment in wikibits.js

There is no "mw.util.notify" method.

Follows-up d7847099a1a2ce9ae6ff5f6544c9824a465983d3

Change-Id: I7b1a7d44eb9f8b59130b0ba8f0580ba60501e93b

11 years ago(bug 40251) Added more languages to plural override
Niklas Laxström [Sat, 15 Sep 2012 04:56:08 +0000 (04:56 +0000)]
(bug 40251) Added more languages to plural override

There might be more which have not been reported yet.
These should be temporary to restore old behavior
while we are working on alternative solution.

Change-Id: I403a29e2996e09e99ac3e7d394e7bc09a9ff8224

11 years agotest: full coverage of Html::dropDefaults()
Antoine Musso [Thu, 30 Aug 2012 10:49:57 +0000 (12:49 +0200)]
test: full coverage of Html::dropDefaults()

This closely match Html::dropDefaults() logic and hopefully test out
all default dropping.

Introduce a test case that match a failure in f34547ab where attribute
default values passed in an array are not cleaned up.

Change-Id: If8d16b066015ed1bcaf38408511ac3713eaa6540

11 years agoFix broken value="" stripping for HTML5
Daniel Friesen [Thu, 16 Aug 2012 07:37:56 +0000 (00:37 -0700)]
Fix broken value="" stripping for HTML5

The default value for value="" on <input> elements is not always an
empty string.

In particular the default value for type="radio" is "on" and by
stripping value="" out of the attributes a "" becomes "on" and our
cleanup code ends up breaking forms.

Change-Id: Ibe5a3be3f45a2f93ef95dbe42729b8f8c94a41cb

11 years agoHTML5 new types for input element
Antoine Musso [Thu, 30 Aug 2012 09:57:22 +0000 (11:57 +0200)]
HTML5 new types for input element

HTML5 introduced new types for the input element. For some reasons we
never added them to Html::openElement which would thus strip them even
in HTML5 mode.

The issue is:
 $wgHtml5 = true;
 Html::element( 'input', array( 'type' => 'color' );
 # -> "<input />"

With this patch, we returns: <input type="color" />

Change-Id: I7de373635d0eb47f788d1d664c3a913c8801efd6

11 years agoMerge "wfTimestamp should not die on bogus input [Regression]"
Aaron Schulz [Sat, 15 Sep 2012 03:52:34 +0000 (03:52 +0000)]
Merge "wfTimestamp should not die on bogus input [Regression]"

11 years agoMerge "(bug 39941) Add missing stylesheet common/shared.css to the installer pages"
Nikerabbit [Sat, 15 Sep 2012 01:47:50 +0000 (01:47 +0000)]
Merge "(bug 39941) Add missing stylesheet common/shared.css to the installer pages"

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

Change-Id: I74ad768046fa520b8b4902fe361c7e36bfd5b7ad

11 years ago(bug 39941) Add missing stylesheet common/shared.css to the installer
btongminh [Fri, 14 Sep 2012 19:27:35 +0000 (21:27 +0200)]
(bug 39941) Add missing stylesheet common/shared.css to the installer
pages

Change-Id: I802840fc39bc55a2d135168f9e0139622e68e17d

11 years ago(bug 40250) Local plural overrides for vi
Niklas Laxström [Fri, 14 Sep 2012 16:40:25 +0000 (16:40 +0000)]
(bug 40250) Local plural overrides for vi

Change-Id: I83fcc2e45ad35fa103584e41e275dd5cf2f8680e

11 years agowfTimestamp should not die on bogus input [Regression]
umherirrender [Fri, 14 Sep 2012 16:28:22 +0000 (18:28 +0200)]
wfTimestamp should not die on bogus input [Regression]

Followup I68eb9f27

No caller of wfTimestamp can handle the exception, false is always used,
as the method comment says.

See bug 40037 for File related timestamps.
The api result is also not b/c:
<api servedby="mw70">
  <error code="internal_api_error_TimestampException" info="Exception
Caught: MWTimestamp::setTimestamp : Invalid timestamp - te"
xml:space="preserve" />
</api>

Change-Id: I1e8c785941d35678f3d12824bdde0ce245572592

11 years ago(bug 40214) Category pages no longer use deprecated "width" HTML attribute
Alexandre Emsenhuber [Fri, 14 Sep 2012 07:29:22 +0000 (09:29 +0200)]
(bug 40214) Category pages no longer use deprecated "width" HTML attribute

Change-Id: Ie1a4a1ca81874cd2ffd1012bf6468a69729e3a62

11 years agoSet $wgUseCombinedLoginLink to false by default.
Daniel Friesen [Wed, 15 Aug 2012 18:21:07 +0000 (11:21 -0700)]
Set $wgUseCombinedLoginLink to false by default.

See: http://thread.gmane.org/gmane.science.linguistics.wikipedia.technical/61489

Change-Id: I5a6761b5648d36581848372e456832ef15e097b4

11 years agoMerge "Added MediaWikiTestCase::assertTypeOrValue to facilitate common type checks"
Daniel Kinzler [Fri, 14 Sep 2012 10:08:44 +0000 (10:08 +0000)]
Merge "Added MediaWikiTestCase::assertTypeOrValue to facilitate common type checks"

11 years agoMerge "(bug 40213) border=0 is pointless, 0 is the default."
IAlex [Fri, 14 Sep 2012 07:34:31 +0000 (07:34 +0000)]
Merge "(bug 40213) border=0 is pointless, 0 is the default."

11 years agoMoved down rarely used option flag and added @since.
Aaron Schulz [Fri, 14 Sep 2012 04:31:59 +0000 (21:31 -0700)]
Moved down rarely used option flag and added @since.

Change-Id: I801bd0ab4099245499a0eb4b060f143879164278

11 years ago(bug 40213) border=0 is pointless, 0 is the default.
Alex Monk [Thu, 13 Sep 2012 22:01:37 +0000 (23:01 +0100)]
(bug 40213) border=0 is pointless, 0 is the default.

Change-Id: I6212915d098466e1317b0c21e7be12d40d467a7d

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

Change-Id: I182c6b740119a2dc33c4fd79701c62eb4a959925

11 years agoMove api/ApiTestUser.php to TestUser.php and make available in MediaWikiTestCase...
Siebrand Mazeland [Tue, 11 Sep 2012 00:07:18 +0000 (17:07 -0700)]
Move api/ApiTestUser.php to TestUser.php and make available in MediaWikiTestCase class.

* Renamed class ApiTestUser to TestUser.

Change-Id: I1c3c659c3ba5c54a314d879132f760008983372d