// AdminTranslations: fix toolbar and remove google translate

This commit is contained in:
tDidierjean
2011-12-20 16:48:05 +00:00
parent 54c9cba6ba
commit 43b9746300
5 changed files with 16 additions and 25 deletions
@@ -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();