Commit graph

1657 commits

Author SHA1 Message Date
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
Translation updater bot 193e69abee Localisation updates from http://translatewiki.net.
Change-Id: I6fe46ae2c310f9965fd16c86d99eff10dca932d4
2012-09-25 19:47:06 +00:00
Translation updater bot 82a0ab9634 Localisation updates from http://translatewiki.net.
Change-Id: I69877ab64a312562fad8800c35ede1d06298b6a1
2012-09-23 19:04:09 +00:00
Translation updater bot a459b1d0c5 Localisation updates from http://translatewiki.net.
Change-Id: I4a78800e6e3b4c192cd30e6237f7b03d804e1ae2
2012-09-18 19:16:05 +00:00
Niklas Laxström 2763315952 Removed more leftovers of convert reversion
Change-Id: I891bd6f94a32d145ab8909b481347bc876043dda
2012-09-17 20:50:15 +00:00
Translation updater bot 33fa60a8fc Localisation updates from http://translatewiki.net.
Change-Id: I7a552dbe96421aad415f5adebc77518e4870b009
2012-09-15 19:52:49 +00:00
Translation updater bot 0d7f81da72 Localisation updates from http://translatewiki.net.
Change-Id: Ie86a166d693df4ed14da00625833cd9f697710ba
2012-09-14 21:10:13 +00:00
Translation updater bot e6dc8d46ea Localisation updates from http://translatewiki.net.
Change-Id: I122f3e115aa0b13aa86b499fba7df320f012d7f6
2012-09-13 20:44:46 +00:00
Reedy e91a53942a Merge "Cleanup I730624f4: Bug 40039 - Remove ConvertParser from ParserFunctions" 2012-09-11 01:24:41 +00:00
Translation updater bot 5c4083779a Localisation updates from http://translatewiki.net.
Change-Id: I979ee7b6917ef03717ca72cc961f1483c3a462b5
2012-09-10 19:32:53 +00:00
Translation updater bot 9c273d734a Localisation updates from http://translatewiki.net.
Change-Id: Iff4807176af65bfbf7ce651ceed66f981454659d
2012-09-09 19:34:08 +00:00
Translation updater bot 90b4897c26 Localisation updates from http://translatewiki.net.
Change-Id: Icdbd1130257d45817a8573189d1ff619899ffe2b
2012-09-08 19:01:06 +00:00
umherirrender 99b150fab4 Cleanup I730624f4: Bug 40039 - Remove ConvertParser from ParserFunctions
Remove unused vars and dead entries for classes and tests

