r79594 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79593‎ | r79594 | r79595 >
Date:20:02, 4 January 2011
Author:nikerabbit
Status:ok
Tags:
Comment:
Follow-up r79360, the actual hook
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -464,4 +464,13 @@
465465 }
466466 return true;
467467 }
 468+
 469+ public static function translateMessageDocumentationLanguage( &$names, $code ) {
 470+ global $wgTranslateDocumentationLanguageCode;
 471+ if ( $wgTranslateDocumentationLanguageCode ) {
 472+ $names[$wgTranslateDocumentationLanguageCode] =
 473+ wfMessage( 'translate-documentation-language' )->inLanguage( $code )->plain();
 474+ }
 475+ return true;
 476+ }
468477 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r79360Use the new hook to translate message documentation language codenikerabbit18:32, 31 December 2010

Status & tagging log