Index: trunk/extensions/Translate/TranslateHooks.php |
— | — | @@ -319,10 +319,13 @@ |
320 | 320 | $linker = class_exists( 'DummyLinker' ) ? new DummyLinker : new Linker; |
321 | 321 | |
322 | 322 | if ( $action === 'message' ) { |
| 323 | + $link = $forUI ? |
| 324 | + $linker->link( $title, null, array(), array( 'oldid' => $params[0] ) ) : |
| 325 | + $title->getPrefixedText(); |
323 | 326 | return wfMessage( 'logentry-translationreview-message' )->params( |
324 | 327 | '', // User link in the new system |
325 | 328 | '#', // User name for gender in the new system |
326 | | - Message::rawParam( $linker->link( $title, null, array(), array( 'oldid' => $params[0] ) ) ) |
| 329 | + Message::rawParam( $link ) |
327 | 330 | )->inLanguage( $language )->text(); |
328 | 331 | } |
329 | 332 | |
— | — | @@ -338,15 +341,14 @@ |
339 | 342 | $oldState = $oldStateMessage->isBlank() ? $oldState : $oldStateMessage->text(); |
340 | 343 | $newState = $newStateMessage->isBlank() ? $newState : $newStateMessage->text(); |
341 | 344 | |
| 345 | + $link = $forUI ? |
| 346 | + $linker->link( $title, $groupLabel, array(), array( 'language' => $languageCode ) ) : |
| 347 | + $groupLabel; |
| 348 | + |
342 | 349 | return wfMessage( 'logentry-groupreview-message' )->params( |
343 | 350 | '', // User link in the new system |
344 | 351 | '#', // User name for gender in the new system |
345 | | - Message::rawParam( $linker->link( |
346 | | - $title, |
347 | | - $groupLabel, |
348 | | - array(), |
349 | | - array( 'language' => $languageCode ) ) |
350 | | - ), |
| 352 | + Message::rawParam( $link ), |
351 | 353 | $languageName, |
352 | 354 | $oldState, |
353 | 355 | $newState |