[-] BO : Fix bug in AdminTranslationsController

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@11929 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
lLefevre
2011-12-30 10:54:40 +00:00
parent 76f1f380a3
commit 26ec47eab1
4 changed files with 631 additions and 586 deletions
@@ -82,7 +82,7 @@
<script type="text/javascript">
$().ready(function () {
var input_id = '{/literal}{if isset($input.id)}{$input.id}_{$language.id_lang}{else}{$input.name}_{$language.id_lang}{/if}{literal}';
$('#'+input_id).tagify({addTagPrompt: '{/literal}{l s='add tag'}{literal}'});
$('#'+input_id).tagify({addTagPrompt: '{/literal}{l s='Add tag'}{literal}'});
$({/literal}'#{$table}{literal}_form').submit( function() {
$(this).find('#'+input_id).val($('#'+input_id).tagify('serialize'));
});
@@ -50,8 +50,8 @@
{include file='modules/list.tpl'}
{if count($modules)}
<div style="margin-top: 12px;">
<input type="button" class="button big" value="Install the selection" onclick="modules_management('install')"/>
<input type="button" class="button big" value="Uninstall the selection" onclick="modules_management('uninstall')" />
<input type="button" class="button big" value="{l s='Install the selection'}" onclick="modules_management('install')"/>
<input type="button" class="button big" value="{l s='Uninstall the selection'}" onclick="modules_management('uninstall')" />
</div>
{/if}
</div>
@@ -986,14 +986,22 @@ class AdminTranslationsControllerCore extends AdminController
$tmp = substr($prefix_key, 0, $pos);
$prefix_key = 'Admin'.ucfirst(substr($tmp, strrpos($tmp, DIRECTORY_SEPARATOR) + 1, $pos));
if ($prefix_key == 'AdminHelper')
// Adding list, form, option in Helper Translations
if ($prefix_key == 'AdminHelper' || $prefix_key == 'AdminList' || $prefix_key == 'AdminOptions' || $prefix_key == 'AdminForm')
$prefix_key = 'Helper';
// Adding the folder products/combinaison/ in AdminProducts Translations
if ($prefix_key == 'AdminCombinaison')
$prefix_key = 'AdminProducts';
// Adding the folder backup/download/ in AdminBackup Translations
if ($prefix_key == 'AdminDownload')
$prefix_key = 'AdminBackup';
// @todo retrompatibility : we assume here than files directly in template/
// use the prefix "AdminController" (like old php files 'header', 'footer.inc', 'index', 'login', 'password', 'functions'
if ( $prefix_key == 'Admin' || $prefix_key == 'AdminTemplate')
$prefix_key = 'AdminController';
// and helpers in helper
$new_lang = array();
$fd = fopen($tpl, 'r');
+618 -581
View File
File diff suppressed because it is too large Load Diff