Index: trunk/extensions/TranslationNotifications/SpecialNotifyTranslators.php |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | if ( $userName === '' ) { |
185 | 185 | $userName = $user->getName(); |
186 | 186 | } |
187 | | - $languageName = $userFirstLanguage->getLanguageName(); |
| 187 | + $languageName = $userFirstLanguage->fetchLanguageName( $languageCode ); |
188 | 188 | $priorityClause = ( self::$priority === 'unset' ) |
189 | 189 | ? '' |
190 | 190 | : wfMessage( 'translationnotifications-email-priority', self::$priority ); |
— | — | @@ -204,6 +204,13 @@ |
205 | 205 | $priorityClause, |
206 | 206 | $deadlineClause, |
207 | 207 | self::$notificationText |
208 | | - )->inLanguage( $userFirstLanguage )->text();; |
| 208 | + )->inLanguage( $userFirstLanguage )->text(); |
| 209 | + |
| 210 | + global $wgUser; |
| 211 | + $emailFrom = new MailAddress( $wgUser ); |
| 212 | + $emailTo = new MailAddress( $user ); |
| 213 | + |
| 214 | + return UserMailer::send( $emailTo, $emailFrom, $emailSubject, $emailBody ); |
209 | 215 | } |
210 | 216 | } |
| 217 | + |