From: Ævar Arnfjörð Bjarmason Date: Sat, 30 Jul 2005 20:03:38 +0000 (+0000) Subject: * Making a linkprefix message that hold the link prefix previously hardcoded X-Git-Tag: 1.5.0beta4~3 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=3f026e7518d95048d512b71b5d9898a2df5d29d2;p=lhc%2Fweb%2Fwiklou.git * Making a linkprefix message that hold the link prefix previously hardcoded in the parser --- diff --git a/includes/Parser.php b/includes/Parser.php index bd8c912f67..f7d32f5590 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -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(); diff --git a/languages/Language.php b/languages/Language.php index 01c5962867..cfb8ffe256 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -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]