// fix AdminController translations
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@10622 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
b7c28b8c48
commit
d8fcdf19fe
1 file changed
+8
-6
@@ -298,16 +298,16 @@ class AdminControllerCore extends Controller
|
|||||||
switch ($this->display)
|
switch ($this->display)
|
||||||
{
|
{
|
||||||
case 'edit':
|
case 'edit':
|
||||||
array_pop($tabs);
|
$current_tab = array_pop($tabs);
|
||||||
$tabs[] = array('name' => sprintf($this->l('Edit %s'), $this->table));
|
$tabs[] = array('name' => sprintf($this->l('Edit %s'), $current_tab['name']));
|
||||||
break;
|
break;
|
||||||
case 'add':
|
case 'add':
|
||||||
array_pop($tabs);
|
$current_tab = array_pop($tabs);
|
||||||
$tabs[] = array('name' => sprintf($this->l('Add %s'), $this->table));
|
$tabs[] = array('name' => sprintf($this->l('Add %s'), $current_tab['name']));
|
||||||
break;
|
break;
|
||||||
case 'view':
|
case 'view':
|
||||||
array_pop($tabs);
|
$current_tab = array_pop($tabs);
|
||||||
$tabs[] = array('name' => sprintf($this->l('View %s'), $this->table));
|
$tabs[] = array('name' => sprintf($this->l('View %s'), $current_tab['name']));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// note : this should use a tpl file
|
// note : this should use a tpl file
|
||||||
@@ -1572,6 +1572,8 @@ class AdminControllerCore extends Controller
|
|||||||
// @todo : change AdminTab to Helper
|
// @todo : change AdminTab to Helper
|
||||||
if ( isset($_LANGADM[$class.$key]))
|
if ( isset($_LANGADM[$class.$key]))
|
||||||
$str = $_LANGADM[$class.$key];
|
$str = $_LANGADM[$class.$key];
|
||||||
|
elseif ( isset($_LANGADM['admincontroller'.$key]))
|
||||||
|
$str = $_LANGADM['admincontroller'.$key];
|
||||||
elseif ( isset($_LANGADM['helper'.$key]))
|
elseif ( isset($_LANGADM['helper'.$key]))
|
||||||
$str = $_LANGADM['helper'.$key];
|
$str = $_LANGADM['helper'.$key];
|
||||||
elseif ( isset($_LANGADM['admintab'.$key]))
|
elseif ( isset($_LANGADM['admintab'.$key]))
|
||||||
|
|||||||
Reference in new issue
Block a user