* Making a linkprefix message that hold the link prefix previously hardcoded
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 30 Jul 2005 20:03:38 +0000 (20:03 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Sat, 30 Jul 2005 20:03:38 +0000 (20:03 +0000)
  in the parser

includes/Parser.php
languages/Language.php

index bd8c912..f7d32f5 100644 (file)
@@ -1213,7 +1213,7 @@ class Parser
                if ( !$e1_img ) { $e1_img = "/^([{$tc}]+)\\|(.*)\$/sD"; }
                # Match the end of a line for a word that's not followed by whitespace,
                # e.g. in the case of 'The Arab al[[Razi]]', 'al' will be matched
-               static $e2 = '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD';
+               $e2 = wfMsgForContent( 'linkprefix' );
 
                $useLinkPrefixExtension = $wgContLang->linkPrefixExtension();
 
index 01c5962..cfb8ffe 100644 (file)
@@ -352,6 +352,7 @@ parent class in order maintain consistency across languages.
 
 
 'linktrail'            => '/^([a-z]+)(.*)$/sD',
+'linkprefix'           => '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD',
 'mainpage'             => 'Main Page',
 'mainpagetext' => 'Wiki software successfully installed.',
 "mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]