Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -996,7 +996,7 @@ |
997 | 997 | |
998 | 998 | $tables = array( 'page', 'revtag' ); |
999 | 999 | $vars = array( 'page_id', 'page_namespace', 'page_title', ); |
1000 | | - $conds = array( 'page_id=rt_page', 'rt_type' => RevTag::getType( 'tp:mark') ); |
| 1000 | + $conds = array( 'page_id=rt_page', 'rt_type' => RevTag::getType( 'tp:mark' ) ); |
1001 | 1001 | $options = array( 'GROUP BY' => 'rt_page' ); |
1002 | 1002 | $res = $dbr->select( $tables, $vars, $conds, __METHOD__, $options ); |
1003 | 1003 | |
Index: trunk/extensions/Translate/tag/MoveJob.php |
— | — | @@ -73,12 +73,12 @@ |
74 | 74 | |
75 | 75 | $this->unlock(); |
76 | 76 | |
77 | | - |
| 77 | + |
78 | 78 | $cache = wfGetCache( CACHE_ANYTHING ); |
79 | 79 | $key = wfMemcKey( 'translate-pt-move', $base ); |
80 | | - |
| 80 | + |
81 | 81 | $count = $cache->decr( $key ); |
82 | | - $last = strval($count) === "0"; |
| 82 | + $last = strval( $count ) === "0"; |
83 | 83 | |
84 | 84 | if ( $last ) { |
85 | 85 | $cache->delete( $key ); |
Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -288,7 +288,7 @@ |
289 | 289 | * @return \bool If string contains fuzzy string. |
290 | 290 | */ |
291 | 291 | public static function hasFuzzyString( $text ) { |
292 | | - #wfDeprecated( __METHOD__, '1.19' ); |
| 292 | + # wfDeprecated( __METHOD__, '1.19' ); |
293 | 293 | return MessageHandle::hasFuzzyString( $text ); |
294 | 294 | } |
295 | 295 | |
— | — | @@ -298,7 +298,7 @@ |
299 | 299 | * @return \bool If title is marked fuzzy. |
300 | 300 | */ |
301 | 301 | public static function isFuzzy( Title $title ) { |
302 | | - #wfDeprecated( __METHOD__, '1.19' ); |
| 302 | + # wfDeprecated( __METHOD__, '1.19' ); |
303 | 303 | $handle = new MessageHandle( $title ); |
304 | 304 | return $handle->isFuzzy(); |
305 | 305 | } |
Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -15,7 +15,7 @@ |
16 | 16 | /** |
17 | 17 | * Version number used in extension credits and in other placed where needed. |
18 | 18 | */ |
19 | | -define( 'TRANSLATE_VERSION', '2011-10-07' ); |
| 19 | +define( 'TRANSLATE_VERSION', '2011-10-27' ); |
20 | 20 | |
21 | 21 | /** |
22 | 22 | * Extension credits properties. |
Index: trunk/extensions/Translate/utils/MessageTable.php |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | if ( $m->hasTag( 'optional' ) ) { |
143 | 143 | $extra = '<br />' . $optional; |
144 | 144 | } |
145 | | - |
| 145 | + |
146 | 146 | $leftColumn = $anchor . $tools['edit'] . $this->getReviewButton( $m ) . $extra . $this->getReviewStatus( $m ); |
147 | 147 | |
148 | 148 | if ( $this->reviewMode && $original !== $message ) { |
— | — | @@ -225,11 +225,11 @@ |
226 | 226 | $attribs['value'] = wfMessage( 'translate-messagereview-done' )->text(); |
227 | 227 | $attribs['disabled'] = 'disabled'; |
228 | 228 | $attribs['title'] = wfMessage( 'translate-messagereview-doit' )->text(); |
229 | | - } elseif( $message->hasTag( 'fuzzy' ) ) { |
| 229 | + } elseif ( $message->hasTag( 'fuzzy' ) ) { |
230 | 230 | $attribs['value'] = wfMessage( 'translate-messagereview-submit' )->text(); |
231 | 231 | $attribs['disabled'] = 'disabled'; |
232 | 232 | $attribs['title'] = wfMessage( 'translate-messagereview-no-fuzzy' )->text(); |
233 | | - } elseif( $wgUser->getName() === $message->author() ) { |
| 233 | + } elseif ( $wgUser->getName() === $message->author() ) { |
234 | 234 | $attribs['value'] = wfMessage( 'translate-messagereview-submit' )->text(); |
235 | 235 | $attribs['disabled'] = 'disabled'; |
236 | 236 | $attribs['title'] = wfMessage( 'translate-messagereview-no-own' )->text(); |
Index: trunk/extensions/Translate/utils/UserToggles.php |
— | — | @@ -25,7 +25,7 @@ |
26 | 26 | public static function onGetPreferences( $user, &$preferences ) { |
27 | 27 | global $wgTranslateNewsletterPreference; |
28 | 28 | |
29 | | - if( !$wgTranslateNewsletterPreference ) { |
| 29 | + if ( !$wgTranslateNewsletterPreference ) { |
30 | 30 | return true; |
31 | 31 | } |
32 | 32 | |
Index: trunk/extensions/Translate/specials/SpecialSupportedLanguages.php |
— | — | @@ -397,7 +397,7 @@ |
398 | 398 | $legend = ''; |
399 | 399 | $period = $this->period; |
400 | 400 | |
401 | | - for ( $i = 0; $i <= $period; $i+=30 ) { |
| 401 | + for ( $i = 0; $i <= $period; $i += 30 ) { |
402 | 402 | $iFormatted = $wgLang->formatNum( $i ); |
403 | 403 | $legend .= '<span style="background-color:#' . $this->getActivityColour( $period - $i, $period ) . "\"> $iFormatted</span>"; |
404 | 404 | } |
Index: trunk/extensions/Translate/specials/SpecialTranslate.php |
— | — | @@ -45,7 +45,7 @@ |
46 | 46 | |
47 | 47 | $this->setHeaders(); |
48 | 48 | |
49 | | - //@todo Move to api or so |
| 49 | + // @todo Move to api or so |
50 | 50 | if ( $parameters === 'editpage' ) { |
51 | 51 | $editpage = TranslationEditPage::newFromRequest( $wgRequest ); |
52 | 52 | |
Index: trunk/extensions/Translate/specials/SpecialTranslationStats.php |
— | — | @@ -483,14 +483,14 @@ |
484 | 484 | /* Here we assume that week starts on monday, which does not |
485 | 485 | * always hold true. Go Xwards day by day until we are on monday */ |
486 | 486 | while ( date( 'D', $cutoff ) !== "Mon" ) { |
487 | | - $cutoff += $dir*86400; |
| 487 | + $cutoff += $dir * 86400; |
488 | 488 | } |
489 | 489 | // Round to nearest day |
490 | 490 | $cutoff -= ( $cutoff % 86400 ); |
491 | 491 | } elseif ( $scale === 'months' ) { |
492 | 492 | // Go Xwards/ day by day until we are on the first day of the month |
493 | 493 | while ( date( 'j', $cutoff ) !== "1" ) { |
494 | | - $cutoff += $dir*86400; |
| 494 | + $cutoff += $dir * 86400; |
495 | 495 | } |
496 | 496 | // Round to nearest day |
497 | 497 | $cutoff -= ( $cutoff % 86400 ); |
Index: trunk/extensions/Translate/resources/ext.translate.messagetable.js |
— | — | @@ -11,7 +11,7 @@ |
12 | 12 | $b.val( mw.msg( "translate-messagereview-done" ) ); |
13 | 13 | } |
14 | 14 | }; |
15 | | - |
| 15 | + |
16 | 16 | var params = { |
17 | 17 | action: "translationreview", |
18 | 18 | token: $b.data( "token" ), |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | $b.val( mw.msg( "translate-messagereview-progress" ) ); |
23 | 23 | $b.prop( "disabled", true ); |
24 | 24 | $.post( mw.util.wikiScript( "api" ), params, successFunction ); |
25 | | - |
| 25 | + |
26 | 26 | } ); |
27 | 27 | } ); |
28 | 28 | } ); |