Index: trunk/extensions/Translate/TranslatePage.php |
— | — | @@ -193,10 +193,10 @@ |
194 | 194 | protected function settingsForm( $errors ) { |
195 | 195 | global $wgScript; |
196 | 196 | |
197 | | - $task = $this->taskSelector(); |
198 | | - $group = $this->groupSelector(); |
199 | | - $language = $this->languageSelector(); |
200 | | - $limit = $this->limitSelector(); |
| 197 | + //$task = $this->taskSelector(); |
| 198 | + //$group = $this->groupSelector(); |
| 199 | + //$language = $this->languageSelector(); |
| 200 | + //$limit = $this->limitSelector(); |
201 | 201 | $button = Xml::submitButton( wfMsg( TranslateUtils::MSG . 'submit' ) ); |
202 | 202 | |
203 | 203 | $options = array(); |
Index: trunk/extensions/Translate/SpecialTranslationStats.php |
— | — | @@ -148,8 +148,6 @@ |
149 | 149 | } |
150 | 150 | |
151 | 151 | protected function eRadio( $name, FormOptions $opts, array $alts ) { |
152 | | - $value = $opts[$name]; |
153 | | - |
154 | 152 | $label = 'translate-statsf-' . $name; |
155 | 153 | $label = wfMsgExt( $label, array( 'parsemag', 'escapenoentities' ) ); |
156 | 154 | $s = '<tr><td>' . $label . '</td><td>'; |
— | — | @@ -525,7 +523,6 @@ |
526 | 524 | if ( !$this->groups && !$this->codes ) return 'all'; |
527 | 525 | |
528 | 526 | // The key-building needs to be in sync with ::labels() |
529 | | - $keys = array(); |
530 | 527 | |
531 | 528 | list( $key, $code ) = TranslateUtils::figureMessage( $row->rc_title ); |
532 | 529 | |
Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -550,7 +550,6 @@ |
551 | 551 | } |
552 | 552 | |
553 | 553 | $lines = array_map( 'trim', explode( "\n", $data ) ); |
554 | | - $array = array(); |
555 | 554 | foreach ( $lines as $line ) { |
556 | 555 | if ( $line === '' || $line[0] === '#' || $line[0] === '<' ) { |
557 | 556 | continue; |
— | — | @@ -725,8 +724,6 @@ |
726 | 725 | public function getMessage( $key, $code ) { |
727 | 726 | global $wgContLang; |
728 | 727 | |
729 | | - $params = array(); |
730 | | - |
731 | 728 | if ( $code && $wgContLang->getCode() !== $code ) { |
732 | 729 | return TranslateUtils::getMessageContent( $key, $code ); |
733 | 730 | } else { |
Index: trunk/extensions/Translate/tag/SpecialPageTranslation.php |
— | — | @@ -486,7 +486,7 @@ |
487 | 487 | |
488 | 488 | $dbw = wfGetDB( DB_MASTER ); |
489 | 489 | $dbw->delete( 'translate_sections', array( 'trs_page' => $page->getTitle()->getArticleId() ), __METHOD__ ); |
490 | | - $ok = $dbw->insert( 'translate_sections', $inserts, __METHOD__ ); |
| 490 | + $dbw->insert( 'translate_sections', $inserts, __METHOD__ ); |
491 | 491 | |
492 | 492 | /* Stores the names of changed sections in the database. |
493 | 493 | * Used for calculating completion percentages for outdated messages */ |
Index: trunk/extensions/Translate/tag/SpecialPageTranslationMovePage.php |
— | — | @@ -294,7 +294,6 @@ |
295 | 295 | |
296 | 296 | protected function performAction() { |
297 | 297 | $jobs = array(); |
298 | | - $titles = array(); |
299 | 298 | |
300 | 299 | $target = $this->newTitle; |
301 | 300 | $base = $this->oldTitle->getPrefixedText(); |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -685,7 +685,6 @@ |
686 | 686 | } |
687 | 687 | |
688 | 688 | // Shortcuts |
689 | | - $code = $this->targetLanguage; |
690 | 689 | $key = $this->page; |
691 | 690 | |
692 | 691 | $definitionTitle = Title::makeTitleSafe( $this->title->getNamespace(), "$key/en" ); |
Index: trunk/extensions/Translate/ffs/Simple.php |
— | — | @@ -161,7 +161,6 @@ |
162 | 162 | $code = $collection->code; // shorthand |
163 | 163 | |
164 | 164 | // Open temporary stream |
165 | | - $filename = $this->group->getMessageFile( $code ); |
166 | 165 | $handle = fopen( 'php://temp', 'wt' ); |
167 | 166 | |
168 | 167 | $this->addAuthors( $collection->getAuthors(), $code ); |
Index: trunk/extensions/Translate/ffs/PhpVariables.php |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | |
34 | 34 | $contents = file_get_contents( $this->filename ); |
35 | 35 | $m = array(); |
36 | | - $count = preg_match_all( '/@author (.*)/', $contents, $m ); |
| 36 | + preg_match_all( '/@author (.*)/', $contents, $m ); |
37 | 37 | |
38 | 38 | return $m[1]; |
39 | 39 | } |
Index: trunk/extensions/Translate/ffs/WikiExtension.php |
— | — | @@ -108,7 +108,6 @@ |
109 | 109 | $code = $collection->code; // shorthand |
110 | 110 | |
111 | 111 | // Open temporary stream |
112 | | - $filename = $this->group->getMessageFile( $code ); |
113 | 112 | $handle = fopen( 'php://temp', 'wt' ); |
114 | 113 | |
115 | 114 | $this->addAuthors( $collection->getAuthors(), $code ); |
— | — | @@ -176,7 +175,7 @@ |
177 | 176 | } |
178 | 177 | |
179 | 178 | public function parseAuthorsFromString( $string ) { |
180 | | - $count = preg_match_all( '/@author (.*)/', $string, $m ); |
| 179 | + preg_match_all( '/@author (.*)/', $string, $m ); |
181 | 180 | |
182 | 181 | return $m[1]; |
183 | 182 | } |
Index: trunk/extensions/Translate/ffs/Java.php |
— | — | @@ -108,7 +108,6 @@ |
109 | 109 | |
110 | 110 | list( $name, $native ) = $this->getLanguageNames( $code ); |
111 | 111 | $authors = $this->formatAuthors( '# Author: ', $code ); |
112 | | - $when = wfTimestamp( TS_ISO_8601 ); |
113 | 112 | |
114 | 113 | fwrite( $handle, <<<HEADER |
115 | 114 | # Messages for $name ($native) |
Index: trunk/extensions/Translate/ffs/OpenLayers.php |
— | — | @@ -157,7 +157,6 @@ |
158 | 158 | // Get and write messages. |
159 | 159 | $lines = ''; |
160 | 160 | foreach ( $collection as $message ) { |
161 | | - $key = Xml::escapeJsString( $message->key() ); |
162 | 161 | $value = Xml::escapeJsString( $message->translation() ); |
163 | 162 | if( $this->keyquote ) { |
164 | 163 | $lines .= " '{$message->key()}': \"{$value}\",\n\n"; |
— | — | @@ -166,7 +165,6 @@ |
167 | 166 | } |
168 | 167 | } |
169 | 168 | |
170 | | - |
171 | 169 | // Strip last comma. |
172 | 170 | $lines = substr( $lines, 0, -3 ); |
173 | 171 | $lines .= "\n\n"; |
Index: trunk/extensions/Translate/ffs/Wiki.php |
— | — | @@ -24,7 +24,7 @@ |
25 | 25 | } |
26 | 26 | $contents = file_get_contents( $this->filename ); |
27 | 27 | $m = array(); |
28 | | - $count = preg_match_all( '/@author (.*)/', $contents, $m ); |
| 28 | + preg_match_all( '/@author (.*)/', $contents, $m ); |
29 | 29 | |
30 | 30 | return $m[1]; |
31 | 31 | } |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | $contents = file_get_contents( $this->filename ); |
39 | 39 | |
40 | 40 | /** FIXME: handle the case where the first comment is missing */ |
41 | | - $dollarstart = strpos( $contents, '$' ); |
| 41 | + //$dollarstart = strpos( $contents, '$' ); |
42 | 42 | |
43 | 43 | $start = strpos( $contents, '*/' ); |
44 | 44 | $end = strpos( $contents, '$messages' ); |
Index: trunk/extensions/Translate/ffs/Gettext.php |
— | — | @@ -319,7 +319,7 @@ |
320 | 320 | // READ |
321 | 321 | // |
322 | 322 | public function readFromVariable( $data ) { |
323 | | - $authors = $messages = array(); |
| 323 | + $authors = array(); |
324 | 324 | |
325 | 325 | # Authors first |
326 | 326 | $matches = array(); |