r80263 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80262‎ | r80263 | r80264 >
Date:14:24, 14 January 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Version 0.4
Modified paths:
  • /trunk/extensions/LiveTranslate/LiveTranslate.hooks.php (modified) (history)
  • /trunk/extensions/LiveTranslate/RELEASE-NOTES (modified) (history)
  • /trunk/extensions/LiveTranslate/api/ApiLiveTranslate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LiveTranslate/LiveTranslate.hooks.php
@@ -83,16 +83,6 @@
8484 $wgLang->formatNum( $tm->memory_lang_count )
8585 );
8686
87 - if ( $wgUser->isAllowed( 'managetms' ) ) {
88 - $wgOut->addHTML(
89 - Html::element(
90 - 'a',
91 - array( 'href' => Title::newFromText( 'Special:LiveTranslate' )->getInternalURL() ),
92 - wfMsg( 'livetranslate-dictionary-goto-edit' )
93 - )
94 - );
95 - }
96 -
9787 /*
9888 $notAllowedLanguages = array();
9989
@@ -127,6 +117,16 @@
128118 );
129119 }
130120 */
 121+ }
 122+
 123+ if ( $wgUser->isAllowed( 'managetms' ) ) {
 124+ $wgOut->addHTML(
 125+ Html::element(
 126+ 'a',
 127+ array( 'href' => Title::newFromText( 'Special:LiveTranslate' )->getInternalURL() ),
 128+ wfMsg( 'livetranslate-dictionary-goto-edit' )
 129+ )
 130+ );
131131 }
132132 }
133133
Index: trunk/extensions/LiveTranslate/RELEASE-NOTES
@@ -5,7 +5,7 @@
66
77
88 === Version 0.4 ===
9 -2011-01-xx
 9+2011-01-14
1010
1111 * Added support for multiple translation memories.
1212 * Added Special:LiveTranslate to manage the translation memories that should be used.
Index: trunk/extensions/LiveTranslate/api/ApiLiveTranslate.php
@@ -74,7 +74,7 @@
7575 $destination->word_translation = $translation;
7676 }
7777 }
78 -
 78+
7979 $this->getResult()->addValue(
8080 'translations',
8181 $word,
@@ -135,4 +135,4 @@
136136 return __CLASS__ . ': $Id$';
137137 }
138138
139 -}
\ No newline at end of file
 139+}

Status & tagging log