// Fix update english key of translations in all files
This commit is contained in:
@@ -561,7 +561,7 @@ class BlockLayered extends Module
|
||||
foreach ($result as $data)
|
||||
$lang_value[$data['id_lang']] = array('url_name' => $data['url_name'], 'meta_title' => $data['meta_title']);
|
||||
$return .= '<div class="clear"></div>
|
||||
<label>'.$this->l('Url:').'</label>
|
||||
<label>'.$this->l('URL:').'</label>
|
||||
<div class="margin-form">
|
||||
<script type="text/javascript">
|
||||
flag_fields += \'¤url_name¤meta_title\';
|
||||
@@ -572,7 +572,7 @@ class BlockLayered extends Module
|
||||
<div id="url_name_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $default_form_language ? 'block' : 'none').'; float: left;">
|
||||
<input size="33" type="text" name="url_name_'.$language['id_lang'].'" value="'.Tools::safeOutput(@$lang_value[$language['id_lang']]['url_name'], true).'" />
|
||||
<span class="hint" name="help_box">'.$this->l('Invalid characters:').' <>;=#{}_<span class="hint-pointer"> </span></span>
|
||||
<p style="clear: both">'.$this->l('Specific format in url block layered generation').'</p>
|
||||
<p style="clear: both">'.$this->l('Specific URL format in block layered generation').'</p>
|
||||
</div>';
|
||||
if (version_compare(_PS_VERSION_,'1.5','<'))
|
||||
$return .= $this->displayFlags($languages, $default_form_language, 'flag_fields', 'url_name', true, true);
|
||||
@@ -648,7 +648,7 @@ class BlockLayered extends Module
|
||||
foreach ($result as $data)
|
||||
$lang_value[$data['id_lang']] = array('url_name' => $data['url_name'], 'meta_title' => $data['meta_title']);
|
||||
$return .= '<div class="clear"></div>
|
||||
<label>'.$this->l('Url:').'</label>
|
||||
<label>'.$this->l('URL:').'</label>
|
||||
<div class="margin-form">
|
||||
<script type="text/javascript">
|
||||
flag_fields += \'¤url_name¤meta_title\';
|
||||
@@ -659,7 +659,7 @@ class BlockLayered extends Module
|
||||
<div id="url_name_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $default_form_language ? 'block' : 'none').'; float: left;">
|
||||
<input size="33" type="text" name="url_name_'.$language['id_lang'].'" value="'.Tools::safeOutput(@$lang_value[$language['id_lang']]['url_name'], true).'" />
|
||||
<span class="hint" name="help_box">'.$this->l('Invalid characters:').' <>;=#{}_<span class="hint-pointer"> </span></span>
|
||||
<p style="clear: both">'.$this->l('Specific format in url block layered generation').'</p>
|
||||
<p style="clear: both">'.$this->l('Specific URL format in block layered generation').'</p>
|
||||
</div>';
|
||||
if (version_compare(_PS_VERSION_,'1.5','<'))
|
||||
$return .= $this->displayFlags($languages, $default_form_language, 'flag_fields', 'url_name', true, true);
|
||||
@@ -775,7 +775,7 @@ class BlockLayered extends Module
|
||||
$return = '';
|
||||
|
||||
$return .= '<div class="clear"></div>
|
||||
<label>'.$this->l('Url:').'</label>
|
||||
<label>'.$this->l('URL:').'</label>
|
||||
<div class="margin-form">
|
||||
<script type="text/javascript">
|
||||
flag_fields += \'¤url_name¤meta_title\';
|
||||
@@ -786,7 +786,7 @@ class BlockLayered extends Module
|
||||
<div id="url_name_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $default_form_language ? 'block' : 'none').'; float: left;">
|
||||
<input size="33" type="text" name="url_name_'.$language['id_lang'].'" value="'.Tools::safeOutput(@$lang_value[$language['id_lang']]['url_name'], true).'" />
|
||||
<span class="hint" name="help_box">'.$this->l('Invalid characters:').' <>;=#{}_<span class="hint-pointer"> </span></span>
|
||||
<p style="clear: both">'.$this->l('Specific format in url block layered generation').'</p>
|
||||
<p style="clear: both">'.$this->l('Specific URL format in block layered generation').'</p>
|
||||
</div>';
|
||||
if (version_compare(_PS_VERSION_,'1.5','<'))
|
||||
$return .= $this->displayFlags($languages, $default_form_language, 'flag_fields', 'url_name', true, true);
|
||||
@@ -815,7 +815,7 @@ class BlockLayered extends Module
|
||||
<label for="indexable_on" class="t"><img title="Yes" alt="Enabled" src="../img/admin/enabled.gif"></label>
|
||||
<input type="radio" '.((!$on) ? 'checked="checked"' : '').' value="0" id="indexable_off" name="layered_indexable">
|
||||
<label for="indexable_off" class="t"><img title="No" alt="Disabled" src="../img/admin/disabled.gif"></label>
|
||||
<p>'.$this->l('Use this attribute in url generated by the module block layered navigation').'</p>
|
||||
<p>'.$this->l('Use this attribute in URL generated by the layered navigation module').'</p>
|
||||
</div>';
|
||||
return $return;
|
||||
}
|
||||
@@ -849,7 +849,7 @@ class BlockLayered extends Module
|
||||
$return = '';
|
||||
|
||||
$return .= '<div class="clear"></div>
|
||||
<label>'.$this->l('Url:').'</label>
|
||||
<label>'.$this->l('URL:').'</label>
|
||||
<div class="margin-form">
|
||||
<script type="text/javascript">
|
||||
flag_fields += \'¤url_name¤meta_title\';
|
||||
@@ -860,7 +860,7 @@ class BlockLayered extends Module
|
||||
<div id="url_name_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $default_form_language ? 'block' : 'none').'; float: left;">
|
||||
<input size="33" type="text" name="url_name_'.$language['id_lang'].'" value="'.Tools::safeOutput(@$lang_value[$language['id_lang']]['url_name'], true).'" />
|
||||
<span class="hint" name="help_box">'.$this->l('Invalid characters:').' <>;=#{}_<span class="hint-pointer"> </span></span>
|
||||
<p style="clear: both">'.$this->l('Specific format in url block layered generation').'</p>
|
||||
<p style="clear: both">'.$this->l('Specific URL format in block layered generation').'</p>
|
||||
</div>';
|
||||
if (version_compare(_PS_VERSION_,'1.5','<'))
|
||||
$return .= $this->displayFlags($languages, $default_form_language, 'flag_fields', 'url_name', true, true);
|
||||
@@ -889,7 +889,7 @@ class BlockLayered extends Module
|
||||
<label for="indexable_on" class="t"><img title="Yes" alt="Enabled" src="../img/admin/enabled.gif"></label>
|
||||
<input type="radio" '.((!$on) ? 'checked="checked"' : '').' value="0" id="indexable_off" name="layered_indexable">
|
||||
<label for="indexable_off" class="t"><img title="No" alt="Disabled" src="../img/admin/disabled.gif"></label>
|
||||
<p>'.$this->l('Use this attribute in url generated by the module block layered navigation').'</p>
|
||||
<p>'.$this->l('Use this attribute in URL generated by the layered navigation module').'</p>
|
||||
</div>';
|
||||
return $return;
|
||||
}
|
||||
@@ -1448,14 +1448,14 @@ class BlockLayered extends Module
|
||||
|
||||
$html .= '
|
||||
<div class="conf">'.(version_compare(_PS_VERSION_,'1.5','>') ? '' : '<img src="../img/admin/ok2.png" alt="" />').'
|
||||
'.$this->l('Filters template deleted, categories updated (reverted to default Filters template).').'
|
||||
'.$this->l('Filter template deleted, categories updated (reverted to default Filter template).').'
|
||||
</div>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$html .= '
|
||||
<div class="error">
|
||||
<img src="../img/admin/error.png" alt="" title="" /> '.$this->l('Filters template not found').'
|
||||
<img src="../img/admin/error.png" alt="" title="" /> '.$this->l('Filter template not found').'
|
||||
</div>';
|
||||
}
|
||||
}
|
||||
@@ -1470,7 +1470,7 @@ class BlockLayered extends Module
|
||||
<h2>'.$this->l('Layered navigation').'</h2>
|
||||
<fieldset class="width4">
|
||||
<legend><img src="../img/admin/cog.gif" alt="" />'.$this->l('Indexes and caches').'</legend>
|
||||
<span id="indexing-warning" style="display: none; color:red; font-weight: bold">'.$this->l('Indexing are in progress. Please don\'t leave this page').'<br/><br/></span>';
|
||||
<span id="indexing-warning" style="display: none; color:red; font-weight: bold">'.$this->l('Indexing is in progress. Please do not leave this page').'<br/><br/></span>';
|
||||
|
||||
if (version_compare(_PS_VERSION_,'1.5','<') &&!Configuration::get('PS_LAYERED_INDEXED')
|
||||
|| version_compare(_PS_VERSION_,'1.5','>') && !Configuration::getGlobalValue('PS_LAYERED_INDEXED'))
|
||||
@@ -1501,7 +1501,7 @@ class BlockLayered extends Module
|
||||
<a class="bold ajaxcall-recurcive"
|
||||
style="width: 250px; text-align:center;display:block;border:1px solid #aaa;text-decoration:none;background-color:#fafafa;color:#123456;margin:2px;padding:2px" id="full-index"
|
||||
href="'.$domain.__PS_BASE_URI__.'modules/blocklayered/blocklayered-price-indexer.php'.'?token='.substr(Tools::encrypt('blocklayered/index'), 0, 10).'&full=1">'.
|
||||
$this->l('Re-build entire price index').'</a>
|
||||
$this->l('Rebuild entire price index').'</a>
|
||||
<br />
|
||||
<a class="bold ajaxcall" id="attribute-indexer" rel="attribute"
|
||||
style="width: 250px; text-align:center;display:block;border:1px solid #aaa;text-decoration:none;background-color:#fafafa;color:#123456;margin:2px;padding:2px" id="full-index"
|
||||
@@ -1511,16 +1511,16 @@ class BlockLayered extends Module
|
||||
<a class="bold ajaxcall" id="url-indexer" rel="price"
|
||||
style="width: 250px; text-align:center;display:block;border:1px solid #aaa;text-decoration:none;background-color:#fafafa;color:#123456;margin:2px;padding:2px" id="full-index"
|
||||
href="'.$domain.__PS_BASE_URI__.'modules/blocklayered/blocklayered-url-indexer.php'.'?token='.substr(Tools::encrypt('blocklayered/index'), 0, 10).'&truncate=1">'.
|
||||
$this->l('Build url index').'</a>
|
||||
$this->l('Build URL index').'</a>
|
||||
<br />
|
||||
<br />
|
||||
'.$this->l('You can set a cron job that will re-build price index using the following URL:').'<br /><b>'.
|
||||
'.$this->l('You can set a cron job that will rebuild price index using the following URL:').'<br /><b>'.
|
||||
$domain.__PS_BASE_URI__.'modules/blocklayered/blocklayered-price-indexer.php'.'?token='.substr(Tools::encrypt('blocklayered/index'), 0, 10).'&full=1</b>
|
||||
<br />
|
||||
'.$this->l('You can set a cron job that will re-build url index using the following URL:').'<br /><b>'.
|
||||
'.$this->l('You can set a cron job that will rebuild URL index using the following URL:').'<br /><b>'.
|
||||
$domain.__PS_BASE_URI__.'modules/blocklayered/blocklayered-url-indexer.php'.'?token='.substr(Tools::encrypt('blocklayered/index'), 0, 10).'&truncate=1</b>
|
||||
<br />
|
||||
'.$this->l('You can set a cron job that will re-build attribute index using the following URL:').'<br /><b>'.
|
||||
'.$this->l('You can set a cron job that will rebuild attribute index using the following URL:').'<br /><b>'.
|
||||
$domain.__PS_BASE_URI__.'modules/blocklayered/blocklayered-attribute-indexer.php'.'?token='.substr(Tools::encrypt('blocklayered/index'), 0, 10).'</b>
|
||||
<br /><br />
|
||||
'.$this->l('A nightly rebuild is recommended.').'
|
||||
@@ -1560,7 +1560,7 @@ class BlockLayered extends Module
|
||||
$(\'#indexing-warning\').hide();
|
||||
$(this).html(this.legend);
|
||||
if (type == \'price\')
|
||||
$(\'#ajax-message-ok span\').html(\''.addslashes($this->l('Url indexation finished')).'\');
|
||||
$(\'#ajax-message-ok span\').html(\''.addslashes($this->l('URL indexation finished')).'\');
|
||||
else
|
||||
$(\'#ajax-message-ok span\').html(\''.addslashes($this->l('Attribute indexation finished')).'\');
|
||||
$(\'#ajax-message-ok\').show();
|
||||
@@ -1571,7 +1571,7 @@ class BlockLayered extends Module
|
||||
this.restartAllowed = true;
|
||||
$(\'#indexing-warning\').hide();
|
||||
if (type == \'price\')
|
||||
$(\'#ajax-message-ko span\').html(\''.addslashes($this->l('Url indexation failed')).'\');
|
||||
$(\'#ajax-message-ko span\').html(\''.addslashes($this->l('URL indexation failed')).'\');
|
||||
else
|
||||
$(\'#ajax-message-ko span\').html(\''.addslashes($this->l('Attribute indexation failed')).'\');
|
||||
$(\'#ajax-message-ko\').show();
|
||||
@@ -1648,12 +1648,12 @@ class BlockLayered extends Module
|
||||
</fieldset>
|
||||
<br />
|
||||
<fieldset class="width4">
|
||||
<legend><img src="../img/admin/cog.gif" alt="" />'.$this->l('Existing filters templates').'</legend>';
|
||||
<legend><img src="../img/admin/cog.gif" alt="" />'.$this->l('Existing filter templates').'</legend>';
|
||||
|
||||
$filters_templates = Db::getInstance(_PS_USE_SQL_SLAVE_)->executeS('SELECT * FROM '._DB_PREFIX_.'layered_filter ORDER BY date_add DESC');
|
||||
if (count($filters_templates))
|
||||
{
|
||||
$html .= '<p>'.count($filters_templates).' '.$this->l('filters templates are configured:').'</p>
|
||||
$html .= '<p>'.count($filters_templates).' '.$this->l('filter templates are configured:').'</p>
|
||||
<table id="table-filter-templates" class="table" style="width: 700px;">
|
||||
<tr>
|
||||
<th>'.$this->l('ID').'</th>
|
||||
@@ -1693,7 +1693,7 @@ class BlockLayered extends Module
|
||||
$html .= '
|
||||
</fieldset><br />
|
||||
<fieldset class="width4">
|
||||
<legend><img src="../img/admin/cog.gif" alt="" />'.$this->l('Build your own filters template').'</legend>
|
||||
<legend><img src="../img/admin/cog.gif" alt="" />'.$this->l('Build your own filter template').'</legend>
|
||||
<link rel="stylesheet" href="'._PS_CSS_DIR_.'jquery-ui-1.8.10.custom.css" />
|
||||
<style type="text/css">
|
||||
#error-filter-name { display: none; }
|
||||
|
||||
Reference in New Issue
Block a user