Index: trunk/extensions/UploadWizard/includes/UploadWizardCampaign.php |
— | — | @@ -150,19 +150,20 @@ |
151 | 151 | * @return array |
152 | 152 | */ |
153 | 153 | public static function getConfigTypes() { |
| 154 | + $globalConfig = UploadWizardConfig::getConfig(); |
| 155 | + |
154 | 156 | $config = array( |
155 | 157 | 'skipTutorial' => array( |
156 | 158 | 'type' => 'check' |
157 | 159 | ), |
158 | | - 'autoCategories' => array( |
159 | | - 'type' => 'text' |
| 160 | + 'tutorialTemplate' => array( |
| 161 | + 'type' => 'text', |
160 | 162 | ), |
161 | | - 'defaultCategories' => array( |
162 | | - 'type' => 'text' |
| 163 | + 'tutorialWidth' => array( |
| 164 | + 'type' => 'int', |
163 | 165 | ), |
164 | | - 'autoWikiText' => array( |
165 | | - 'type' => 'textarea', |
166 | | - 'rows' => 4 |
| 166 | + 'tutorialHelpdeskCoords' => array( |
| 167 | + 'type' => 'text', |
167 | 168 | ), |
168 | 169 | 'ownWorkOption' => array( |
169 | 170 | 'type' => 'radio', |
— | — | @@ -172,16 +173,23 @@ |
173 | 174 | wfMsg( 'mwe-upwiz-campaign-owner-notown' ) => 'notown' |
174 | 175 | ) |
175 | 176 | ), |
| 177 | + 'licensesOwnWork' => array( |
| 178 | + 'type' => 'multiselect', |
| 179 | + 'options' => array(), |
| 180 | + 'default' => $globalConfig['licensesOwnWork']['licenses'] |
| 181 | + ), |
| 182 | + 'defaultCategories' => array( |
| 183 | + 'type' => 'text' |
| 184 | + ), |
| 185 | + 'autoCategories' => array( |
| 186 | + 'type' => 'text' |
| 187 | + ), |
| 188 | + 'autoWikiText' => array( |
| 189 | + 'type' => 'textarea', |
| 190 | + 'rows' => 4 |
| 191 | + ), |
176 | 192 | ); |
177 | 193 | |
178 | | - $globalConfig = UploadWizardConfig::getConfig(); |
179 | | - |
180 | | - $config['licensesOwnWork'] = array( |
181 | | - 'type' => 'multiselect', |
182 | | - 'options' => array(), |
183 | | - 'default' => $globalConfig['licensesOwnWork']['licenses'] |
184 | | - ); |
185 | | - |
186 | 194 | foreach ( $globalConfig['licensesOwnWork']['licenses'] as $license ) { |
187 | 195 | $licenceMsg = wfMsg( $globalConfig['licenses'][$license]['msg'] ); |
188 | 196 | $config['licensesOwnWork']['options'][$licenceMsg] = $license; |
Index: trunk/extensions/UploadWizard/UploadWizard.i18n.php |
— | — | @@ -307,6 +307,10 @@ |
308 | 308 | 'mwe-upwiz-campaign-owner-own' => 'Only allow for own work uploads', |
309 | 309 | 'mwe-upwiz-campaign-owner-notown' => 'Only allow for non-own work uploads', |
310 | 310 | 'mwe-upwiz-campaign-conf-licensesOwnWork' => 'The licences that should be choosable for own-work', |
| 311 | + 'mwe-upwiz-campaign-conf-tutorialTemplate' => 'Name of the tutorial on Wikimedia Commons. The $1 is replaced with the language', |
| 312 | + 'mwe-upwiz-campaign-conf-tutorialWidth' => 'The width to scale the tutorial to', |
| 313 | + 'mwe-upwiz-campaign-conf-tutorialHelpdeskCoords' => 'Imagemap coordinates of the tutorial "helpdesk" button', |
| 314 | + |
311 | 315 | |
312 | 316 | // Coolcats |
313 | 317 | 'mw-coolcats-confirm-new-title' => 'Confirm new category', |