Commit graph

43 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
Translation updater bot 0a12e5e3fe Localisation updates from http://translatewiki.net.
Change-Id: Iffed2ee5874e9fc248416aa7d0fedd048623e2b4
2012-10-03 20:17:29 +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 90b4897c26 Localisation updates from http://translatewiki.net.
Change-Id: Icdbd1130257d45817a8573189d1ff619899ffe2b
2012-09-08 19:01:06 +00:00
Reedy 7a3619ea8d Bug 40039 - Remove ConvertParser from ParserFunctions
Change-Id: I730624f455dcd8cf0375b9147efe4abee5b203bb
2012-09-06 15:44:12 +01:00
Sam Reed c31468e363 * (bug 33421) ParserFunction 1.18 has incorrect italian string 2011-12-29 22:20:04 +00:00
Huji 931e833501 Fixing a Persian translation (extra collon, can't be fixed through translatewiki) 2011-05-20 00:11:37 +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
Tim Starling 77ccc4cf78 Fixed some register_globals vulnerabilities. 2011-05-05 02:55:51 +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
Happy-melon 7ec54c6cfc Follow-up r81074 CR:
* Use autoloader for ConvertParser, and ExprParser which the code was cloned from
* Fix PHP 5.1 compatibility, while there's no requirement for us to keep it, there's also no need to break it unnecessarily, and it's a really trivial fix in this case.
* Tidy whitespace
* Use ConvertDimension::getLocalisedName() for the dimensionmismatch error, as intended
2011-01-27 17:34:37 +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 2549442166 Localisation updates from translatewiki.net 2010-10-31 17:55:47 +00:00
Siebrand Mazeland 902bfc86e6 Localisation updates for extensions from translatewiki.net
* update magic words.
2010-08-24 13:20:07 +00:00
Meno25 dc0cbd532e i18n update 2010-06-07 09:00:42 +00:00
Max Semenik 1b75afd18d (bug 19940) urldecode dropped during StringFunctions-ParserFunctions merger 2010-05-29 16:12:41 +00:00
Siebrand Mazeland 258f0dc7e8 Localisation updates for extension special page aliases and magic words from translatewiki.net
* some non-essential language header eye candy was removed because these exports were made with the (slow!) magic-export.php, and not with the broken alias-export.php
2010-05-17 18:29:36 +00:00
Siebrand Mazeland c5e0a59984 Localisation updates for magic words from translatewiki.net 2010-02-16 23:50:05 +00:00
Siebrand Mazeland 08feee2cd0 Localisation updates for extension messages from translatewiki.net (2010-01-01 15:00 UTC)
* extension messages files rebuilt
2010-01-01 15:52:24 +00:00
Siebrand Mazeland 9ec453fee3 Localisation updates for extension messages from translatewiki.net
* full export and rebuild of all supported messages, magic and special pages aliases files
2009-11-07 00:44:29 +00:00
Siebrand Mazeland 38edf1a4cd Localisation updates for extension magic words from translatewiki.net 2009-10-04 22:45:32 +00:00
Siebrand Mazeland 12c4725303 Localisation updates for extension messages from translatewiki.net (2009-09-18 22:12 UTC) 2009-09-18 23:06:24 +00:00
Siebrand Mazeland 84aeec3c8b Localisation updates for magic words for extensions from translatewiki.net 2009-09-13 06:57:43 +00:00
Siebrand Mazeland 35863f4221 Localisation updates for extension messages from translatewiki.net (2009-08-21 20:59 UTC) 2009-08-21 21:28:42 +00:00
Siebrand Mazeland bd033a60ab Localisation updates for extension messages from translatewiki.net (2009-08-18 23:54 UTC) 2009-08-19 00:42:18 +00:00
Siebrand Mazeland 05aa242b28 Localisation updates for extension magic words from translatewiki.net 2009-08-14 14:19:47 +00:00
Siebrand Mazeland 8a181023cd Localisation updates for extension messages from translatewiki.net (2009-08-12 16:21 UTC) 2009-08-12 16:52:09 +00:00
Siebrand Mazeland 8df8fd5b38 Fix syntax error from r54847 2009-08-12 13:10:49 +00:00
Siebrand Mazeland 31a1820e70 * new style magic words support for ParserFunctions
* add localisation support for ParserFunctions magic in Translate
* bump version
2009-08-12 13:08:25 +00:00
Robert Rohde a697525576 (Bug 6455) Add string function support to ParserFunctions 2009-05-26 00:43:34 +00:00
Rotem Liss 0d727facf3 ParserFunctions localized for yi:. 2009-02-02 17:45:44 +00:00
Brion Vibber e42686cd0a Revert r39618 "Per discussion for bug 6455, merged functionality of StringFunctions into the ParserFunctions extension."
o_O These look like the least CPU- and memory-efficient implementations of strlen(), strpos() etc that could possibly be created...
2008-08-19 18:53:09 +00:00
Fran Rogers c17e837fa1 Per discussion for bug 6455, merged functionality of StringFunctions into the ParserFunctions extension. 2008-08-18 22:19:38 +00:00
Huji 7d2027daaf * Adding/updating Persian translations 2008-04-24 14:28:00 +00:00
Tim Starling f353296aca Fixed bug 13191, typo in Indonesian translation 2008-02-29 08:55:27 +00:00
Ivan Lanin 8f597e7472 Indonesian (id) localisation updates for 17 extensions:
* BoardVote
* CentralNotice
* CharInsert
* ConfirmEdit
* DismissableSiteNotice
* Gadgets
* ImageMap
* inputbox
* OggHandler
* ParserFunctions
* Poem
* SpamBlacklist
* SyntaxHighlight_GeSHi
* timeline
* TitleBlacklist
* TitleKey
* wikihiero
2008-02-26 13:31:15 +00:00
Huji 1c12aeb2f9 Adding/updating Persian translations 2008-01-31 13:25:07 +00:00
Rotem Liss a78daee7c8 Update for he. 2008-01-15 14:49:17 +00:00
Tim Starling 7a1cb92986 Added #iferror: Searches the input for text that looks like an error message from ParserFunctions or the core parser. 2008-01-15 04:21:17 +00:00
Siebrand Mazeland 04a88ee436 * use wfLoadExtensionMessages
* remove some unneeded blackslashes in messages (caused malformed error message)
* put Magic in separate file
* delay message loading
* add version in extension credits, remove EOL whitespace
* update Translate extension
2008-01-13 01:06:28 +00:00