Index: trunk/extensions/Deployment/specials/SpecialUpdate.php |
— | — | @@ -90,7 +90,7 @@ |
91 | 91 | protected function showCoreStatus( $status ) { |
92 | 92 | global $wgOut, $wgVersion; |
93 | 93 | |
94 | | - if ( $status !== false ) { |
| 94 | + if ( $status === false ) { |
95 | 95 | $wgOut->addHTML( '<h3>' . wfMsg( 'mediawiki-up-to-date' ) . '</h3>' ); |
96 | 96 | $wgOut->addWikiMsg( 'mediawiki-up-to-date-long' ); |
97 | 97 | } |
— | — | @@ -110,9 +110,36 @@ |
111 | 111 | * @param $extensions Array: the extensions that have updates and their version numbers. |
112 | 112 | */ |
113 | 113 | protected function showExtensionStatuses( array $extensions ) { |
| 114 | + global $wgOut; |
| 115 | + |
| 116 | + $wgOut->addHTML( '<h3>' . wfMsg( 'special-update-extensions' ) . '</h3>' ); |
| 117 | + |
| 118 | + if ( count( $extensions ) > 0 ) { |
| 119 | + $wgOut->addWikiMsg( 'extensions-updates-available' ); |
| 120 | + |
| 121 | + // TODO |
| 122 | + |
| 123 | + foreach ( $extensions as $extension ) { |
| 124 | + $this->displayExtensionStatus( $extension ); |
| 125 | + } |
| 126 | + |
| 127 | + // TODO |
| 128 | + } |
| 129 | + else { |
| 130 | + $wgOut->addWikiMsg( 'extensions-up-to-date' ); |
| 131 | + } |
| 132 | + } |
| 133 | + |
| 134 | + /** |
| 135 | + * Displays a single row in the update list. |
| 136 | + * |
| 137 | + * @since 0.1 |
| 138 | + * |
| 139 | + * @param $extension Array |
| 140 | + */ |
| 141 | + protected function displayExtensionStatus( $extension ) { |
114 | 142 | global $wgOut, $wgExtensionCredits; |
115 | 143 | |
116 | | - //$wgOut->addHTML( var_dump($extensions) ); |
117 | 144 | // TODO |
118 | 145 | } |
119 | 146 | |
Index: trunk/extensions/Deployment/Deployment.i18n.php |
— | — | @@ -65,12 +65,15 @@ |
66 | 66 | |
67 | 67 | // Special:Update |
68 | 68 | 'mediawiki-up-to-date' => 'You have the latest version of MediaWiki installed.', |
69 | | - 'mediawiki-up-to-date-long' => 'You have the latest version of MediaWiki [[[Special:Version|installed]]. |
| 69 | + 'mediawiki-up-to-date-long' => 'You have the latest version of MediaWiki [[Special:Version|installed]]. |
70 | 70 | You do not need to update.', |
71 | 71 | 'mediawiki-update-available' => 'A new version of MediaWiki is available!', |
72 | 72 | 'mediawiki-update-available-long' => 'MediaWiki version $1 is available. |
73 | 73 | [$2 Update now] to keep your wiki secure and get the new features in this release.', |
74 | | - 'extensions-up-to-date' => 'Your extensions are all up to date.', |
| 74 | + 'extensions-up-to-date' => '[[Special:Extensions|Your extensions]] are all up to date.', |
| 75 | + 'extensions-updates-available' => 'The following extensions have new versions available. |
| 76 | +Check the ones you want to update and then click “Update Extensions”.', |
| 77 | + 'special-update-extensions' => 'Extensions', |
75 | 78 | |
76 | 79 | // Special:Install |
77 | 80 | 'extensions-description' => 'Extensions extend and expand the functionality of MediaWiki. |