r112998 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112997‎ | r112998 | r112999 >
Date:04:53, 5 March 2012
Author:santhosh
Status:ok
Tags:
Comment:
Add the reason for priority setting of languages to the log message.
Modified paths:
  • /trunk/extensions/Translate/PageTranslation.i18n.php (modified) (history)
  • /trunk/extensions/Translate/tag/PageTranslationHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/tag/PageTranslationHooks.php
@@ -616,9 +616,9 @@
617617 if ( $_['languages'] === false ) {
618618 return wfMsgExt( 'pt-log-priority-langs-unset', $opts, $title->getPrefixedText(), $user );
619619 } elseif ( $_['force'] === 'on' ) {
620 - return wfMsgExt( 'pt-log-priority-langs-force', $opts, $title->getPrefixedText(), $user, $_['languages'] );
 620+ return wfMsgExt( 'pt-log-priority-langs-force', $opts, $title->getPrefixedText(), $user, $_['languages'], $_['reason'] );
621621 } else {
622 - return wfMsgExt( 'pt-log-priority-langs', $opts, $title->getPrefixedText(), $user , $_['languages'] );
 622+ return wfMsgExt( 'pt-log-priority-langs', $opts, $title->getPrefixedText(), $user , $_['languages'], $_['reason'] );
623623 }
624624 }
625625 return '';
Index: trunk/extensions/Translate/PageTranslation.i18n.php
@@ -137,8 +137,8 @@
138138 'pt-log-encourage' => '{{GENDER:$2|encouraged}} translation of page [[:$1]]',
139139 'pt-log-discourage' => '{{GENDER:$2|discouraged}} translation of page [[:$1]]',
140140 'pt-log-priority-langs-unset' => '{{GENDER:$2|removed}} priority languages from translatable page [[:$1]]',
141 - 'pt-log-priority-langs' => '{{GENDER:$2|set}} the priority languages for translatable page [[:$1]] to $3',
142 - 'pt-log-priority-langs-force' => '{{GENDER:$2|limited}} languages for translatable page [[:$1]] to $3',
 141+ 'pt-log-priority-langs' => '{{GENDER:$2|set}} the priority languages for translatable page [[:$1]] to $3. Reason: $4',
 142+ 'pt-log-priority-langs-force' => '{{GENDER:$2|limited}} languages for translatable page [[:$1]] to $3. Reason: $4',
143143
144144 # move page replacement
145145 'pt-movepage-title' => 'Move translatable page $1',

Status & tagging log