Commit graph

1747 commits

Author SHA1 Message Date
Translation updater bot 5df86ee780 Localisation updates from http://translatewiki.net.
Change-Id: I4493af79365cb94c72bd2c6c11e9be25986ad321
2013-02-06 20:16:53 +00:00
Translation updater bot 215c5a0330 Localisation updates from http://translatewiki.net.
Change-Id: Ie831a1df49edb33e6b67ae6997db09cb2ad1b788
2013-01-28 21:59:06 +00:00
Translation updater bot e7cde0ac3a Localisation updates from http://translatewiki.net.
Change-Id: I182930b773d3bd10cf842be7c9bf572bd7002055
2013-01-26 20:14:31 +00:00
Translation updater bot ac2be9c629 Localisation updates from http://translatewiki.net.
Change-Id: Icd17f5730fdd172ca7ac2ab3993a81676b754e86
2013-01-23 22:15:34 +00:00
Translation updater bot 76f14a362a Localisation updates from http://translatewiki.net.
Change-Id: I941e71843ff831e82441ed9eed3f0dbe08cdb95d
2013-01-20 19:45:19 +00:00
Translation updater bot f29d088a5a Localisation updates from http://translatewiki.net.
Change-Id: I526939f4607be2555cec4fd66ea12db5415ee483
2013-01-15 21:33:27 +00:00
Translation updater bot 58bd38b9ba Localisation updates from http://translatewiki.net.
Change-Id: Id899262370d9d0274ba13cf061656a90729fcbb7
2013-01-14 21:55:33 +00:00
Translation updater bot 6250579431 Localisation updates from http://translatewiki.net.
Change-Id: If0627854c2d2d324f75ebdcbf5e3aad0e490ba41
2013-01-13 20:39:55 +00:00
Translation updater bot e73a5e41a5 Localisation updates from http://translatewiki.net.
Change-Id: I766bf7c06b4a778007306de8f40a7b523d3ed65d
2013-01-10 21:09:39 +00:00
Reedy e8905529b2 Add square root (sqrt) function
Change-Id: I2d7908be5ee964144ce10483c6f5834350c1c35b
2013-01-06 19:26:26 +00:00
IAlex 802c5f4405 Merge "Init $name" 2013-01-04 21:30:37 +00:00
raymond f1806bd6d6 Remove double definition of empty array
PS2: Add header

Change-Id: I06439f19982789ab2a9d08e0f455c2529290909f
2013-01-04 11:11:58 +01:00
Translation updater bot 73eec8dffe Localisation updates from http://translatewiki.net.
Change-Id: Ifc4de53066b8d3ad2955d7d1518cb6c06253b432
2012-12-31 20:55:37 +00:00
Brad Jorsch 0fb7807e9a (bug 43451) Restore old behavior of 'mod', add 'fmod'
In trying to fix bug 35866, I32c9eca6 changed the behavior of 'mod' to
no longer cast its arguments to integers, which conventiently also
solved bug 6068. However, this also broke many existing uses that
depended on that casting.

This change reverts 'mod' to its old behavior while still solving bug
35866, and at the same time adds a new 'fmod' operator with the new
behavior to keep bug 6068 fixed as well.

Change-Id: I6114c6e769119e6ced61b3b55b6f70b03b5b1ebe
2012-12-28 16:27:23 -05:00
Translation updater bot 6406e83a20 Localisation updates from http://translatewiki.net.
Change-Id: Ib26f8dbde3cebe3eed9ba7836079632b2cb67089
2012-12-27 21:25:18 +00:00
Siebrand Mazeland 6259ee79c9 Init $name
Might not have been defined.

