mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
put helptexts in one line (!) and used new function transslation::get_installed_langs
This commit is contained in:
parent
486fd309c0
commit
456493f188
@ -24,8 +24,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
create_input_box('Max matches per page','maxmatchs',
|
create_input_box('Max matches per page','maxmatchs',
|
||||||
'Any listing in phpGW will show you this number or entries or lines per page.<br>
|
'Any listing in phpGW will show you this number or entries or lines per page.<br>To many slow down the page display, to less will cost you the overview.',15,3);
|
||||||
To many slow down the page display, to less will cost you the overview.',15,3);
|
|
||||||
create_select_box('Interface/Template Selection','template_set',$_templates,
|
create_select_box('Interface/Template Selection','template_set',$_templates,
|
||||||
'A template defines the layout of phpGroupWare and it contains icons vor each application.');
|
'A template defines the layout of phpGroupWare and it contains icons vor each application.');
|
||||||
create_select_box('Theme (colors/fonts) Selection','theme',$_themes,
|
create_select_box('Theme (colors/fonts) Selection','theme',$_themes,
|
||||||
@ -55,9 +54,7 @@
|
|||||||
$tz_offset[$i] = $i . ' ' . lang('hours').': ' . date($format,$t);
|
$tz_offset[$i] = $i . ' ' . lang('hours').': ' . date($format,$t);
|
||||||
}
|
}
|
||||||
create_select_box('Time zone offset','tz_offset',$tz_offset,
|
create_select_box('Time zone offset','tz_offset',$tz_offset,
|
||||||
'How many hours are you in front or after the timezone of the server.<br>
|
'How many hours are you in front or after the timezone of the server.<br>If you are in the same time zone as the server select 0 hours, else select your locale date and time.',0);
|
||||||
If you are in the same time zone as the server select 0 hours,
|
|
||||||
else select your locale date and time.',0);
|
|
||||||
|
|
||||||
$date_formats = array(
|
$date_formats = array(
|
||||||
'm/d/Y' => 'm/d/Y',
|
'm/d/Y' => 'm/d/Y',
|
||||||
@ -87,23 +84,7 @@
|
|||||||
create_select_box('Country','country',$sbox->country_array,
|
create_select_box('Country','country',$sbox->country_array,
|
||||||
'In which country are you. This is used to set certain defaults for you.');
|
'In which country are you. This is used to set certain defaults for you.');
|
||||||
|
|
||||||
$db2 = $GLOBALS['phpgw']->db;
|
$langs = $GLOBALS['phpgw']->translation->get_installed_langs();
|
||||||
$GLOBALS['phpgw']->db->query("select distinct lang from phpgw_lang",__LINE__,__FILE__);
|
|
||||||
while ($GLOBALS['phpgw']->db->next_record())
|
|
||||||
{
|
|
||||||
// $phpgw_info['installed_langs'][$phpgw->db->f('lang')] = $phpgw->db->f('lang');
|
|
||||||
|
|
||||||
$db2->query("select lang_name from phpgw_languages where lang_id = '"
|
|
||||||
. $GLOBALS['phpgw']->db->f('lang') . "'",__LINE__,__FILE__);
|
|
||||||
$db2->next_record();
|
|
||||||
|
|
||||||
// When its not in the phpgw_languages table, it will show ??? in the field
|
|
||||||
// otherwise
|
|
||||||
if ($db2->f('lang_name'))
|
|
||||||
{
|
|
||||||
$langs[$GLOBALS['phpgw']->db->f('lang')] = $db2->f('lang_name');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
foreach ($langs as $key => $name) // if we have a translation use it
|
foreach ($langs as $key => $name) // if we have a translation use it
|
||||||
{
|
{
|
||||||
$trans = lang($name);
|
$trans = lang($name);
|
||||||
@ -113,8 +94,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
create_select_box('Language','lang',$langs,
|
create_select_box('Language','lang',$langs,
|
||||||
'Select the language of texts and messages within phpGroupWare.<br>
|
'Select the language of texts and messages within phpGroupWare.<br>Some languages may not contain all messages, in that case you will see an english message.');
|
||||||
Some languages may not contain all messages, in that case you will see an english message.');
|
|
||||||
|
|
||||||
// preference.php handles this function
|
// preference.php handles this function
|
||||||
if (is_admin())
|
if (is_admin())
|
||||||
@ -132,10 +112,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
create_select_box('Default application','default_app',$user_apps,
|
create_select_box('Default application','default_app',$user_apps,
|
||||||
"This is the application which will be started when you enter phpGroupWare or click on the homepage icon.<br>
|
"This is the application which will be started when you enter phpGroupWare or click on the homepage icon.<br>You can also have more than one applications showing up on the homepage, if you don't choose a specific application here (has to be configured in the preferences of each applicaton).");
|
||||||
You can also have more than one applications showing up on the homepage, if you don't
|
|
||||||
choose a specific application here (has to be configured in the preferences of
|
|
||||||
each applicaton).");
|
|
||||||
|
|
||||||
create_input_box('Currency','currency',
|
create_input_box('Currency','currency',
|
||||||
'Which currency symbole or name should be used in phpGroupWare.');
|
'Which currency symbole or name should be used in phpGroupWare.');
|
||||||
|
Loading…
Reference in New Issue
Block a user