diff --git a/admin-dev/themes/template/translations/translation_errors.tpl b/admin-dev/themes/template/translations/translation_errors.tpl
index ca44e5ed4..1d1af5920 100644
--- a/admin-dev/themes/template/translations/translation_errors.tpl
+++ b/admin-dev/themes/template/translations/translation_errors.tpl
@@ -32,10 +32,10 @@
{l s='Errors to translate'} : {$count}
{$limit_warning}
{if !$suoshin_exceeded}
-
{/if}
diff --git a/admin-dev/themes/template/translations/translation_form.tpl b/admin-dev/themes/template/translations/translation_form.tpl
index adffbdfe9..9d0d58a86 100644
--- a/admin-dev/themes/template/translations/translation_form.tpl
+++ b/admin-dev/themes/template/translations/translation_form.tpl
@@ -33,11 +33,11 @@
{l s='total missing expresssions:'} {$missing_translations|array_sum}
{$limit_warning}
{if !$suoshin_exceeded}
-
{/if}
{/block}
\ No newline at end of file
diff --git a/admin-dev/themes/template/translations/translation_mails.tpl b/admin-dev/themes/template/translations/translation_mails.tpl
index 9baf80b68..891865303 100644
--- a/admin-dev/themes/template/translations/translation_mails.tpl
+++ b/admin-dev/themes/template/translations/translation_mails.tpl
@@ -33,12 +33,12 @@
{l s='Language'} : {$lang} - {$translation_type}
{l s='Click on the titles to open fieldsets'}.
{if !$suoshin_exceeded}
-
{/if}
diff --git a/admin-dev/themes/template/translations/translation_modules.tpl b/admin-dev/themes/template/translations/translation_modules.tpl
index d121f22ed..5f3e012c9 100644
--- a/admin-dev/themes/template/translations/translation_modules.tpl
+++ b/admin-dev/themes/template/translations/translation_modules.tpl
@@ -32,11 +32,11 @@
{l s='Expressions to translate'} : {$count}. {l s='Click on the titles to open fieldsets'}.
{$limit_warning}
{if !$suoshin_exceeded}
-
{/if}
{/block}
\ No newline at end of file
diff --git a/controllers/admin/AdminTranslationsController.php b/controllers/admin/AdminTranslationsController.php
index b016c9a6d..f6db168c7 100644
--- a/controllers/admin/AdminTranslationsController.php
+++ b/controllers/admin/AdminTranslationsController.php
@@ -48,6 +48,7 @@ class AdminTranslationsControllerCore extends AdminController
{
parent::__construct();
+ $this->table = 'translations';
include_once(_PS_ADMIN_DIR_.'/../tools/tar/Archive_Tar.php');
include_once(_PS_ADMIN_DIR_.'/../tools/pear/PEAR.php');
@@ -68,17 +69,14 @@ class AdminTranslationsControllerCore extends AdminController
public function initToolbar()
{
- $this->toolbar_btn = array();
-/*
$this->toolbar_btn['save'] = array(
- 'href' => self::$currentIndex.'&token='.$this->token,
+ 'href' => '#',
'desc' => $this->l('Update translations')
);
$this->toolbar_btn['cancel'] = array(
'href' => self::$currentIndex.'&token='.$this->token,
'desc' => $this->l('Cancel')
);
-*/
}
public function initMain()
@@ -896,7 +894,7 @@ class AdminTranslationsControllerCore extends AdminController
);
// Add js variables needed for autotranslate
- $this->tpl_view_vars = array_merge($this->tpl_view_vars, $this->initAutoTranslate());
+ //$this->tpl_view_vars = array_merge($this->tpl_view_vars, $this->initAutoTranslate());
$this->initToolbar();
$this->base_tpl_view = 'translation_form.tpl';
@@ -906,7 +904,6 @@ class AdminTranslationsControllerCore extends AdminController
public function initFormBack($lang)
{
$_LANGADM = $this->fileExists(_PS_TRANSLATIONS_DIR_.$lang, 'admin.php', '_LANGADM');
- $str_output = '';
// count will contain the number of expressions of the page
$count = 0;
$missing_translations = array();