Index: trunk/extensions/Translate/TranslateHooks.php |
— | — | @@ -330,8 +330,10 @@ |
331 | 331 | $languageCode = $params[0]; |
332 | 332 | $languageNames = Language::getTranslatedLanguageNames( $languageCode ); |
333 | 333 | $languageName = "$languageNames[$languageCode] ($languageCode)"; |
334 | | - $oldStateMessage = wfMessage( "translate-workflow-state-$params[2]" ); |
335 | | - $newStateMessage = wfMessage( "translate-workflow-state-$params[3]" ); |
| 334 | + $oldState = $params[2]; |
| 335 | + $newState = $params[3]; |
| 336 | + $oldStateMessage = wfMessage( "translate-workflow-state-$oldState" ); |
| 337 | + $newStateMessage = wfMessage( "translate-workflow-state-$newState" ); |
336 | 338 | $oldState = $oldStateMessage->isBlank() ? $oldState : $oldStateMessage->text(); |
337 | 339 | $newState = $newStateMessage->isBlank() ? $newState : $newStateMessage->text(); |
338 | 340 | |
— | — | @@ -342,7 +344,7 @@ |
343 | 345 | $params[1], // group |
344 | 346 | $oldState, |
345 | 347 | $newState |
346 | | - )->inLanguage( $language )->text() . $bla; |
| 348 | + )->inLanguage( $language )->text(); |
347 | 349 | } |
348 | 350 | |
349 | 351 | return ''; |