r90837 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90836‎ | r90837 | r90838 >
Date:17:15, 26 June 2011
Author:raymond
Status:ok
Tags:
Comment:
Add i18n file
Register extension to Translatewiki
Modified paths:
  • /trunk/extensions/SignupAPI/SignupAPI.i18n.php (added) (history)
  • /trunk/extensions/SignupAPI/SignupAPI.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1429,6 +1429,8 @@
14301430 descmsg = signdocument
14311431 optional = sign-emailto
14321432
 1433+Signup API
 1434+
14331435 Simple Anti Spam
14341436
14351437 Simple Security
Index: trunk/extensions/SignupAPI/SignupAPI.i18n.php
@@ -0,0 +1,14 @@
 2+<?php
 3+/**
 4+ * Internationalisation for SignupAPI
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+$messages['en'] = array(
 13+ 'signupapi-desc' => 'Cleans up Special:UserLogin from signup related stuff & adds an API for signup',
 14+);
 15+
Property changes on: trunk/extensions/SignupAPI/SignupAPI.i18n.php
___________________________________________________________________
Added: svn:eol-style
116 + native
Index: trunk/extensions/SignupAPI/SignupAPI.php
@@ -21,11 +21,12 @@
2222 'version' => 1.0,
2323 'author' => 'Akshay Agarwal',
2424 'url' => 'http://www.mediawiki.org/wiki/Extension:SignupAPI',
25 - 'description' => 'Cleans up SpecialUserLogin from signup related stuff & adds an API for signup',
26 -// 'descriptionmsg' => 'signupapiextension-desc',
 25+ 'descriptionmsg' => 'signupapi-desc',
2726 );
2827
29 -$wgMyExtensionIncludes = dirname(__FILE__) . '/includes';
 28+$dir = dirname(__FILE__);
 29+$wgExtensionMessagesFiles['SignupAPI'] = $dir . '/SignupAPI.i18n.php';
 30+$wgMyExtensionIncludes = $dir . '/includes';
3031
3132 ## Special page class
3233 $wgAutoloadClasses['SignupForm']

Status & tagging log