Commit graph

352 commits

Author SHA1 Message Date
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
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
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 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
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
Raimond Spekking 7e5ace340c Localisation updates for core and extension messages from translatewiki.net (2011-04-04 12:51:00 UTC) 2011-04-04 13:21:39 +00:00
Raimond Spekking aa01da8b7f Localisation updates for core and extension messages from translatewiki.net (2011-03-27 19:42:00 UTC) 2011-03-27 20:12:23 +00:00
Raimond Spekking f251e8e2d3 Localisation updates for core and extension messages from translatewiki.net (2011-03-09 21:26:00 UTC) 2011-03-09 22:15:15 +00:00
Raimond Spekking a404c392f0 Localisation updates for core and extension messages from translatewiki.net (2011-03-03 21:42:00 UTC) 2011-03-03 21:51:07 +00:00
Happy-melon fd1620e14b Follow-up r81074, r81517: implement SI prefixes as a separate structure. You can now specify which units should take SI, and then they accept *all* SI prefixes centrally. Some care is still needed to avoid unit conflicts, but this substantially reduces the number of messages required.
The translations of prefixed units in some languages may be a little tricky if the prefix is inflected etc, but you know what?  You can always use ParserFunctions!!  :-D
2011-02-16 10:27:42 +00:00
Raimond Spekking 3b0d115620 Localisation updates for core and extension messages from translatewiki.net (2011-02-14 21:31:00 UTC) 2011-02-14 21:56:30 +00:00
Happy-melon c65d2f8bbc Follow-up r81074: succumb, though it breaks my heart to do so (:P), to American linguistic imperialism... 2011-01-29 15:45:07 +00:00
Raimond Spekking f7f2327e11 Localisation updates for core and extension messages from translatewiki.net (2011-01-27 21:09:00 UTC) 2011-01-27 21:35:41 +00:00
Happy-melon 65e9e69202 (bug 235) parser function for conversion of units of measurement.
[[Template:Convert]] on enwiki is a behemoth of a construction that just about manages to do this sort of conversion, taking {{convert|5|mi|km}} and outputting "5 miles (8 km)", etc.  To port this to another wiki requires copying over three and a half thousand subtemplates.  The additional load produced by including numerous copies of this template is measurable on large pages on enwiki, and it eats voraciously into the template limits.

