r79360 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r79359‎ | r79360 | r79361 >
Date:18:32, 31 December 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Use the new hook to translate message documentation language code
Modified paths:
  • /trunk/extensions/Translate/Translate.i18n.php (modified) (history)
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -91,6 +91,7 @@
9292 $wgHooks['SkinTemplateTabs'][] = 'TranslateEditAddons::tabs';
9393 $wgHooks['ArticleAfterFetchContent'][] = 'TranslateEditAddons::customDisplay';
9494 $wgHooks['ParserBeforeStrip'][] = 'TranslateEditAddons::injectTranslationDisplayJs';
 95+$wgHooks['LanguageGetTranslatedLanguageNames'][] = 'TranslateEditAddons::translateMessageDocumentationLanguage';
9596
9697 // Custom preferences
9798 $wgDefaultUserOptions['translate'] = 0;
Index: trunk/extensions/Translate/Translate.i18n.php
@@ -349,6 +349,8 @@
350350 'translate-gs-count' => 'Count',
351351 'translate-gs-total' => 'Total',
352352 'translate-gs-avgscore' => 'Avg. score',
 353+
 354+ 'translate-documentation-language' => 'Message documentation',
353355 );
354356
355357 /** Message documentation (Message documentation)

Follow-up revisions

RevisionCommit summaryAuthorDate
r79594Follow-up r79360, the actual hooknikerabbit20:02, 4 January 2011

Status & tagging log