[*] Installer : replaced radio buttons by a select for the installer language list (too many languages)
This commit is contained in:
@@ -19,22 +19,14 @@
|
||||
|
||||
<!-- List of languages -->
|
||||
<?php if (count($this->language->getIsoList()) > 1): ?>
|
||||
<h2><?php echo $this->l('Continue the installation in:') ?></h2>
|
||||
<ul id="langList" style="line-height: 20px;">
|
||||
<h3><?php echo $this->l('Continue the installation in:') ?></h3>
|
||||
<select id="langList" name="language">
|
||||
<?php foreach ($this->language->getIsoList() as $iso): ?>
|
||||
<li>
|
||||
<label>
|
||||
<input type="radio" value="<?php echo $iso ?>" <?php echo ($iso == $this->language->getLanguageIso()) ? 'checked="checked"' : '' ?> name="language" style="vertical-align: middle; margin-right: 0;" />
|
||||
<?php if (file_exists(_PS_INSTALL_LANGS_PATH_.$iso.'/flag.jpg')): ?>
|
||||
<img src="langs/<?php echo $iso ?>/flag.jpg" alt="<?php echo $iso ?>" style="vertical-align: middle;" />
|
||||
<?php else: ?>
|
||||
<img src="theme/img/noflag.jpg" alt="<?php echo $iso ?>" style="vertical-align: middle;" />
|
||||
<?php endif; ?>
|
||||
<?php echo $this->language->getLanguage($iso)->getMetaInformation('name') ?>
|
||||
</label>
|
||||
</li>
|
||||
<option value="<?php echo $iso ?>" <?php if ($iso == $this->language->getLanguageIso()) echo 'selected="selected"' ?>>
|
||||
<?php echo $this->language->getLanguage($iso)->getMetaInformation('name') ?>
|
||||
</option>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</select>
|
||||
<?php endif; ?>
|
||||
|
||||
<p><?php echo $this->l('The language selection above only applies to the Installation Assistant. Once your store is installed, you can choose the language of your store from over %d translations, all for free!', 55); ?> </p>
|
||||
|
||||
Reference in New Issue
Block a user