// update localization tab
This commit is contained in:
@@ -28,6 +28,7 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
$this->bootstrap = true;
|
||||
$this->className = 'Configuration';
|
||||
$this->table = 'configuration';
|
||||
|
||||
@@ -39,7 +40,7 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
'fields' => array(
|
||||
'PS_LANG_DEFAULT' => array(
|
||||
'title' => $this->l('Default language:'),
|
||||
'desc' => $this->l('The default language used in your shop'),
|
||||
'hint' => $this->l('The default language used in your shop'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'select',
|
||||
'identifier' => 'id_lang',
|
||||
@@ -47,7 +48,7 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
),
|
||||
'PS_COUNTRY_DEFAULT' => array(
|
||||
'title' => $this->l('Default country:'),
|
||||
'desc' => $this->l('The default country used in your shop'),
|
||||
'hint' => $this->l('The default country used in your shop'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'select',
|
||||
'identifier' => 'id_country',
|
||||
@@ -55,11 +56,8 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
),
|
||||
'PS_CURRENCY_DEFAULT' => array(
|
||||
'title' => $this->l('Default currency:'),
|
||||
'desc' =>
|
||||
$this->l('The default currency used in your shop')
|
||||
.'<div class="warn">'
|
||||
.$this->l('If you change the default currency, you will have to manually edit every product price.')
|
||||
.'</div>',
|
||||
'hint' =>
|
||||
$this->l('The default currency used in your shop').' - '.$this->l('If you change the default currency, you will have to manually edit every product price.'),
|
||||
'cast' => 'intval',
|
||||
'type' => 'select',
|
||||
'identifier' => 'id_currency',
|
||||
@@ -70,61 +68,59 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
),
|
||||
'localization' => array(
|
||||
'title' => $this->l('Localization'),
|
||||
'width' => 'width2',
|
||||
'icon' => 'localization',
|
||||
'fields' => array(
|
||||
'PS_WEIGHT_UNIT' => array(
|
||||
'title' => $this->l('Weight unit:'),
|
||||
'desc' => $this->l('The default weight unit for your shop (e.g. kg or lbs)'),
|
||||
'hint' => $this->l('The default weight unit for your shop (e.g. kg or lbs)'),
|
||||
'validation' => 'isWeightUnit',
|
||||
'required' => true,
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_DISTANCE_UNIT' => array(
|
||||
'title' => $this->l('Distance unit:'),
|
||||
'desc' => $this->l('The default distance unit for your shop (e.g. km or mi)'),
|
||||
'hint' => $this->l('The default distance unit for your shop (e.g. km or mi)'),
|
||||
'validation' => 'isDistanceUnit',
|
||||
'required' => true,
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_VOLUME_UNIT' => array(
|
||||
'title' => $this->l('Volume unit:'),
|
||||
'desc' => $this->l('The default volume unit for your shop'),
|
||||
'hint' => $this->l('The default volume unit for your shop'),
|
||||
'validation' => 'isWeightUnit',
|
||||
'required' => true,
|
||||
'type' => 'text'
|
||||
),
|
||||
'PS_DIMENSION_UNIT' => array(
|
||||
'title' => $this->l('Dimension unit:'),
|
||||
'desc' => $this->l('The default dimension unit for your shop (e.g. cm or in)'),
|
||||
'hint' => $this->l('The default dimension unit for your shop (e.g. cm or in)'),
|
||||
'validation' => 'isDistanceUnit',
|
||||
'required' => true,
|
||||
'type' => 'text'
|
||||
)
|
||||
),
|
||||
'submit' => array('title' => $this->l('Save'), 'class' => 'button')
|
||||
'submit' => array('title' => $this->l('Save'), 'class' => 'btn btn-primary')
|
||||
),
|
||||
'options' => array(
|
||||
'title' => $this->l('Advanced'),
|
||||
'width' => 'width2',
|
||||
'icon' => 'localization',
|
||||
'fields' => array(
|
||||
'PS_LOCALE_LANGUAGE' => array(
|
||||
'title' => $this->l('Language locale:'),
|
||||
'desc' => $this->l('Your server\'s language locale.'),
|
||||
'hint' => $this->l('Your server\'s language locale.'),
|
||||
'validation' => 'isLanguageIsoCode',
|
||||
'type' => 'text',
|
||||
'visibility' => Shop::CONTEXT_ALL
|
||||
),
|
||||
'PS_LOCALE_COUNTRY' => array(
|
||||
'title' => $this->l('Country locale:'),
|
||||
'desc' => $this->l('Your server\'s country locale.'),
|
||||
'hint' => $this->l('Your server\'s country locale.'),
|
||||
'validation' => 'isLanguageIsoCode',
|
||||
'type' => 'text',
|
||||
'visibility' => Shop::CONTEXT_ALL
|
||||
)
|
||||
),
|
||||
'submit' => array('title' => $this->l('Save'), 'class' => 'button')
|
||||
'submit' => array('title' => $this->l('Save'), 'class' => 'btn btn-primary')
|
||||
)
|
||||
);
|
||||
|
||||
@@ -244,7 +240,7 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
'tinymce' => true,
|
||||
'legend' => array(
|
||||
'title' => $this->l('Import a localization pack'),
|
||||
'image' => '../img/admin/localization.gif'
|
||||
'icon' => 'icon-globe'
|
||||
),
|
||||
'input' => array(
|
||||
array(
|
||||
@@ -271,7 +267,7 @@ class AdminLocalizationControllerCore extends AdminController
|
||||
),
|
||||
'submit' => array(
|
||||
'title' => $this->l('Import '),
|
||||
'class' => 'button',
|
||||
'class' => 'btn btn-default',
|
||||
'name' => 'submitLocalizationPack'
|
||||
)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user