Changeset 3874:ab8368569446 for admin/langs.php
- Timestamp:
- 09/14/18 12:16:17 (7 years ago)
- Branch:
- default
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
admin/langs.php
r3731 r3874 158 158 dcPage::jsLoad('js/_langs.js'), 159 159 dcPage::breadcrumb( 160 array(160 [ 161 161 __('System') => '', 162 162 __('Languages management') => '' 163 ))163 ]) 164 164 ); 165 165 … … 183 183 184 184 $locales_content = scandir(DC_L10N_ROOT); 185 $tmp = array();185 $tmp = []; 186 186 foreach ($locales_content as $v) { 187 187 $c = ($v == '.' || $v == '..' || $v == 'en' || !is_dir(DC_L10N_ROOT . '/' . $v) || !isset($iso_codes[$v])); … … 217 217 '<div>' . 218 218 $core->formNonce() . 219 form::hidden( array('locale_id'), html::escapeHTML($k)) .219 form::hidden(['locale_id'], html::escapeHTML($k)) . 220 220 '<input type="submit" class="delete" name="delete" value="' . __('Delete') . '" /> ' . 221 221 '</div>' . … … 236 236 237 237 if (!empty($dc_langs) && $is_writable) { 238 $dc_langs_combo = array();238 $dc_langs_combo = []; 239 239 foreach ($dc_langs as $k => $v) { 240 240 if ($v->link && isset($iso_codes[$v->title])) { … … 249 249 'Proposed languages are based on your version: %s.'), '<strong>' . DC_VERSION . '</strong>') . '</p>' . 250 250 '<p class="field"><label for="pkg_url" class="classic">' . __('Language:') . '</label> ' . 251 form::combo( array('pkg_url'), $dc_langs_combo) . '</p>' .251 form::combo(['pkg_url'], $dc_langs_combo) . '</p>' . 252 252 '<p class="field"><label for="your_pwd1" class="classic required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Your password:') . '</label> ' . 253 form::password( array('your_pwd', 'your_pwd1'), 20, 255,254 array(253 form::password(['your_pwd', 'your_pwd1'], 20, 255, 254 [ 255 255 'extra_html' => 'required placeholder="' . __('Password') . '"', 256 'autocomplete' => 'current-password' )256 'autocomplete' => 'current-password'] 257 257 ) . '</p>' . 258 258 '<p><input type="submit" value="' . __('Install language') . '" />' . … … 271 271 '<input type="file" id="pkg_file" name="pkg_file" required /></p>' . 272 272 '<p class="field"><label for="your_pwd2" class="classic required"><abbr title="' . __('Required field') . '">*</abbr> ' . __('Your password:') . '</label> ' . 273 form::password( array('your_pwd', 'your_pwd2'), 20, 255,274 array(273 form::password(['your_pwd', 'your_pwd2'], 20, 255, 274 [ 275 275 'extra_html' => 'required placeholder="' . __('Password') . '"', 276 'autocomplete' => 'current-password' )276 'autocomplete' => 'current-password'] 277 277 ) . '</p>' . 278 278 '<p><input type="submit" name="upload_pkg" value="' . __('Upload language') . '" />' .
Note: See TracChangeset
for help on using the changeset viewer.