Index: trunk/extensions/SemanticWatchlist/includes/SWL_Emailer.php |
— | — | @@ -26,13 +26,16 @@ |
27 | 27 | * @return Status |
28 | 28 | */ |
29 | 29 | public static function notifyUser( SWLGroup $group, User $user, SWLChangeSet $changeSet, $describeChanges ) { |
| 30 | + global $wgLang; |
| 31 | + |
30 | 32 | $emailText = wfMsgExt( |
31 | 33 | 'swl-email-propschanged-long', |
32 | 34 | 'parse', |
33 | 35 | $GLOBALS['wgSitename'], |
34 | 36 | $changeSet->getUser()->getName(), |
35 | 37 | SpecialPage::getTitleFor( 'SemanticWatchlist' )->getFullURL(), |
36 | | - $GLOBALS['wgLang']->timeanddate( $changeSet->getTime() ) |
| 38 | + $wgLang->time( $changeSet->getTime() ), |
| 39 | + $wgLang->date( $changeSet->getTime() ) |
37 | 40 | ); |
38 | 41 | |
39 | 42 | if ( $describeChanges ) { |
Index: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | |
48 | 48 | // Email |
49 | 49 | 'swl-email-propschanged' => 'Properties have changed at $1', |
50 | | - 'swl-email-propschanged-long' => "One or more properties you watch at '''$1''' have been changed by user '''$2''' at $4. You can view these and other changes on [$3 your semantic watchlist].", |
| 50 | + 'swl-email-propschanged-long' => "One or more properties you watch at '''$1''' have been changed by user '''$2''' at $4 on $5. You can view these and other changes on [$3 your semantic watchlist].", |
51 | 51 | 'swl-email-changes' => 'Property changes on [$2 $1]:', |
52 | 52 | |
53 | 53 | // Preferences |
— | — | @@ -59,6 +59,16 @@ |
60 | 60 | 'swl-prefs-emailnofity' => 'E-mail me on changes to properties I am watching', |
61 | 61 | ); |
62 | 62 | |
| 63 | +/** Message documentation (Message documentation) |
| 64 | + * @author Jeroen De Dauw |
| 65 | + */ |
| 66 | +$messages['qqq'] = array( |
| 67 | + 'semanticwatchlist-desc' => '{{desc}}', |
| 68 | + 'right-semanticwatch' => '{{doc-right|semanticwatch}}', |
| 69 | + 'right-semanticwatchgroups' => '{{doc-right|semanticwatchgroups}}', |
| 70 | + 'swl-email-propschanged-long' => '$1: wiki name, $2: user name, $3: url, $4: time, $5: date', |
| 71 | +); |
| 72 | + |
63 | 73 | /** German (Deutsch) |
64 | 74 | * @author Kghbln |
65 | 75 | * @author Purodha |