From 7d2823ce95a4aa9acebf5f3cc3e365e240d64fea Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 29 Jul 2005 10:38:14 +0000 Subject: [PATCH] 1) grabing app-title from egw_info[aps] and not egw_info[navbar] (the later does not work for apps not in the navbar) 2) create_* functions: allow to set run_lang=-1 to not translate the label (eg. already translated with parameters) --- preferences/inc/class.uisettings.inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/preferences/inc/class.uisettings.inc.php b/preferences/inc/class.uisettings.inc.php index 7f479521b2..d0f9211f45 100755 --- a/preferences/inc/class.uisettings.inc.php +++ b/preferences/inc/class.uisettings.inc.php @@ -138,7 +138,7 @@ $this->t->set_var('formhandle',''); $this->t->set_var('messages',lang('Error: There was a problem finding the preference file for %1 in %2', - $GLOBALS['egw_info']['navbar'][$_GET['appname']]['title'], + $GLOBALS['egw_info']['apps'][$_GET['appname']]['title'], EGW_SERVER_ROOT . SEP . $_GET['appname'] . SEP . 'inc' . SEP . 'hook_settings.inc.php' )); } @@ -351,7 +351,7 @@ } $this->t->set_var('row_value',"$def_text"); - $this->t->set_var('row_name',lang($label)); + $this->t->set_var('row_name',$run_lang !== -1 ? lang($label) : $label); $GLOBALS['egw']->nextmatchs->template_alternate_row_color($this->t); $this->t->fp('rows',$this->process_help($help,$run_lang) ? 'help_row' : 'row',True); @@ -458,7 +458,7 @@ $def_text = $def_text != '' ? ' '.lang('default').': '.$values[$def_text].'' : ''; } $this->t->set_var('row_value',"$def_text"); - $this->t->set_var('row_name',lang($label)); + $this->t->set_var('row_name',$run_lang !== -1 ? lang($label) : $label); $GLOBALS['egw']->nextmatchs->template_alternate_row_color($this->t); $this->t->fp('rows',$this->process_help($help,$run_lang) ? 'help_row' : 'row',True);