Change-Id: I0920f0294043fa1cca0ca5622fb7eae4a8c61fcb
2012-09-08 19:30:30 +02:00
Reedy 7a3619ea8d Bug 40039 - Remove ConvertParser from ParserFunctions
Change-Id: I730624f455dcd8cf0375b9147efe4abee5b203bb
2012-09-06 15:44:12 +01:00
Reedy fdd7c091bd Minor documentation additions
Change-Id: I876de41b2c81d93df34ee2a8222aff6dc8176aae
2012-07-23 20:56:17 +01:00
Reedy 8d2534bc77 Add .gitignore
Change-Id: I7e80967be0af17caa2f983f9cf19a2c5ed85f8d0
2012-05-21 01:41:15 +01:00
Peter Gehres 4367239a72 Adding .gitreview
Change-Id: I96adaf0e412fe047bcb2a8ca9fec821e475bb62b
2012-03-23 10:31:59 -07:00
Mark A. Hershberger fb5864083d w/s 2012-02-06 04:37:05 +00:00
Chad Horohoe e60a8ed523 Stop using in_string(). WikiScripts and AbuseFilter are the only exts still using this silly thing. 2012-01-11 14:47:27 +00:00
Sam Reed c31468e363 * (bug 33421) ParserFunction 1.18 has incorrect italian string 2011-12-29 22:20:04 +00:00
Siebrand Mazeland 7695c55756 Rename no to nb (step 4/4): Change 'no' to 'nb' in remaining files. 2011-12-25 09:42:00 +00:00
Siebrand Mazeland aabd2bf24f Add test and output for {{#time:d F Y|1988-02-28|nl}}. This test should pass.
Would be nice if it was possible to add a test for {{#time:d F Y|1988-02-28|user}} where user language is "nl", because that does not work. Ref bug 28655 comment 10 and comment 17.
2011-12-21 21:59:38 +00:00
Sam Reed ee97278b4d Add some braces and also some documentation 2011-12-19 23:44:11 +00:00
Max Semenik 2aacab3186 ParserFunctions: made {{#time}} respect parser's timestamp, just as {{CURRENTDATE}} and friends do 2011-12-19 11:18:13 +00:00
Max Semenik d605269ce8 ParserFunctions: ditch PHP pre 5.2 compatibility 2011-12-19 10:51:39 +00:00
Sam Reed 8e61fa2f32 Flesh out documentation
Remove some more < 1.12 back compat code
2011-12-19 00:54:31 +00:00
Sam Reed 1eec35dabd Fix function name typo "date_defaulttimezone_get()" to "date_default_timezone_get()" from r105459 2011-12-19 00:51:36 +00:00
Sam Reed 0b1347bdd2 SFH_OBJECT_ARGS was added pre 1.12...
Kill ancient back compat, and code where unused
2011-12-19 00:38:10 +00:00
Alexandre Emsenhuber f4d9df85d5 * Only get the LinkCache instance when really necessary
* Do not assign a variable inside a condition check
2011-12-18 19:00:53 +00:00
Brion Vibber dcfa8e0c50 Update a butt-ton of extension about URLs to point to https://www.mediawiki.org/ 2011-12-13 23:49:33 +00:00
Brian Wolff c763bf6ce1 (bug 32351) Make #time[l] support explicitly specified timezones. Patch by Van de Bugger.
This would make something like {{#time:H:i:s| 9:30 January 1, 2012 MST}} convert the time from 9:30 mountatin standard time to whatever it is in UTC.

I made one minor change from the patch on bugzilla in changing an @ to a wfSuppressWarnings. (The @ was already in the code, it wasn't introduced by the patch).
2011-12-07 20:52:41 +00:00
Sean Colombo a76aa995fe ParserFunctions: The third param turned out to have the same issue as the second (was throwing warnings in production since empty-strings were making their way in). Followup to r103834. 2011-11-21 21:18:18 +00:00
Sean Colombo 4d02a43a53 ParserFunctions: made #sub stronger against bad params (was throwing a ton of warnings in production at Wikia). 2011-11-21 21:09:19 +00:00
Sam Reed 34dbdcfd82 Comments, braces, explicit member variables
Remove a couple of unused variables
2011-11-16 13:22:03 +00:00
Chad Horohoe e188af9e04 Swap ParserFuncs to use the timezone funcs (like r60825) rather than putenv() magic.
putenv( 'TZ=foo' ) doesn't work with the 5.4 beta ;-)
2011-09-29 18:20:10 +00:00
Tim Starling e764705f57 Revert r92572: Language::isValidBuiltInCode() only rejected the empty string since r95646, so the check is necessary in this backwards-compatible extension. Needs backport per bug 31203. 2011-09-27 22:47:20 +00:00
Happy-melon 026ea6a6be FU 96499, r81074: fix parser tests to reflect the change in default dialect, and make them not run (and die) when {{#convert}} is disabled. 2011-09-07 21:39:33 +00:00
Happy-melon 0ef625494c Follow up r81074: implement a language map per Tim's suggestion (no more American linguistic imperialism, yay! :D). This is not a perfect solution because languages without translations still fall back to 'en' rather than 'en-gb' and so use the American units there, but this cures most of the issue. 2011-09-07 21:28:41 +00:00
Happy-melon cecb0eaeef Follow-up r81074:
* Disable {{#convert}} function by default.  This means that this change will not be live by default, so the fixme doesn't block WMF deployment, although it probably should still block the tarball.
* Documentation and type hinting
* Fix minor errors noted by Tim in CR.
2011-09-07 21:06:10 +00:00
Platonides 86c86a3766 Add the position of the text to the messages so that
the position can be changed depending on the plural, as requested by Amir in
http://lists.wikimedia.org/pipermail/mediawiki-i18n/2011-August/000338.html

Placing the text after the unit could get funny in cases where there is
more text than just the number and the unit, but it's not a problem for the 
parserfunction to fix.

The transformations for ParserFunctions.i18n.php were
On pfunc-convert-unit messages: s/$2/$3/, s/$1/$2/
s/'pfunc-convert-unit-.*' *=> '/\0$1/
2011-09-01 18:45:53 +00:00
Raimond Spekking a9d3e4043a Localisation updates for core and extension messages from translatewiki.net 2011-08-31 20:28:36 +00:00