fix for bug #2053: in edit categories, egw shows the KB menu in english rather than the locale

This commit is contained in:
Ralf Becker 2010-12-06 08:52:10 +00:00
parent 0541743a3d
commit cf2943435d

View File

@ -37,6 +37,7 @@
function uicategories()
{
$cats_app = get_var('cats_app',array('GET','POST'));
translation::add_app($cats_app);
$this->bo =& CreateObject('preferences.bocategories',$cats_app);
$this->nextmatchs =& CreateObject('phpgwapi.nextmatchs');
@ -180,7 +181,7 @@
// ------------------------------ end nextmatch ------------------------------------------
//------------------- list header variable template-declarations -------------------------
//------------------- list header variable template-declarations -------------------------
$GLOBALS['egw']->template->set_var('sort_name',$this->nextmatchs->show_sort_order($this->sort,'cat_name',$this->order,'/index.php',lang('Name'),$link_data));
$GLOBALS['egw']->template->set_var('sort_description',$this->nextmatchs->show_sort_order($this->sort,'cat_description',$this->order,'/index.php',lang('Description'),$link_data));