Index: trunk/extensions/CategoryWatch/CategoryWatch.i18n.php |
— | — | @@ -26,6 +26,14 @@ |
27 | 27 | */ |
28 | 28 | $messages['qqq'] = array( |
29 | 29 | '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.', |
30 | 38 | ); |
31 | 39 | |
32 | 40 | /** Arabic (العربية) |
Index: trunk/extensions/CategoryWatch/CategoryWatch.php |
— | — | @@ -124,13 +124,17 @@ |
125 | 125 | $to = new MailAddress($watchingUser); |
126 | 126 | $timecorrection = $watchingUser->getOption('timecorrection'); |
127 | 127 | $editdate = $wgLang->timeanddate(wfTimestampNow(), true, false, $timecorrection); |
| 128 | + $editdat1 = $wgLang->date(wfTimestampNow(), true, false, $timecorrection); |
| 129 | + $edittim2 = $wgLang->time(wfTimestampNow(), true, false, $timecorrection); |
128 | 130 | $body = wfMsg( |
129 | 131 | 'categorywatch-emailbody', |
130 | 132 | $watchingUser->getName(), |
131 | 133 | $page, |
132 | 134 | $editdate, |
133 | 135 | $editor->getName(), |
134 | | - $message |
| 136 | + $message, |
| 137 | + $editdat1, |
| 138 | + $edittim2, |
135 | 139 | ); |
136 | 140 | if (function_exists('userMailer')) { |
137 | 141 | userMailer( |