From 4a2eb4e8282723f29a0a4ec4ec42e9c4c6087acc Mon Sep 17 00:00:00 2001 From: lLefevre Date: Tue, 12 Jun 2012 15:11:24 +0000 Subject: [PATCH] [*] BO : export name tabs by ISO code : check name of tab --- controllers/admin/AdminTranslationsController.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminTranslationsController.php b/controllers/admin/AdminTranslationsController.php index 97f478e96..0c96033a5 100644 --- a/controllers/admin/AdminTranslationsController.php +++ b/controllers/admin/AdminTranslationsController.php @@ -363,13 +363,22 @@ class AdminTranslationsControllerCore extends AdminController public function exportTabs() { - // Get tabs by iso code + // Get name tabs by iso code $tabs = Tab::getTabs($this->lang_selected->id); + // Get name of the default tabs + $id_lang_default = Configuration::get('PS_LANG_DEFAULT', null, (int)$this->context->shop->id_shop_group, (int)$this->context->shop->id); + $tabs_default_lang = Tab::getTabs($id_lang_default); + + $tabs_default = array(); + foreach ($tabs_default_lang as $tab) + $tabs_default[$tab['class_name']] = utf8_decode($tab['name']); + // Create content $content = "