Change-Id: I8f088cc0fcdf0ea474c87b68d40d88e883f6e4df
2012-12-27 19:11:09 +00:00
Translation updater bot bc6049bd0e Localisation updates from http://translatewiki.net.
Change-Id: Ia55c28d4e8d2fa7d00f27fcdd1ac5683a4185a17
2012-12-26 21:12:56 +00:00
Translation updater bot f007371a70 Localisation updates from http://translatewiki.net.
Change-Id: I6f829731e5fb997730b441c19f04da3742d94a5c
2012-12-23 21:56:10 +00:00
Translation updater bot 02e42d9434 Localisation updates from http://translatewiki.net.
Change-Id: I3ef36d1d308f4a306987ab999838cbd36bb0c5b6
2012-12-22 22:15:59 +00:00
Translation updater bot 01cdcbaca1 Localisation updates from http://translatewiki.net.
Change-Id: Ia4171af7b59a7408f7b8f9873268c158f62d4194
2012-12-18 20:38:29 +00:00
Tim Landscheidt c46d34e906 Remove wikitext from translated error messages.
Error messages are passed through escaped() and thus should not contain
wikitext.

Change-Id: I388cb970941c11d3eb47dcd9022076b3833ff64d
2012-12-17 10:04:36 +00:00
Translation updater bot d5fa9368a7 Localisation updates from http://translatewiki.net.
Change-Id: I9e094550cd96bb3bd08123431fcd77fee1113bf3
2012-12-15 23:56:19 +00:00
Reedy f6f3c7bb1f Merge "(Bug 6068) Use double precision for mod operator" 2012-12-12 22:22:05 +00:00
Translation updater bot 6ebf21833f Localisation updates from http://translatewiki.net.
Change-Id: I597a6075bb261e85e92ba386dd9a7d139d8f0008
2012-12-12 21:15:15 +00:00
Ori Livneh 00eca4460e (Bug 6068) Use double precision for mod operator
Change-Id: I0efe4d5dd3ad3052972eb14ab75e979f8a18ff6f
2012-12-11 21:33:51 -08:00
Translation updater bot 88edb15903 Localisation updates from http://translatewiki.net.
Change-Id: I60ff90062b45cbe14ae0d657850029c069743eb4
2012-12-11 22:53:47 +00:00
Reedy 1a96b47d94 (Bug 35866) ParserFunctions: Division by zero in Expr.php
The PHP modulo operator ('%') casts its operands to ints, causing
floating point values 0 < $right < 1 to raise a divide-by-zero error.
Explicitly casting both operands to float and using fnmod() resolves the
issue. This change also tidies up the check for zero values and adds
tests.

Change-Id: I32c9eca6552e4fec248eb4fa6419faa39c10df3b
2012-12-11 03:21:58 -08:00
Reedy 62d5b02378 Merge "Add ExprError to autoloaded classes" 2012-12-07 23:51:27 +00:00
Reedy 57a6ec2942 Bug 42809 - Replace testExpr with a PHPUnit test
Change-Id: I338af01b50684b5849ca198eac536eacdc916ec6
2012-12-07 18:34:58 +01:00
Reedy f1e64db755 Add ExprError to autoloaded classes
Change-Id: I0f585d5396fb31eab362e5eb4c351bb194574cb7
2012-12-07 03:01:35 +00:00
Reedy 973dc03d6a Add some tests that broke when trying to fix 35866
https://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&oldid=526794123#Recent_changes_to_MediaWiki

Cause was https://gerrit.wikimedia.org/r/#/c/37341/

Change-Id: Iaad077f8f59c003f4e912b695b360ef2070071a7
2012-12-07 01:33:43 +00:00
Reedy ac8ad3f82e Revert "Bug 35866 - ParserFunctions: Division by zero in Expr.php"
Seeemingly quite a lot of false positives...

