r94251 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r94250‎ | r94251 | r94252 >
Date:15:24, 11 August 2011
Author:platonides
Status:ok
Tags:
Comment:
Add internationalization of the ToolserverStatus library
Modified paths:
  • /trunk/tools/ToolserverI18N/language/Domains.php (modified) (history)
  • /trunk/tools/ToolserverI18N/language/messages/ToolserverStatus.php (added) (history)

Diff [purge]

Index: trunk/tools/ToolserverI18N/language/Domains.php
@@ -10,5 +10,6 @@
1111 'Recentanonymousactivity' => 'Recentanonymousactivity.i18n.php',
1212 'Svgtranslate' => 'Svgtranslate.i18n.php',
1313 'Templatecount' => 'Templatecount.i18n.php',
 14+ 'Toolserverstatus' => 'ToolserverStatus.i18n.php',
1415 'Tsintuition' => 'Tsintuition.i18n.php',
1516 );
Index: trunk/tools/ToolserverI18N/language/messages/ToolserverStatus.php
@@ -0,0 +1,57 @@
 2+<?php
 3+/**
 4+ * Interface messages for the ToolserverStatus class.
 5+ *
 6+ * @toolowner platonides
 7+ */
 8+
 9+/* This is a library, there is no public url */
 10+$url = null;
 11+
 12+$messages = array();
 13+
 14+/**
 15+ * English
 16+ *
 17+ * @author Platonides
 18+ */
 19+$messages['en'] = array(
 20+ 'toolserver-status-ok' => 'There are no problems in database cluster $1 $2',
 21+ 'toolserver-status-info' => 'Notice for users of cluster $1: $2',
 22+ 'toolserver-status-warn' => 'Warning for users of cluster $1: $2',
 23+ 'toolserver-status-down' => 'The database cluster $1 has been temporarily shutdown. $2',
 24+ 'toolserver-status-erro' => 'The database cluster $1 is down. $2',
 25+ 'toolserver-status-unknown' => 'Unknown status of cluster $1',
 26+ 'toolserver-status-missing' => 'Cluster $1 does not exist',
 27+
 28+ 'toolserver-status-short-ok' => '$1: Ok',
 29+ 'toolserver-status-short-info' => '$1: Info',
 30+ 'toolserver-status-short-warn' => '$1: Warn',
 31+ 'toolserver-status-short-down' => '$1: Down',
 32+ 'toolserver-status-short-erro' => '$1: Error',
 33+ 'toolserver-status-short-unknown' => '$1: Unknown',
 34+ 'toolserver-status-short-missing' => '$1: Missing',
 35+);
 36+
 37+/**
 38+ * Message documentation (Message documentation)
 39+ * @author Platonides
 40+ */
 41+$messages['qqq'] = array(
 42+ 'toolserver-status-ok' => 'Message formatting for when the cluster status is \'ok\'. Params: cluster ($1) and informative text ($2), which should be empty',
 43+ 'toolserver-status-info' => 'Message formatting for when the cluster status is \'info\'. Params: cluster ($1) and informative text ($2)',
 44+ 'toolserver-status-warn' => 'Message formatting for when the cluster status is \'warn\'. Params: cluster ($1) and informative text ($2)',
 45+ 'toolserver-status-down' => 'Message formatting for when the cluster status is \'down\' (eg. a planned maintenance). Params: cluster ($1) and informative text ($2)',
 46+ 'toolserver-status-erro' => 'Message formatting for when the cluster status is \'erro\' (eg. a unplanned maintenance). Params: cluster ($1) and informative text ($2)',
 47+ 'toolserver-status-unknown' => 'Message formatting for when the status file doesn\'t deliver any information about the status (a toolserver admin wrote it wrong). Params: cluster ($1) and empty informative text ($2)',
 48+ 'toolserver-status-missing' => 'Message formatting for when the cluster name doesn\'t exist (invalid name passed by the calling program)',
 49+
 50+ 'toolserver-status-short-ok' => 'A short status text for when the status is \'ok\'. Params: cluster name ($1)',
 51+ 'toolserver-status-short-info' => 'A short status text for when the status is \'info\'. Params: cluster name ($1)',
 52+ 'toolserver-status-short-warn' => 'A short status text for when the status is \'warn\'. Params: cluster name ($1)',
 53+ 'toolserver-status-short-down' => 'A short status text for when the status is \'down\'. Params: cluster name ($1)',
 54+ 'toolserver-status-short-erro' => 'A short status text for when the status is \'erro\'. Params: cluster name ($1)',
 55+ 'toolserver-status-short-unknown' => 'A short status text for when the status file doesn\'t deliver any information about the status (a toolserver admin wrote it wrong). Params: cluster name ($1)',
 56+ 'toolserver-status-short-missing' => 'A short status text for when the cluster name doesn\'t exist (invalid name passed by the calling program)',
 57+);
 58+
Property changes on: trunk/tools/ToolserverI18N/language/messages/ToolserverStatus.php
___________________________________________________________________
Added: svn:eol-style
159 + native

Follow-up revisions

RevisionCommit summaryAuthorDate
r94255Bad filename in r94251platonides16:08, 11 August 2011

Status & tagging log