Commit graph

1486 commits

Author SHA1 Message Date
Tim Starling f06807863c * Object versions of #ifexpr, #switch and #ifexist
* Fix for lack of StubObject in ~1.7
* Ignore HTML comments in expressions, which may now appear due to the parse order change
2007-12-09 08:11:38 +00:00
Tim Starling 603fe160be * Add #ifexist invocation count to the limit report comment
* Fix limit report inclusion criteria for new preprocessor -- make it display only for the primary text on edit and page view
2007-11-30 14:50:48 +00:00
Andrew Garrett 2328038128 Prevent the parser function #ifexist being used more than a certain amount on error pages. The maximum number of #ifexist queries can be set in $wgMaxIfExistCount, which is, by default, 100. Any more uses over here will default to the "else" text. Done to discourage templates like Template:highrfc-loop on enwiki, which willingly does something like 50 database queries for a template that is used for many users on one page. Clearly suboptimal from a performance perspective. 2007-11-29 10:42:48 +00:00
Siebrand Mazeland d3377ac93c Localisation updates from Betawiki.
* Fixes and additions to 50 extensions for ar, el, et, fr, hr, hsb, io, ka, la, nap, nl, pt, sk, stq, tet, vo
2007-11-27 09:49:24 +00:00
Tim Starling 3153138c23 register #switch once 2007-11-20 14:27:04 +00:00
Tim Starling 2b3cdadc84 SFH_OBJECT_ARGS versions of #if and #ifeq 2007-11-20 14:16:10 +00:00
Raimond Spekking 5944437cb1 Use <strong> not <span>, per hint of Simetrical on wikitech-l. Thanks. 2007-11-19 15:37:49 +00:00
Siebrand Mazeland 69e2732551 Localisation updates from Betawiki.
* Fixes and additions to 26 extensions for af, an, ar, el, eu, fr, hr, hsb, it, oc, pl, sv
2007-11-19 08:35:48 +00:00
Siebrand Mazeland 2a96eaf959 Localisation updates from Betawiki.
* Fixes and additions to 27 extensions for af, ar, el, fi, fr, frp, gl, hsb, nl, oc, pms, sk
2007-11-17 21:23:56 +00:00
Siebrand Mazeland c285751815 Localisation updates from Betawiki.
* Fixes and additions to 4 extensions for fr, ja, nl
2007-11-17 12:37:14 +00:00
Siebrand Mazeland 1fa5947f4f Localisation updates from Betawiki.
* Fixes and additions to 2 extensions for nl
2007-11-17 00:10:11 +00:00
Siebrand Mazeland 3aea08db93 Localisation updates from Betawiki.
* Fixes and additions to 10 extensions for ar, el, hr, hsb, ku-latn, stq
2007-11-17 00:00:50 +00:00
Rotem Liss 0a04cccf23 Update for he. 2007-11-16 10:08:37 +00:00
Raimond Spekking e470229df5 * (bug 8773) Make error messages from expr.php localizable
** Move error messages to ParserFunctions.i18n.php
** Rename 'expr_...' to 'pfunc_expr_...' to be consistent with other messages which are localizable already
* Add CSS class 'error' to output of error messages
2007-11-16 08:02:24 +00:00
Roan Kattouw 05af0a8f37 (bug 7985) #ifexist parser function returns false for image pages from shared repository
Modified patch by Carl Fürstenberg (AKA AzaTht)
2007-11-13 15:33:05 +00:00
Siebrand Mazeland 5a227cfe12 Localisation updates from Betawiki.
* Fixes and additions to 7 extensions for gl, nl, oc, sq
2007-11-11 21:27:49 +00:00
Siebrand Mazeland e1bae22287 Localisation updates from Betawiki.
* Fixes and additions to 52 extensions for ar, cs, es, fi, frp, hsb, hu, la, nl, oc, pl, sk, tet
* change indentation for export of a few extension's messages in Translate/MessageGroups.php
2007-11-10 18:15:02 +00:00
Siebrand Mazeland 527fe7cfb5 Localisation updates from Betawiki.
* Fixes and additions to 20 extensions for gl, fr
2007-11-05 08:56:09 +00:00
Siebrand Mazeland 34a7495664 Localisation updates from Betawiki.
* Fixes and additions to 40 extensions for gl, hsb, id, is, it, ja, kk-kz, kk-tr, nl, no, oc
* export format in extension Translate and indentation changed in: GiveRollback, ImageMap, Newuserlog, OggHandler, Oversight, ParserFunctions, ProofreadPage, Resign/SpecialResign
2007-11-04 21:21:43 +00:00
Siebrand Mazeland 84adf7dae3 Localisation updates from Betawiki.
* Fixes and additions to 54 extensions for ang, ar, fo, gl, hr, hsb, hy, is, ja, kn, la, nl, no, pl, pms, sk
2007-10-28 23:55:11 +00:00
Siebrand Mazeland 9da6627db5 Localisation updates from Betawiki.
* Fixes and additions to 6 extensions for it, sk, zea
2007-10-16 22:25:09 +00:00
Siebrand Mazeland c29fc8e706 Localisation updates from Betawiki.
* Fixes and additions to 33 extensions for ar, bcl, br, cs, fi, fr, hsb, nl, no
2007-10-07 19:23:11 +00:00
Siebrand Mazeland c97006819d Localisation updates from Betawiki.
* Fixes and additions to 40 extensions for ca, ext, fo, hsb, is, it, kk-kz, pl, sk, tet.
2007-10-06 20:43:13 +00:00
Siebrand Mazeland 60c2fb72a3 Localisation updates from Betawiki.
* Fixes and additions to 38 extensions for am, ar, hu, nds, nl.
2007-09-30 12:58:32 +00:00
Siebrand Mazeland bd67e1955f Localisation updates from Betawiki.
* Fixes and additions to 32 extensions for ar, hsb, la, nl, sk, tet.
2007-09-23 18:38:58 +00:00
Siebrand Mazeland 61ea5ffcb5 Localisation updates from Betawiki.
* Fixes and additions to 13 extensions for cs, hsb, sah.
2007-09-18 23:14:32 +00:00
Siebrand Mazeland 10f9868c07 Localisation updates from Betawiki.
* Fixes and additions to 39 extensions for bn, ca, cs, es, ext, hsb, is, wa.
2007-09-17 19:47:03 +00:00
Raimond Spekking 51d4c3a1f5 * (bug 11311) Update Swedish translations
Patch by  Lejonel
2007-09-12 15:34:05 +00:00
Raimond Spekking 2143e95ca9 * (bug 7971) Update Kazakh extension translations
Patch by AlefZet
2007-09-04 17:28:27 +00:00
Brion Vibber 6f8f28792c Renormalize invalid utf-8 byte in error message.
Would be better to work with an entire character, but it isn't that big a deal. :)
2007-08-31 14:08:16 +00:00
Raimond Spekking bd23cdc03d * (bug 11120) Update Chinese extension translations
Patches by Shinjiman
2007-08-30 10:55:14 +00:00
Raimond Spekking 5dc80fc906 * (bug 11068) i18n updates/additions Dutch/nld for extensions
Patch by Siebrand
2007-08-27 07:48:23 +00:00
Raimond Spekking 316387a3b7 Update German 2007-08-20 09:47:17 +00:00
Rotem Liss 13ee215375 Hebrew translation. 2007-08-19 23:24:24 +00:00
Rob Church b800617b98 Code style, whitespace, doc block, etc. - kill the trailing ?> again 2007-08-19 16:59:01 +00:00
Aaron Schulz 99a596fe27 *Internationalize error messages (patch by Bertrand GRONDIN, bug 10991) 2007-08-19 16:55:22 +00:00
Rotem Liss 8ad5a5a09f Introducing a new parser function, "#timel", which is the same as "#time" but uses the local time specified by the computer or by wgLocaltimezone. It passes a local timestamp to Language::sprintfDate or the compatibility function, per its comment ("Input timestamp is assumed to be pre-normalized to the desired local time zone, if any"), but this doesn't cause problems (except for the "+0000" written when using c and r flags). 2007-08-01 18:00:45 +00:00
Aryeh Gregor ddab9b72ee Extensions too! 2007-06-29 01:36:09 +00:00
Rob Church f21e1b0945 Accept a third parameter to {{#titleparts}}; offset, which users can use to chop up the title to their heart's content 2007-06-13 00:26:28 +00:00
Ivan Lanin 50fb49bc22 Indonesian (id) ParserFunctions magic words. 2007-06-09 16:52:06 +00:00
Rob Church 73f43c856f And again... 2007-06-07 19:04:53 +00:00
Rob Church 58f122bafb Er, whoops? 2007-06-07 19:04:02 +00:00
Rob Church e41d3b4447 Fix up the oncoming i18n trainwreck here;
* Move translations to a .i18n.php file as with other extensions
* Use English as a fallback (as before), but if a translation is available for some (or all) magic words, use that, i.e. fall back to English when a translation isn't available for a given word, to avoid breakage when a new one is introduced
2007-06-07 19:02:57 +00:00
Rotem Liss 760a8f7e95 Adding the new magic word also to fa (untranslated), whitespace. 2007-06-06 13:38:34 +00:00
Raimond Spekking 593c5bbf96 (bug 10165) Adding Hebrew translation for a new magic word 2007-06-06 08:51:12 +00:00
Raimond Spekking 7d067a7e71 (bug 10144) Adding Farsi translation for magic words 2007-06-05 09:27:06 +00:00
Rob Church ada85ae61d Title::getPrefixedText() should be faster than implode() here 2007-06-04 17:40:47 +00:00
Rob Church 3a1f80ebd7 (bug 10136, among others) Introduce TITLEPARTS parser function; returns a specified number of slash-separated segments of a title. 2007-06-04 17:34:07 +00:00
Tim Starling 4dbc7f4d21 Register a link on #ifexist. Otherwise this breaks cache coherency. 2007-02-12 10:24:23 +00:00
Antoine Musso 5ea1f08f45 use parser->getTitle() to get possible private $parser->mTitle 2007-01-17 22:57:38 +00:00