http://www.mediawiki.org/wiki/Special:Code/MediaWiki/88409

Revision: 88409
Author:   jeroendedauw
Date:     2011-05-19 15:11:52 +0000 (Thu, 19 May 2011)
Log Message:
-----------
follow up to r88374, added message docs and split date/time as per request by 
nikerabbit

Modified Paths:
--------------
    trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php
    trunk/extensions/SemanticWatchlist/includes/SWL_Emailer.php

Modified: trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php
===================================================================
--- trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php       
2011-05-19 15:10:24 UTC (rev 88408)
+++ trunk/extensions/SemanticWatchlist/SemanticWatchlist.i18n.php       
2011-05-19 15:11:52 UTC (rev 88409)
@@ -46,7 +46,7 @@
 
        // Email
        'swl-email-propschanged' => 'Properties have changed at $1',
-       '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].",
+       '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].",
        'swl-email-changes' => 'Property changes on [$2 $1]:',
 
        // Preferences
@@ -59,6 +59,16 @@
        'swl-prefs-emailnofity' => 'E-mail me on changes to properties I am 
watching',
 );
 
+/** Message documentation (Message documentation)
+ * @author Jeroen De Dauw
+ */
+$messages['qqq'] = array(
+       'semanticwatchlist-desc' => '{{desc}}',
+       'right-semanticwatch' => '{{doc-right|semanticwatch}}',
+       'right-semanticwatchgroups' => '{{doc-right|semanticwatchgroups}}',
+       'swl-email-propschanged-long' => '$1: wiki name, $2: user name, $3: 
url, $4: time, $5: date',
+);
+
 /** German (Deutsch)
  * @author Kghbln
  * @author Purodha

Modified: trunk/extensions/SemanticWatchlist/includes/SWL_Emailer.php
===================================================================
--- trunk/extensions/SemanticWatchlist/includes/SWL_Emailer.php 2011-05-19 
15:10:24 UTC (rev 88408)
+++ trunk/extensions/SemanticWatchlist/includes/SWL_Emailer.php 2011-05-19 
15:11:52 UTC (rev 88409)
@@ -26,13 +26,16 @@
      * @return Status
      */
     public static function notifyUser( SWLGroup $group, User $user, 
SWLChangeSet $changeSet, $describeChanges ) {
+       global $wgLang;
+       
        $emailText = wfMsgExt(
                'swl-email-propschanged-long',
                'parse', 
                $GLOBALS['wgSitename'],
                $changeSet->getUser()->getName(),
                SpecialPage::getTitleFor( 'SemanticWatchlist' )->getFullURL(),
-               $GLOBALS['wgLang']->timeanddate( $changeSet->getTime() )
+               $wgLang->time( $changeSet->getTime() ),
+               $wgLang->date( $changeSet->getTime() )
        );
        
        if ( $describeChanges ) {


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to