r10317 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r10316‎ | r10317 | r10318 >
Date:20:03, 30 July 2005
Author:avar
Status:old
Tags:
Comment:
* Making a linkprefix message that hold the link prefix previously hardcoded
in the parser
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -1213,7 +1213,7 @@
12141214 if ( !$e1_img ) { $e1_img = "/^([{$tc}]+)\\|(.*)\$/sD"; }
12151215 # Match the end of a line for a word that's not followed by whitespace,
12161216 # e.g. in the case of 'The Arab al[[Razi]]', 'al' will be matched
1217 - static $e2 = '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD';
 1217+ $e2 = wfMsgForContent( 'linkprefix' );
12181218
12191219 $useLinkPrefixExtension = $wgContLang->linkPrefixExtension();
12201220
Index: trunk/phase3/languages/Language.php
@@ -352,6 +352,7 @@
353353
354354
355355 'linktrail' => '/^([a-z]+)(.*)$/sD',
 356+'linkprefix' => '/^(.*?)([a-zA-Z\x80-\xff]+)$/sD',
356357 'mainpage' => 'Main Page',
357358 'mainpagetext' => 'Wiki software successfully installed.',
358359 "mainpagedocfooter" => "Please see [http://meta.wikipedia.org/wiki/MediaWiki_i18n documentation on customizing the interface]

Status & tagging log