diff --git a/admin-dev/themes/template/helper/options/options.tpl b/admin-dev/themes/template/helper/options/options.tpl
index c8c330e1f..efe8b945b 100644
--- a/admin-dev/themes/template/helper/options/options.tpl
+++ b/admin-dev/themes/template/helper/options/options.tpl
@@ -207,3 +207,4 @@
{/foreach}
+{block name="after"}{/block}
diff --git a/admin-dev/themes/template/localization/options.tpl b/admin-dev/themes/template/localization/options.tpl
new file mode 100644
index 000000000..66fc8879e
--- /dev/null
+++ b/admin-dev/themes/template/localization/options.tpl
@@ -0,0 +1,37 @@
+{extends file="helper/options/options.tpl"}
+{block name="after"}
+
+{if $localizations_pack}
+
{l s='Cannot connect to prestashop.com'}
+{/if} +{/block} diff --git a/admin-dev/tabs/AdminLocalization.php b/controllers/admin/AdminLocalizationController.php similarity index 63% rename from admin-dev/tabs/AdminLocalization.php rename to controllers/admin/AdminLocalizationController.php index cc1d409ce..493386c13 100644 --- a/admin-dev/tabs/AdminLocalization.php +++ b/controllers/admin/AdminLocalizationController.php @@ -25,9 +25,7 @@ * International Registered Trademark & Property of PrestaShop SA */ -include_once(_PS_ADMIN_DIR_.'/tabs/AdminPreferences.php'); - -class AdminLocalization extends AdminPreferences +class AdminLocalizationController extends AdminController { public function __construct() { @@ -36,7 +34,7 @@ class AdminLocalization extends AdminPreferences parent::__construct(); - $this->optionsList = array( + $this->options = array( 'localization' => array( 'title' => $this->l('Localization'), 'width' => 'width2', @@ -47,6 +45,7 @@ class AdminLocalization extends AdminPreferences 'PS_VOLUME_UNIT' => array('title' => $this->l('Volume unit:'), 'desc' => $this->l('The volume unit of your shop'), 'validation' => 'isWeightUnit', 'required' => true, 'type' => 'text'), 'PS_DIMENSION_UNIT' => array('title' => $this->l('Dimension unit:'), 'desc' => $this->l('The dimension unit of your shop (eg. cm or in)'), 'validation' => 'isDistanceUnit', 'required' => true, 'type' => 'text'), ), + 'submit' => array('title' => $this->l(' Save '), 'class' => 'button') ), 'options' => array( 'title' => $this->l('Advanced'), @@ -56,6 +55,7 @@ class AdminLocalization extends AdminPreferences 'PS_LOCALE_LANGUAGE' => array('title' => $this->l('Language locale:'), 'desc' => $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.'), 'validation' => 'isLanguageIsoCode', 'type' => 'text', 'visibility' => Shop::CONTEXT_ALL) ), + 'submit' => array('title' => $this->l(' Save '), 'class' => 'button') ), ); } @@ -87,46 +87,24 @@ class AdminLocalization extends AdminPreferences parent::postProcess(); } - public function display() + public function initContent() { - $this->displayOptionsList(); + $localizations_pack = false; + $this->tpl_option_vars['options_content'] = $this->initOptions(); - echo '