Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -464,4 +464,13 @@ |
465 | 465 | } |
466 | 466 | return true; |
467 | 467 | } |
| 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 | + } |
468 | 477 | } |