r77295 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77294‎ | r77295 | r77296 >
Date:17:19, 25 November 2010
Author:raymond
Status:ok
Tags:
Comment:
Add i18n file
Add extension to translatewiki
Modified paths:
  • /trunk/extensions/SNMPquery/SNMPquery.i18n.php (added) (history)
  • /trunk/extensions/SNMPquery/SNMPquery.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/SNMPquery/SNMPquery.i18n.php
@@ -0,0 +1,18 @@
 2+<?php
 3+/**
 4+ * Internationalisation for SNMPquery extension
 5+ *
 6+ * @file
 7+ * @ingroup Extensions
 8+ */
 9+
 10+$messages = array();
 11+
 12+/** English
 13+ * @author Rudy Rucker, Jr.'
 14+ */
 15+$messages['en'] = array(
 16+ 'snmpquery-desc' => 'Add SNMPget and SNMPwalk functions and return the data into the wiki',
 17+);
 18+
 19+
Property changes on: trunk/extensions/SNMPquery/SNMPquery.i18n.php
___________________________________________________________________
Added: svn:eol-style
120 + native
Index: trunk/extensions/SNMPquery/SNMPquery.php
@@ -21,13 +21,17 @@
2222 }
2323
2424 $wgExtensionCredits['parserhook'][] = array(
 25+ 'path' => __FILE__,
2526 'name' => 'SNMPquery',
2627 'author' => 'Rudy Rucker, Jr.',
2728 'url' => 'http://www.mediawiki.org/wiki/Extension:SNMPquery',
28 - 'description' => 'Add SNMP queries to your wiki! Example: What is the uptime of your box?',
29 - 'version' => '0.1',
30 - );
 29+ 'descriptionmsg' => 'snmpquery-desc',
 30+ 'version' => '0.1.1',
 31+);
3132
 33+$dir = dirname( __FILE__ );
 34+$wgExtensionMessagesFiles['SNMPquery'] = $dir . '/SNMPquery.i18n.php';
 35+
3236 # Define a setup function
3337 $wgHooks['ParserFirstCallInit'][] = 'SNMP_Setup';
3438
Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1129,6 +1129,8 @@
11301130 magicfile = SmoothGallery/SmoothGallery.i18n.magic.php
11311131 ignored = smoothgallery-pagetext
11321132
 1133+SNMP query
 1134+
11331135 Social Profile - System Gifts
11341136 aliasfile = SocialProfile/SocialProfile.alias.php
11351137 id = ext-socialprofile-systemgifts

Status & tagging log