Commit graph

1698 commits

Author SHA1 Message Date
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
Raimond Spekking 3438161145 Localisation updates for core and extension messages from translatewiki.net 2011-08-30 19:49:07 +00:00
Raimond Spekking 6e6c4792e8 Localisation updates for core and extension messages from translatewiki.net 2011-08-29 20:32:44 +00:00
Raimond Spekking 4fddfcd1f7 Localisation updates for core and extension messages from translatewiki.net 2011-08-27 19:09:42 +00:00
Happy-melon 6821c2b083 Follow-up r95525: restore some translations of "mili" that were actually correct. 2011-08-26 19:06:24 +00:00
Sam Reed d94d4d1407 Followup r95525, fix failing parser tests
Failure:
ConvertTests::testParserTest with data set #11 ('#language', '*{{#convert: 10  m | km | #language=en-gb }}
*{{#convert: 10m | km | #language = en-gb }}
*{{#convert: 10 km | m |#language=en-gb}}
*{{#convert: 10 Pa | mmHg | #language = en-gb }}', '<ul><li>0.01  kilometres
</li><li>0.01kilometres
</li><li>10,000 metres
</li><li>0.1 milimetres of mercury
</li></ul>
', '', '')
#language
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 <ul><li>0.01  kilometres
 </li><li>0.01kilometres
 </li><li>10,000 metres
-</li><li>0.1 milimetres of mercury
+</li><li>0.1 millimetres of mercury
 </li></ul>

/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/parser/NewParserTest.php:539
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:31
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60

ConvertTests::testParserTest with data set #12 ('Case sensitivity', '*{{#convert: 10 mm | m }}
*{{#convert: 10 Mm | m }}
*{{#convert: 10 km | Mm }}
*{{#convert: 10 Pa | mmHg }}
*{{#convert: 10 pa | mmHg  }}', '<ul><li>0.01 meters
</li><li>10,000,000 meters
</li><li>0.01 megameters
</li><li>0.1 milimeters of mercury
</li><li><strong class="error">Error: Unknown unit "pa".</strong>
</li></ul>
', '', '')
Case sensitivity
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
 <ul><li>0.01 meters
 </li><li>10,000,000 meters
 </li><li>0.01 megameters
-</li><li>0.1 milimeters of mercury
+</li><li>0.1 millimeters of mercury
 </li><li><strong class="error">Error: Unknown unit "pa".</strong>
 </li></ul>

/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/parser/NewParserTest.php:539
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:31
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60
2011-08-25 22:28:28 +00:00
Happy-melon 45b53a4eb8 Follow-up r81074: fix typos in some unit names and messages ("mili" instead of "milli"). 2011-08-25 21:22:28 +00:00
Raimond Spekking b0b48635e4 Localisation updates for core and extension messages from translatewiki.net 2011-08-25 20:41:28 +00:00
Raimond Spekking 13a9beb015 Localisation updates for core and extension messages from translatewiki.net 2011-08-24 20:28:02 +00:00
Raimond Spekking 3fe5736c62 Localisation updates for core and extension messages from translatewiki.net 2011-08-23 20:11:33 +00:00