Commit graph

562 commits

Author SHA1 Message Date
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
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