r44680 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44679‎ | r44680 | r44681 >
Date:18:18, 16 December 2008
Author:purodha
Status:deferred
Tags:
Comment:
Date an time separated in the e-mail
Modified paths:
  • /trunk/extensions/CategoryWatch/CategoryWatch.i18n.php (modified) (history)
  • /trunk/extensions/CategoryWatch/CategoryWatch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CategoryWatch/CategoryWatch.i18n.php
@@ -26,6 +26,14 @@
2727 */
2828 $messages['qqq'] = array(
2929 'categorywatch-desc' => 'Short description of this extension, shown on [[Special:Version]]. Do not translate or change links.',
 30+ 'categorywatch-emailbody' => 'This is a tempate for the e-mails sent to the watching user.
 31+* $1 is the name of the watching user,
 32+* $2 is the name of the watched category,
 33+* $3 is combined date and time of the change,
 34+* $4 is the name of the user having made a change to the category,
 35+* $5 is a text describing the change, it is one of {{msg-mw|categorywatch-catmovein}}, {{msg-mw|categorywatch-catmoveout}}, {{msg-mw|categorywatch-catadd}}, or {{msg-mw|categorywatch-catsub}},
 36+* $6 is the date of the change,
 37+* $7 is the time of the change.',
3038 );
3139
3240 /** Arabic (العربية)
Index: trunk/extensions/CategoryWatch/CategoryWatch.php
@@ -124,13 +124,17 @@
125125 $to = new MailAddress($watchingUser);
126126 $timecorrection = $watchingUser->getOption('timecorrection');
127127 $editdate = $wgLang->timeanddate(wfTimestampNow(), true, false, $timecorrection);
 128+ $editdat1 = $wgLang->date(wfTimestampNow(), true, false, $timecorrection);
 129+ $edittim2 = $wgLang->time(wfTimestampNow(), true, false, $timecorrection);
128130 $body = wfMsg(
129131 'categorywatch-emailbody',
130132 $watchingUser->getName(),
131133 $page,
132134 $editdate,
133135 $editor->getName(),
134 - $message
 136+ $message,
 137+ $editdat1,
 138+ $edittim2,
135139 );
136140 if (function_exists('userMailer')) {
137141 userMailer(

Status & tagging log