r89410 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89409‎ | r89410 | r89411 >
Date:12:00, 3 June 2011
Author:nikerabbit
Status:deferred
Tags:
Comment:
Userbase requested a possibility to add a note about tags
Modified paths:
  • /trunk/extensions/Translate/Translate.i18n.php (modified) (history)
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)
  • /trunk/extensions/Translate/groups/mediawiki-defines.txt (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/groups/mediawiki-defines.txt
@@ -1620,6 +1620,7 @@
16211621 aliasfile = Translate/Translate.alias.php
16221622 optional = translate-page-paging-links, translate-languagestats-groups, supportedlanguages-portallink, supportedlanguages-portallink-nocldr
16231623 optional = translate-edit-tab-next, translate-edit-tab-prev
 1624+ignored = translate-edit-tag-warning
16241625
16251626 Translate - First Steps
16261627 id = ext-translate-firststeps
Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -122,6 +122,11 @@
123123 static function intro( $object ) {
124124 $object->suppressIntro = true;
125125
 126+ $msg = wfMsgForContent( 'translate-edit-tag-warning' );
 127+ if ( $msg !== '' && $msg !== '-' && TranslatablePage::isSourcePage( $object->mTitle ) ) {
 128+ global $wgOut;
 129+ $object->editFormTextTop .= $wgOut->parse( $msg );
 130+ }
126131 return true;
127132 }
128133
Index: trunk/extensions/Translate/Translate.i18n.php
@@ -88,6 +88,8 @@
8989 'translate-edit-tab-next' => '>>>',
9090 'translate-edit-tab-list' => 'Message list',
9191
 92+ 'translate-edit-tag-warning' => '',
 93+
9294 'translate-magic-pagename' => 'Extended MediaWiki translation',
9395 'translate-magic-help' => 'You can translate special pages aliases, magic words and namespace names.
9496

Status & tagging log