http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89768
Revision: 89768
Author: raymond
Date: 2011-06-09 10:59:23 +0000 (Thu, 09 Jun 2011)
Log Message:
-----------
* Move special page alias defintion to its own file
* Sort i18n file: 'en', 'qqq' and the translations
* Slights message tweaks for consistency
* Normalize 'descriptionmsg' key
* 'de' translations are always informell (Du). formal address goes into
'de-formal' and will be done by our Translatewiki folks
* Add extension to Translatewiki
Modified Paths:
--------------
trunk/extensions/Notificator/Notificator.i18n.php
trunk/extensions/Notificator/Notificator.php
trunk/extensions/Translate/groups/mediawiki-defines.txt
Modified: trunk/extensions/Notificator/Notificator.i18n.php
===================================================================
--- trunk/extensions/Notificator/Notificator.i18n.php 2011-06-09 10:43:55 UTC
(rev 89767)
+++ trunk/extensions/Notificator/Notificator.i18n.php 2011-06-09 10:59:23 UTC
(rev 89768)
@@ -1,15 +1,33 @@
<?php
-$aliases = array();
$messages = array();
-$aliases['en'] = array(
- 'Notificator' => array( 'Notificator' ),
+$messages['en'] = array(
+ 'notificator' => 'Notificator',
+ 'notificator-desc' => 'Notifies someone by e-mail about changes to a
page when a button on that page gets clicked.',
+ 'notificator-db-table-does-not-exist' => 'Database table "notificator"
does not exist. The update.php maintenance script needs to be run before the
Notificator extension can be used.',
+ 'notificator-e-mail-address' => 'e-mail address',
+ 'notificator-notify' => 'Notify',
+ 'notificator-notify-address-or-name' => 'Notify $1',
+ 'notificator-revs-not-from-same-title' => 'Revision IDs are not from
the same title/page',
+ 'notificator-return-to' => 'Return to',
+ 'notificator-special-page-accessed-directly' => 'This special page
cannot be accessed directly. It is intended to be used through a Notificator
button.',
+ 'notificator-e-mail-address-invalid' => 'The provided e-mail address is
invalid.',
+ 'notificator-notification-not-sent' => 'Notification <em>not</em>
sent.',
+ 'notificator-change-tag' => 'change',
+ 'notificator-new-tag' => 'new',
+ 'notificator-notification-text-changes' => '$1 wants to notify you
about the following changes to $2:',
+ 'notificator-notification-text-new' => '$1 wants to notify you about
$2.',
+ 'notificator-following-e-mail-sent-to' => 'The following e-mail has
been sent to <em>$1</em>:',
+ 'notificator-subject' => 'Subject:',
+ 'notificator-error-sending-e-mail' => 'There was an error when sending
the notification e-mail to <em>$1</em>.',
+ 'notificator-error-parameter-missing' => 'Error: Missing parameter.',
+ 'notificator-notified-already' => '$1 has been notified about this page
or page change before.',
);
$messages['qqq'] = array(
'notificator' => 'Name',
- 'notificator-description' => 'Description',
+ 'notificator-desc' => '{{desc}}',
'notificator-db-table-does-not-exist' => 'Error message',
'notificator-e-mail-address' => 'Hint in text entry field',
'notificator-notify' => 'Button label',
@@ -30,48 +48,25 @@
'notificator-notified-already' => 'Message on special page',
);
-$messages['en'] = array(
- 'notificator' => 'Notificator',
- 'notificator-description' => 'Notifies someone by e-mail about changes
to a page when a button on that page gets clicked.',
- 'notificator-db-table-does-not-exist' => 'Database table
\'notificator\' does not exist. The update.php maintenance script needs to be
run before the Notificator extension can be used.',
- 'notificator-e-mail-address' => 'e-mail address',
- 'notificator-notify' => 'Notify',
- 'notificator-notify-address-or-name' => 'Notify $1',
- 'notificator-revs-not-from-same-title' => 'Revision IDs are not from
the same title/article',
- 'notificator-return-to' => 'Return to',
- 'notificator-special-page-accessed-directly' => 'This special page
cannot be accessed directly. It is intended to be used through a Notificator
button.',
- 'notificator-e-mail-address-invalid' => 'The provided e-mail address is
invalid.',
- 'notificator-notification-not-sent' => 'Notification <em>not</em>
sent.',
- 'notificator-change-tag' => 'change',
- 'notificator-new-tag' => 'new',
- 'notificator-notification-text-changes' => '$1 wants to notify you
about the following changes to $2:',
- 'notificator-notification-text-new' => '$1 wants to notify you about
$2.',
- 'notificator-following-e-mail-sent-to' => 'The following e-mail has
been sent to <em>$1</em>:',
- 'notificator-subject' => 'Subject:',
- 'notificator-error-sending-e-mail' => 'There was an error when sending
the notification e-mail to <em>$1</em>.',
- 'notificator-error-parameter-missing' => 'Error: Missing parameter.',
- 'notificator-notified-already' => '$1 has been notified about this page
or page change before.',
-);
-
$messages['de'] = array(
'notificator' => 'Notificator',
- 'notificator-description' => 'Sendet Benachrichtungs-Mails über
Seitenänderungen, wenn ein Knopf auf der entsprechenden Seite betätigt wird.',
- 'notificator-db-table-does-not-exist' => 'Datenbanktabelle
\'notificator\' existiert nicht. Das update.php Maintenance Script muss
ausgeführt werden, bevor die Notificator-Extension verwendet werden kann.',
+ 'notificator-desc' => 'Sendet Benachrichtungs-Mails über
Seitenänderungen, wenn ein Knopf auf der entsprechenden Seite betätigt wird.',
+ 'notificator-db-table-does-not-exist' => 'Datenbanktabelle
"notificator" existiert nicht. Das update.php Maintenance Script muss
ausgeführt werden, bevor die Notificator-Extension verwendet werden kann.',
'notificator-e-mail-address' => 'E-Mail-Adresse',
'notificator-notify' => 'Benachrichtigen',
'notificator-notify-address-or-name' => '$1 benachrichtigen',
- 'notificator-revs-not-from-same-title' => 'Revision-IDs gehören nicht
zum selben Titel/Artikel',
+ 'notificator-revs-not-from-same-title' => 'Revision-IDs gehören nicht
zum selben Titel/zur selben Seite',
'notificator-return-to' => 'Zurück zu',
- 'notificator-special-page-accessed-directly' => 'Auf diese
Spezial-Seite kann nicht direkt zugegriffen werden. Sie sollte über einen
Notificator-Knopf verwendet werden.',
+ 'notificator-special-page-accessed-directly' => 'Auf diese Spezialseite
kann nicht direkt zugegriffen werden. Sie sollte über einen Notificator-Knopf
verwendet werden.',
'notificator-e-mail-address-invalid' => 'Die angegebene E-Mail-Adresse
ist ungültig.',
'notificator-notification-not-sent' => 'Benachrichtigung <em>nicht</em>
gesendet.',
'notificator-change-tag' => 'Änderung',
'notificator-new-tag' => 'Neu',
- 'notificator-notification-text-changes' => '$1 möchte Sie zu folgenden
Änderungen an $2 benachrichtigen:',
- 'notificator-notification-text-new' => '$1 möchte Sie zu $2
benachrichtigen.',
+ 'notificator-notification-text-changes' => '$1 möchte dich zu folgenden
Änderungen an $2 benachrichtigen:',
+ 'notificator-notification-text-new' => '$1 möchte dich zu $2
benachrichtigen.',
'notificator-following-e-mail-sent-to' => 'Folgende E-Mail wurde an
<em>$1</em> gesendet:',
'notificator-subject' => 'Betreff:',
- 'notificator-error-sending-e-mail' => 'Beim Versenden der
Benachrichtigungs-Mail an <em>$1</em> ist ein Fehler aufgetreten.',
+ 'notificator-error-sending-e-mail' => 'Beim Versenden der
Benachrichtigungs-E-Mail an <em>$1</em> ist ein Fehler aufgetreten.',
'notificator-error-parameter-missing' => 'Fehler: Fehlender Parameter.',
'notificator-notified-already' => '$1 wurde bereits zu dieser Seite
oder Seitenänderung benachrichtigt.',
-);
\ No newline at end of file
+);
Modified: trunk/extensions/Notificator/Notificator.php
===================================================================
--- trunk/extensions/Notificator/Notificator.php 2011-06-09 10:43:55 UTC
(rev 89767)
+++ trunk/extensions/Notificator/Notificator.php 2011-06-09 10:59:23 UTC
(rev 89768)
@@ -8,14 +8,15 @@
$wgExtensionCredits['parserhook'][] = array(
'path' => __FILE__, // Magic so that svn revision number can be
shown
'name' => 'Notificator',
- 'descriptionmsg' => 'notificator-description',
+ 'descriptionmsg' => 'notificator-desc',
'version' => '1.0.2',
'author' => 'Patrick Nagel',
'url' => "http://www.mediawiki.org/wiki/Extension:Notificator",
);
+$dir = dirname( __FILE__ );
-$wgAutoloadClasses['Notificator'] = dirname( __FILE__ ) .
'/Notificator.body.php';
-$wgAutoloadClasses['SpecialNotificator'] = dirname( __FILE__ ) .
'/SpecialNotificator.php';
+$wgAutoloadClasses['Notificator'] = $dir . '/Notificator.body.php';
+$wgAutoloadClasses['SpecialNotificator'] = $dir . '/SpecialNotificator.php';
$wgHooks['LoadExtensionSchemaUpdates'][] = 'notificator_AddDatabaseTable';
$wgHooks['ParserTestTables'][] = 'notificator_ParserTestTables';
@@ -24,7 +25,8 @@
$wgSpecialPages['Notificator'] = 'SpecialNotificator';
-$wgExtensionMessagesFiles['Notificator'] = dirname( __FILE__ ) .
'/Notificator.i18n.php';
+$wgExtensionMessagesFiles['Notificator'] = $dir . '/Notificator.i18n.php';
+$wgExtensionAliasesFiles['Notificator'] = $dir . '/Notificator.alias.php';
// Setting default here, to avoid register_globals vulnerabilites
$ngFromAddress = $wgPasswordSenderName . '<' . $wgPasswordSender . '>';
Modified: trunk/extensions/Translate/groups/mediawiki-defines.txt
===================================================================
--- trunk/extensions/Translate/groups/mediawiki-defines.txt 2011-06-09
10:43:55 UTC (rev 89767)
+++ trunk/extensions/Translate/groups/mediawiki-defines.txt 2011-06-09
10:59:23 UTC (rev 89768)
@@ -862,6 +862,9 @@
file = NewUserNotif/NewUserNotif.i18n.php
descmsg = newusernotif-desc
+Notificator
+aliasfile = Notificator/Notificator.alias.php
+
NS File Repo
Nss MySQL Auth
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs