Commit graph

553 commits

Author SHA1 Message Date
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
Raimond Spekking 04a25f18f1 Localisation updates for core and extension messages from translatewiki.net 2011-08-21 19:37:43 +00:00
Raimond Spekking acf750d768 Localisation updates for core and extension messages from translatewiki.net 2011-08-20 20:54:50 +00:00
Raimond Spekking 7933e1ca0c Localisation updates for core and extension messages from translatewiki.net 2011-08-19 20:01:08 +00:00
Raimond Spekking 5e7ba87fcc Localisation updates for core and extension messages from translatewiki.net 2011-08-18 20:35:31 +00:00
Raimond Spekking 61fbf329ca Localisation updates for core and extension messages from translatewiki.net 2011-08-17 20:43:00 +00:00
Siebrand Mazeland 91abad7b58 Follow-up r94734. Should fix broken tests 10 and 13 for ParserFunctions because of changes in message content. 2011-08-17 12:04:51 +00:00
Siebrand Mazeland 5879b1bc18 Two more punctuation issues missed in r94734. 2011-08-17 08:27:01 +00:00
Siebrand Mazeland 8e4c0973ff Update punctuation on error messages
Update capitalisation after colon for US English.
2011-08-17 08:24:44 +00:00
Siebrand Mazeland 8397d2a8fb Localisation updates from http://translatewiki.net. 2011-08-17 08:20:27 +00:00
Siebrand Mazeland f1641f2c56 Partial revert of r94714.
Also revert r81090 and 81091 that caused this; the ignored messages should have been removed by now.
2011-08-17 07:42:17 +00:00
Siebrand Mazeland 3d643d60be Localisation updates from http://translatewiki.net.
Full rebuild of all messages files for extensions supported by Translate.
2011-08-17 00:10:33 +00:00
Raimond Spekking f84714259c Localisation update for core and extension messages from translatewiki.net (2011-08-11 19:50:00) 2011-08-11 20:12:53 +00:00
Raimond Spekking dacbfc4136 Localisation update for core and extension messages from translatewiki.net (2011-08-04 12:30:00) 2011-08-04 13:28:09 +00:00
Ryan Kaldari b681f84927 follow up to r87308 - fix redundancy 2011-07-19 20:31:38 +00:00
Ryan Kaldari 81d74aca19 follow up to r87308 - defensive programming for bogus language codes 2011-07-19 20:29:17 +00:00
Raimond Spekking 896325ca10 Localisation updates for core and extension messages from translatewiki.net (2011-07-17 19:25:00 UTC) 2011-07-17 19:50:15 +00:00
Raimond Spekking df11f533c6 Localisation updates for core and extension messages from translatewiki.net (2011-07-16 19:52:00 UTC)
Ping r92057: Full export of core and ext-installer
2011-07-16 20:06:00 +00:00
Raimond Spekking 453e1bb5be Localisation updates for core and extension messages from translatewiki.net (2011-06-30 20:09:00 UTC) 2011-06-30 20:17:56 +00:00
Raimond Spekking 3e2d67f54f Localisation updates for ToolserverI18N messages from translatewiki.net (2011-06-26 19:34:00) 2011-06-26 20:00:58 +00:00
Raimond Spekking c3a1e690eb Localisation updates for core and extension messages from translatewiki.net (2011-06-23 20:15:00 UTC) 2011-06-23 20:36:17 +00:00
Raimond Spekking c1b0a9443a Localisation updates for core and extension messages from translatewiki.net (2011-06-17 19:08:00 UTC) 2011-06-17 19:27:16 +00:00
Raimond Spekking 2f18403c5d Localisation updates for core and extension messages from translatewiki.net (2011-06-07 20:35:00 UTC) 2011-06-07 20:55:30 +00:00
Raimond Spekking 85ac41ee26 Localisation updates for core and extension messages from translatewiki.net (2011-06-06 20:43:00 UTC) 2011-06-06 20:57:48 +00:00
Raimond Spekking 8c64f87edb Localisation updates for core and extension messages from translatewiki.net (2011-05-30 20:19:00 UTC) 2011-05-30 20:28:52 +00:00
Raimond Spekking 4f959272ca Localisation updates for core and extension messages from translatewiki.net (2011-05-24 20:59:00 UTC) 2011-05-24 21:34:27 +00:00
Raimond Spekking 1a6d59e655 Localisation updates for core and extension messages from translatewiki.net (2011-05-20 20:10:00 UTC) 2011-05-20 20:22:23 +00:00
Huji 931e833501 Fixing a Persian translation (extra collon, can't be fixed through translatewiki) 2011-05-20 00:11:37 +00:00
Raimond Spekking af22aff90a 2011-05-17 20:25:48 +00:00
Raimond Spekking 933f6936eb Localisation updates for core and extension messages from translatewiki.net (2011-05-16 20:37:00 UTC) 2011-05-16 20:57:27 +00:00
Siebrand Mazeland ff9a5ae677 Localisation updates for magic word aliases for extensions from http://translatewiki.net. 2011-05-14 00:23:17 +00:00
Raimond Spekking 02d2afd591 Localisation updates for core and extension messages from translatewiki.net (2011-05-10 20:34:00 UTC) 2011-05-10 21:00:25 +00:00
Raimond Spekking 77cd1fef37 Localisation updates for core and extension messages from translatewiki.net (2011-05-09 21:19:00 UTC) 2011-05-09 21:32:46 +00:00
Raimond Spekking 1336e93ebc Localisation updates for core and extension messages from translatewiki.net (2011-05-06 22:02:00 UTC) 2011-05-06 22:11:48 +00:00
Tim Starling 77ccc4cf78 Fixed some register_globals vulnerabilities. 2011-05-05 02:55:51 +00:00
Raimond Spekking a79369b072 Localisation updates for core and extension messages from translatewiki.net (2011-05-04 19:40:00 UTC) 2011-05-04 20:09:49 +00:00
Raimond Spekking a54d7c2278 Localisation updates for core and extension messages from translatewiki.net (2011-05-02 20:13:00 UTC) 2011-05-03 20:29:05 +00:00
Ryan Kaldari a3dd6784c8 better language handling - abandon magic language switch in favor of using int:lang as parameter, use parser->getFunctionLang() instead of wgContLanguage in case of use in interface messages 2011-05-02 23:30:05 +00:00
Ryan Kaldari 752dd28e01 fix issues from r86927, user language and years over 9999 2011-05-02 22:21:56 +00:00
Raimond Spekking a78e4d434f Localisation updates for core and extension messages from translatewiki.net (2011-04-29 19:47:00 UTC) 2011-04-29 20:09:54 +00:00
Ryan Kaldari cb39cec9d6 adding language support to #time parser function, per bug 28655 2011-04-26 00:26:12 +00:00
Ryan Kaldari f9578f4d6a fix for bug 28655 - #time interpreting years incorrectly 2011-04-24 01:10:04 +00:00
Sam Reed 956982c04a More function documentation 2011-04-15 17:44:19 +00:00
Raimond Spekking ac9d9392b8 Localisation updates for ToolserverI18N messages from translatewiki.net (2011-04-14 19:30:00 UTC) 2011-04-14 19:49:05 +00:00
Sam Reed 64dd1d254e Made checkLength static to fix many STRICT errors 2011-04-13 14:17:43 +00:00
Paul Copperman 3350ea8f2d Make ParserFunctions work with HipHop.
* When using HipHop, is_callable() returns false for objects which have only a __call() method instead of the requested one.
* Work around this by removing the ParserFunctions_HookStub hack.
* To retain the behavior that the code of ParserFunctions_body.php is only loaded when needed, turn it into a static class.
* Defer the registering of the ParserClearState hook until a relevant function is called.
2011-04-11 17:27:51 +00:00