This revision introduces {{#convert: 5 mi | km }}, outputting "8 km" or thereabouts.  See http://www.mediawiki.org/wiki/User:Happy-melon/Convert for more details, or look at the examples in the parser tests.  

In a very rough profile, comparing 50 calls to {{convert}} verses the same 50 calls to the wrapper template shown at the link above, the parser function implementation reduces page load time by 72%, preprocessor node count by 83%, post-expand include size by 86% and template argument size by 97%.  More detailed profiling would probably reveal places where extra caching could improve performance further.

The primary reason for putting it in ParserFunctions instead of its own extension is availability: PFs are already available across the cluster, and it's accepted as an essential extension for any wiki wishing to emulate or mirror WMF content.  One less separate extension installed on the cluster is one less extension which has to be matched by reusers.  

It's still missing a lot of units, which I ran out of patience to copy from {{convert}}; I thought I'd get some feedback on the infrastructure first.
2011-01-27 00:13:10 +00:00
Siebrand Mazeland e512f7f3cd Localisation updates for extensions from translatewiki.net. 2011-01-22 20:08:34 +00:00
Raimond Spekking 7a4160bebc Localisation updates for core and extension messages from translatewiki.net (2011-01-22 15:41:00 UTC) 2011-01-22 16:06:05 +00:00
Raimond Spekking 86ee441d84 Localisation updates for core and extension messages from translatewiki.net (2011-01-17 18:14:00 UTC) 2011-01-17 19:48:22 +00:00
Raimond Spekking b02d8ff940 Localisation updates for core and extension messages from translatewiki.net (2011-01-12 21:05:00 UTC) 2011-01-12 21:33:03 +00:00
Raimond Spekking a44a4701eb Localisation updates for core and extension messages from translatewiki.net (2011-01-03 20:25:00 UTC) 2011-01-03 20:52:23 +00:00
Raimond Spekking 4f02105dbf Localisation updates for core and extension messages from translatewiki.net (2010-12-19 20:48:00 UTC) 2010-12-19 21:29:55 +00:00
Raimond Spekking b41061d9af Localisation updates for core and extension messages from translatewiki.net (2010-11-11 20:17:00 UTC) 2010-11-11 20:52:15 +00:00
Raimond Spekking 23e20bafd6 Localisation updates for core and extension messages from translatewiki.net (2010-11-10 21:28:00 UTC) 2010-11-10 21:42:18 +00:00
Raimond Spekking fae11433d3 Localisation updates for core and extension messages from translatewiki.net (2010-11-08 20:05:00 UTC) 2010-11-08 20:25:23 +00:00
Raimond Spekking 6395a10f1c Localisation updates for core and extension messages from translatewiki.net (2010-10-24 19:14:00 UTC) 2010-10-24 19:30:56 +00:00
Raimond Spekking c0fd88a0ee Localisation updates for core and extension messages from translatewiki.net (2010-10-22 18:58:00 UTC) 2010-10-22 19:41:58 +00:00
Raimond Spekking 2a7d125b74 Localisation updates for core and extension messages from translatewiki.net (2010-10-21 19:58:00 UTC) 2010-10-21 21:55:48 +00:00
Raimond Spekking f4a3058ddc Localisation updates for core and extension messages from translatewiki.net (2010-10-19 19:03:00 UTC) 2010-10-19 19:38:34 +00:00
Raimond Spekking ca856137bf Localisation updates for core and extension messages from translatewiki.net (2010-10-17 19:57:00 UTC) 2010-10-17 20:36:41 +00:00
Raimond Spekking c86b4dfe94 Localisation updates for core and extension messages from translatewiki.net (2010-09-15 19:08:00 UTC) 2010-09-15 19:17:03 +00:00
Raimond Spekking 7f8d553383 Localisation updates for core and extension messages from translatewiki.net (2010-09-07 20:20:00 UTC) 2010-09-07 20:50:14 +00:00
Raimond Spekking edb3668bb5 Localisation updates for core and extension messages from translatewiki.net (2010-09-03 21:31:00 UTC) 2010-09-03 21:48:42 +00:00
Raimond Spekking d0eedd991f Localisation updates for core and extension messages from translatewiki.net (2010-08-31 18:22:00 UTC) 2010-08-31 18:37:00 +00:00
Raimond Spekking 8fe42094e7 Localisation updates for core and extension messages from translatewiki.net (2010-08-30 18:48:00 UTC) 2010-08-30 19:13:28 +00:00
Siebrand Mazeland 2810305735 Localisation updates for core and extension messages from translatewiki.net (2010-08-21 22:44 UTC) 2010-08-21 23:20:48 +00:00
Siebrand Mazeland 486887465e Localisation updates for core and extension messages from translatewiki.net (2010-08-16 22:21 UTC) 2010-08-16 22:43:58 +00:00
Siebrand Mazeland 33efc078d3 Localisation updates for core and extension messages from translatewiki.net (2010-08-13 21:35 UTC) 2010-08-13 23:21:38 +00:00
Raimond Spekking 7c5ce4fdff Localisation updates for core and extension messages from translatewiki.net (2010-08-10 19:19:00 UTC) 2010-08-10 19:34:11 +00:00
Raimond Spekking 832395cc5b Localisation updates for core and extension messages from translatewiki.net (2010-08-08 19:31:00 UTC) 2010-08-08 19:49:46 +00:00
Raimond Spekking 449cc18ec8 Localisation updates for core and extension messages from translatewiki.net (2010-07-30 18:58:00 UTC) 2010-07-30 19:14:22 +00:00
Raimond Spekking 677d2e7083 Localisation updates for core and extension messages from translatewiki.net (2010-07-13 18:48:00 UTC) 2010-07-13 19:10:15 +00:00
Raimond Spekking 9d2d1f4959 Localisation updates for core and extension messages from translatewiki.net (2010-06-12 19:15:00 UTC) 2010-06-12 19:31:27 +00:00
Raimond Spekking 5de9bee2d6 Localisation updates for core and extension messages from translatewiki.net (2010-06-10 18:40:00 UTC) 2010-06-10 19:00:46 +00:00
Raimond Spekking 38182c6006 Localisation updates for core and extension messages from translatewiki.net (2010-06-09 18:50:00 UTC) 2010-06-09 19:22:07 +00:00
Alexandre Emsenhuber f9388f4fcb Big changes to extensions' documentation:
* changed all @addtogroup to @ingroup
* added some @file where needed
* changed some @package/@subpackage to @ingroup
2010-06-06 15:12:22 +00:00
Raimond Spekking 4badbfa114 Localisation updates for core and extension messages from translatewiki.net (2010-06-02 18:50:00 UTC) 2010-06-02 19:22:28 +00:00