Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -584,8 +584,14 @@ |
585 | 585 | return wfMsgExt( 'pt-log-delete-full-ok', $opts, $title->getPrefixedText(), $user ); |
586 | 586 | } elseif ( $action === 'deletelok' ) { |
587 | 587 | return wfMsgExt( 'pt-log-delete-lang-ok', $opts, $title->getPrefixedText(), $user ); |
| 588 | + } elseif ( $action === 'prioritylanguages' ) { |
| 589 | + if ( $_['force'] === 'on' ) { |
| 590 | + return wfMsgExt( 'pt-log-priority-langs-force', $opts, $title->getPrefixedText(), $user, $_['languages'] ); |
| 591 | + } else { |
| 592 | + return wfMsgExt( 'pt-log-priority-langs', $opts, $title->getPrefixedText(), $user , $_['languages'] ); |
| 593 | + } |
588 | 594 | } |
589 | | - return ''; |
| 595 | + return ''; |
590 | 596 | } |
591 | 597 | |
592 | 598 | /// Hook: SpecialPage_initList |
Index: trunk/extensions/Translate/TranslateHooks.php |
— | — | @@ -67,6 +67,7 @@ |
68 | 68 | $wgLogActionsHandlers['pagetranslation/deletefok'] = 'PageTranslationHooks::formatLogEntry'; |
69 | 69 | $wgLogActionsHandlers['pagetranslation/deletelnok'] = 'PageTranslationHooks::formatLogEntry'; |
70 | 70 | $wgLogActionsHandlers['pagetranslation/deletefnok'] = 'PageTranslationHooks::formatLogEntry'; |
| 71 | + $wgLogActionsHandlers['pagetranslation/prioritylanguages'] = 'PageTranslationHooks::formatLogEntry'; |
71 | 72 | |
72 | 73 | global $wgJobClasses; |
73 | 74 | $wgJobClasses['RenderJob'] = 'RenderJob'; |
Index: trunk/extensions/Translate/PageTranslation.i18n.php |
— | — | @@ -123,6 +123,8 @@ |
124 | 124 | 'pt-log-delete-full-nok' => '{{GENDER:$2|encountered}} a problem while deleting translatable page [[:$1]]', |
125 | 125 | 'pt-log-delete-lang-ok' => '{{GENDER:$2|completed}} deletion of translation page $1', |
126 | 126 | 'pt-log-delete-lang-nok' => '{{GENDER:$2|encountered}} a problem while deleting translation page [[:$1]]', |
| 127 | + 'pt-log-priority-langs' => '{{GENDER:$2|set}} preferred languages for translation page [[:$1]] as $3', |
| 128 | + 'pt-log-priority-langs-force' => '{{GENDER:$2|restricted}} languages for translation page [[:$1]] as $3', |
127 | 129 | |
128 | 130 | |
129 | 131 | # move page replacement |
— | — | @@ -256,6 +258,8 @@ |
257 | 259 | 'pt-log-unmark' => 'Used on [[Special:Log/pagetranslation]]', |
258 | 260 | 'pt-log-moveok' => 'Used on [[Special:Log/pagetranslation]]', |
259 | 261 | 'pt-log-movenok' => 'Used on [[Special:Log/pagetranslation]]', |
| 262 | + 'pt-log-priority-langs' => 'Used on [[Special:Log/pagetranslation]]. $3 is comma seperated list of languages.', |
| 263 | + 'pt-log-priority-langs-force' => 'Used on [[Special:Log/pagetranslation]]. $3 is comma seperated list of languages.', |
260 | 264 | 'pt-movepage-block-base-exists' => "'''base page''' refers to the untranslated version of the translatable page.", |
261 | 265 | 'pt-movepage-block-tp-exists' => 'translation page is a translated version of a translatable page', |
262 | 266 | 'pt-movepage-block-section-exists' => 'Section page is a translation of one section. Translation page consists of many translation sections.', |