r78999 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r78998‎ | r78999 | r79000 >
Date:15:09, 25 December 2010
Author:raymond
Status:ok
Tags:
Comment:
Make i18n file usable for Translawiki. Slight changes/simplifications to messages
Add extension to Translatewiki
Modified paths:
  • /trunk/extensions/Special404/Special404.i18n.php (modified) (history)
  • /trunk/extensions/Special404/Special404.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Special404/Special404.i18n.php
@@ -12,17 +12,13 @@
1313 * @author Daniel Friesen
1414 */
1515 $messages['en'] = array(
16 - 'special404-desc' => "Provides a 404 special page destination for 404 Not Found errors.",
17 - 'error404' => "404 Not Found",
18 - 'special404-body' => <<<MSG
19 -The URL you requested was not found.
 16+ 'special404-desc' => 'Provides a 404 special page destination for 404 Not found errors',
 17+ 'error404' => '404 Not found',
 18+ 'special404-body' => 'The URL you requested was not found.
2019
21 -Did you mean to type [{{fullurl:$1}} {{fullurl:$1}}]?
 20+Did you mean to type {{fullurl:$1}}?
2221
2322 Maybe you would like to look at:
24 -* [[{{int:mainpage}}|The main page]]
25 -
26 -MSG
27 - ,
 23+* [[{{int:mainpage}}|The main page]]',
2824 );
2925
Index: trunk/extensions/Special404/Special404.php
@@ -23,9 +23,10 @@
2424 'descriptionmsg' => 'special404-desc',
2525 );
2626
27 -$wgExtensionMessagesFiles['Special404'] = dirname( __FILE__ ) . '/Special404.i18n.php';
28 -$wgExtensionAliasesFiles['Special404'] = dirname( __FILE__ ) . '/Special404.alias.php';
 27+$dir = dirname( __FILE__ );
 28+$wgExtensionMessagesFiles['Special404'] = $dir . '/Special404.i18n.php';
 29+$wgExtensionAliasesFiles['Special404'] = $dir . '/Special404.alias.php';
2930
3031 $wgSpecialPages['Error404'] = array( 'Special404' );
31 -$wgAutoloadClasses['Special404'] = dirname( __FILE__ ) . '/Special404_body.php';
 32+$wgAutoloadClasses['Special404'] = $dir . '/Special404_body.php';
3233
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1195,6 +1195,9 @@
11961196 Spam Regex
11971197 aliasfile = SpamRegex/SpamRegex.alias.php
11981198
 1199+Special 404
 1200+aliasfile = Special404/Special404.alias.php
 1201+
11991202 Special File List
12001203 file = SpecialFileList/SpecialFilelist.i18n.php
12011204 descmsg = filelist-desc

Status & tagging log