This reverts commit a63cb85ae8
2012-12-07 00:59:10 +00:00
Reedy a63cb85ae8 Bug 35866 - ParserFunctions: Division by zero in Expr.php
Change-Id: Ie9b101b69096e5021a05af1f7260fbc6611319ac
2012-12-06 23:49:23 +00:00
Translation updater bot d96a17ce64 Localisation updates from http://translatewiki.net.
Change-Id: Ica4361edd63d37060eb2e7e236a81ed1285e7ef8
2012-12-02 20:43:48 +00:00
Translation updater bot 26066bfc04 Localisation updates from http://translatewiki.net.
Change-Id: I79da4bb689a6f5ab25351116cf57aca51a1ec5a5
2012-11-28 20:17:54 +00:00
Translation updater bot 464ae18eb4 Localisation updates from http://translatewiki.net.
Change-Id: Id81a93f94b6a6f7bdce0d311f3cffcb7ce596960
2012-11-27 21:07:41 +00:00
Translation updater bot 55d4b07d5b Localisation updates from http://translatewiki.net.
Change-Id: Ie1d705134d4698e7ac497d43ed7911198c2815ac
2012-11-25 20:51:32 +00:00
Translation updater bot d707238b86 Localisation updates from http://translatewiki.net.
Change-Id: I700313063e14b83fc4670df5aea380706a786174
2012-11-22 20:45:23 +00:00
Translation updater bot 71ae828026 Localisation updates from http://translatewiki.net.
Change-Id: I4cc2c43139e57a94754f7b759b0f6df25cbe86c5
2012-11-17 20:49:02 +00:00
Translation updater bot c5f24a34d8 Localisation updates from http://translatewiki.net.
Change-Id: I307e44a18f95aa6fc3c1d3344e7429f59ee9974d
2012-11-11 20:57:57 +00:00
Translation updater bot 1df4e0605d Localisation updates from http://translatewiki.net.
Change-Id: I25c8c024185b9ddcba5e83a1a34393e9899d519e
2012-11-09 10:35:59 +00:00
Gabriel Wicke e48bb4b2a9 Add test for special parameter whitespace stripping behavior
ParserFunctions strip whitespace from positional parameters, while normal
templates do not.

Change-Id: I9c736bedf103a668b324e7fd453d205d9824b9e4
2012-11-09 06:39:36 +00:00
Gabriel Wicke ff2801b0df Add a test for the preservation of tags in the #switch default value
This test is inspired by the Parsoid commit
https://gerrit.wikimedia.org/r/#/c/28623/, but applies to the PHP version too.

Change-Id: I4814b98597f2dd6a2279b8cdcc90a26fbbdecc71
2012-11-08 10:43:10 -08:00
Translation updater bot c3d5c4b31e Localisation updates from http://translatewiki.net.
Change-Id: I199320db6554e4e34cf7567bf0fd15f2d4e0536d
2012-10-22 01:39:02 +00:00
Translation updater bot cee2771658 Localisation updates from http://translatewiki.net.
Change-Id: Ia50df2f81aafc4d3ccd121ffdb89b19d9fb1c98b
2012-10-18 19:22:47 +00:00
Translation updater bot b5f7c68452 Localisation updates from http://translatewiki.net.
Change-Id: I56fcabb7439c9c1a6f638d872656a39e9ecb6525
2012-10-12 21:19:44 +00:00
Siebrand Mazeland 5dee345880 ParserFunctions extension maintenance.
* Use Message class instead of wfMsg* methods.
* Replace additional deprecated methods.
* Fixed incorrect tag in i18n file.
* Update .gitignore.

Conflicts:
	ParserFunctions.i18n.php

Change-Id: If21300c11ec628506cb56550bc91a24a5d7c45d2
2012-10-03 20:58:43 +00:00
Translation updater bot 0a12e5e3fe Localisation updates from http://translatewiki.net.
Change-Id: Iffed2ee5874e9fc248416aa7d0fedd048623e2b4
2012-10-03 20:17:29 +00:00
umherirrender d7668a3581 Use Parser::incrementExpensiveFunctionCount direct for ifexist
No need to do it self and now the limit of the ParserOptions is used.

Change-Id: Id13796d0424fb3b5501a774e1ace3ea065864e49
2012-10-02 23:47:52 +00:00
Translation updater bot 49a850f0f7 Localisation updates from http://translatewiki.net.
Change-Id: I5691bb949e74290457d117b10402a0d3003eb998
2012-10-02 13:51:43 +00:00