mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-13 17:38:28 +01:00
availible languages now only need to be added to setup/lang/languages to be availible in eGW:
- saves a db-update whenever a new lang comes availible - maybe we should drop the availible column in phpgw_languages
This commit is contained in:
parent
26507a6aa7
commit
5709cc3a27
@ -427,19 +427,16 @@
|
|||||||
$setup_tpl->set_var('lang_table_data',$btn_install_lang);
|
$setup_tpl->set_var('lang_table_data',$btn_install_lang);
|
||||||
break;
|
break;
|
||||||
case 10:
|
case 10:
|
||||||
$langs_list = '';
|
$langs_list = array();
|
||||||
reset ($GLOBALS['phpgw_info']['setup']['installed_langs']);
|
$languages = get_langs();
|
||||||
while (list ($key, $value) = each ($GLOBALS['phpgw_info']['setup']['installed_langs']))
|
foreach ($GLOBALS['phpgw_info']['setup']['installed_langs'] as $key => $value)
|
||||||
{
|
{
|
||||||
if($value)
|
$langs_list[] = isset($languages[$key]) ? $languages[$key]['descr'] : $value;
|
||||||
{
|
|
||||||
$langs_list .= ($langs_list?', ':'') . $value;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
$setup_tpl->set_var('lang_status_img',$completed);
|
$setup_tpl->set_var('lang_status_img',$completed);
|
||||||
$setup_tpl->set_var('lang_status_alt','completed');
|
$setup_tpl->set_var('lang_status_alt','completed');
|
||||||
$btn_manage_lang = $GLOBALS['phpgw_setup']->html->make_frm_btn_simple(
|
$btn_manage_lang = $GLOBALS['phpgw_setup']->html->make_frm_btn_simple(
|
||||||
lang('This stage is completed<br>') . lang('Currently installed languages: %1 <br>',$langs_list),
|
lang('This stage is completed<br>') . lang('Currently installed languages: %1 <br>',implode(', ',$langs_list)),
|
||||||
'POST','lang.php',
|
'POST','lang.php',
|
||||||
'submit',lang('Manage Languages'),
|
'submit',lang('Manage Languages'),
|
||||||
'');
|
'');
|
||||||
|
@ -61,15 +61,13 @@
|
|||||||
}
|
}
|
||||||
$select_box_desc = lang('Select which languages you would like to use');
|
$select_box_desc = lang('Select which languages you would like to use');
|
||||||
$select_box = '';
|
$select_box = '';
|
||||||
$GLOBALS['phpgw_setup']->db->query($q="SELECT lang_id,lang_name FROM phpgw_languages WHERE available='Yes' ORDER BY lang_name");
|
foreach(get_langs() as $id => $data)
|
||||||
while ($GLOBALS['phpgw_setup']->db->next_record())
|
|
||||||
{
|
{
|
||||||
$id = $GLOBALS['phpgw_setup']->db->f('lang_id');
|
|
||||||
$select_box_langs =
|
$select_box_langs =
|
||||||
@$select_box_langs
|
@$select_box_langs
|
||||||
.'<option value="' . $id . '"'
|
.'<option value="' . $id . '"'
|
||||||
.(@$GLOBALS['phpgw_info']['setup']['installed_langs'][$id]?' SELECTED':'').'>'
|
.(@$GLOBALS['phpgw_info']['setup']['installed_langs'][$id]?' SELECTED="1"':'').'>'
|
||||||
. $GLOBALS['phpgw_setup']->db->f('lang_name') . '</option>'
|
. $data['descr'] . '</option>'
|
||||||
."\n";
|
."\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,18 +1,25 @@
|
|||||||
en English
|
cs Czech
|
||||||
|
da Danish
|
||||||
de Deutsch
|
de Deutsch
|
||||||
es Español
|
en English
|
||||||
|
el Greek
|
||||||
|
es-es Español
|
||||||
|
es-ca Catalan
|
||||||
fi Suomi
|
fi Suomi
|
||||||
fr Français
|
fr Français
|
||||||
|
hu Hungarian
|
||||||
it Italiano
|
it Italiano
|
||||||
ja Japanese
|
ja Japanese
|
||||||
ko Korean
|
ko Korean
|
||||||
zh Chinese(simplified)
|
|
||||||
zt Chinese(Taiwan)
|
|
||||||
pt Portuguese
|
|
||||||
hu Hungarian
|
|
||||||
da Danish
|
|
||||||
nl Dutch
|
nl Dutch
|
||||||
no Norwegian
|
no Norwegian
|
||||||
sv Swedish
|
|
||||||
pl Polski
|
pl Polski
|
||||||
|
pt Portuguese
|
||||||
|
pt-br Brazil
|
||||||
|
hu Hungarian
|
||||||
|
ru Russian
|
||||||
sl Slovensko
|
sl Slovensko
|
||||||
|
sv Swedish
|
||||||
|
uk Ukrainian
|
||||||
|
zh simplified Chinese
|
||||||
|
zt traditional Chinese (Taiwan)
|
||||||
|
Loading…
Reference in New Issue
Block a user