// AdminTranslations: fix toolbar and remove google translate
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11429 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -32,10 +32,10 @@
|
||||
{l s='Errors to translate'} : <b>{$count}</b>
|
||||
{$limit_warning}
|
||||
{if !$suoshin_exceeded}
|
||||
<form method="post" action="{$url_submit}" class="form">
|
||||
{$auto_translate}
|
||||
<form method="post" id="{$table}_form" action="{$url_submit}" class="form">
|
||||
{*{$auto_translate}$*}
|
||||
<input type="hidden" name="lang" value="{$lang}" />
|
||||
<input type="submit" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
<input type="submit" id="{$table}_form_submit_btn" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
<br /><br />
|
||||
<table cellpadding="0" cellspacing="0" class="table">
|
||||
{foreach $errorsArray as $key => $value}
|
||||
@@ -44,8 +44,7 @@
|
||||
<td style="width: 430px">= <input type="text" name="{$key|md5}" value="{$value|regex_replace:'#"#':'"'|stripslashes}" style="width: 380px"></td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</table><br />
|
||||
<input type="submit" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
</table>
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -33,11 +33,11 @@
|
||||
<p>{l s='total missing expresssions:'} {$missing_translations|array_sum} </p>
|
||||
{$limit_warning}
|
||||
{if !$suoshin_exceeded}
|
||||
<form method="post" action="{$url_submit}" class="form">
|
||||
<form method="post" id="{$table}_form" action="{$url_submit}" class="form">
|
||||
{$toggle_button}
|
||||
{include file="translations/auto_translate.tpl"}
|
||||
{*{include file="translations/auto_translate.tpl"}*}
|
||||
<input type="hidden" name="lang" value="{$lang}" />
|
||||
<input type="submit" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
<input type="submit" id="{$table}_form_submit_btn" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
<br /><br />
|
||||
{foreach $tabsArray as $k => $newLang}
|
||||
{if !empty($newLang)}
|
||||
@@ -71,7 +71,6 @@
|
||||
</fieldset><br />
|
||||
{/if}
|
||||
{/foreach}
|
||||
<br /><input type="submit" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" /></form>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
@@ -33,12 +33,12 @@
|
||||
<h2>{l s='Language'} : {$lang} - {$translation_type}</h2>
|
||||
{l s='Click on the titles to open fieldsets'}.<br /><br />
|
||||
{if !$suoshin_exceeded}
|
||||
<form method="post" action="{$url_submit}" class="form">
|
||||
<form method="post" id="{$table}_form" action="{$url_submit}" class="form">
|
||||
{$toggle_button}
|
||||
<input type="hidden" name="lang" value="{$lang}" />
|
||||
<input type="hidden" name="type" value="{$type}" />
|
||||
<input type="submit" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
<input type="submit" name="submitTranslations{$type|ucfirst}AndStay" value="{l s='Update and stay'}" class="button" />
|
||||
<input type="submit" id="{$table}_form_submit_btn" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
{*<input type="submit" name="submitTranslations{$type|ucfirst}AndStay" value="{l s='Update and stay'}" class="button" />*}
|
||||
<br /><br />
|
||||
|
||||
{l s='Core e-mails:'}
|
||||
@@ -60,9 +60,6 @@
|
||||
{$mails['display']}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<br />
|
||||
<input type="submit" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
<input type="submit" name="submitTranslations{$type|ucfirst}AndStay" value="{l s='Update and stay'}" class="button" />
|
||||
</form>
|
||||
{/if}
|
||||
|
||||
|
||||
@@ -32,11 +32,11 @@
|
||||
{l s='Expressions to translate'} : <b>{$count}</b>. {l s='Click on the titles to open fieldsets'}.<br /><br />
|
||||
{$limit_warning}
|
||||
{if !$suoshin_exceeded}
|
||||
<form method="post" action="{$url_submit}" class="form">
|
||||
<form method="post" id="{$table}_form" action="{$url_submit}" class="form">
|
||||
{$toggle_button}
|
||||
{include file="translations/auto_translate.tpl"}
|
||||
{*{include file="translations/auto_translate.tpl"}*}
|
||||
<input type="hidden" name="lang" value="{$lang}" />
|
||||
<input type="submit" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
<input type="submit" id="{$table}_form_submit_btn" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
<br /><br />
|
||||
|
||||
{if count($modules_translations) > 1}
|
||||
@@ -92,7 +92,6 @@
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
{/foreach}
|
||||
<br /><input type="submit" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" /></form>
|
||||
{/if}
|
||||
|
||||
{/block}
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user