[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: setup lang.php,1.34,1.35
From: |
Miles Lott <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: setup lang.php,1.34,1.35 |
Date: |
Sun, 10 Mar 2002 20:40:00 -0500 |
Update of /cvsroot/phpgroupware/setup
In directory subversions:/tmp/cvs-serv7278
Modified Files:
lang.php
Log Message:
show languages already installed by selecting them in the select box
Index: lang.php
===================================================================
RCS file: /cvsroot/phpgroupware/setup/lang.php,v
retrieving revision 1.34
retrieving revision 1.35
diff -C2 -r1.34 -r1.35
*** lang.php 3 Mar 2002 21:52:52 -0000 1.34
--- lang.php 11 Mar 2002 01:39:58 -0000 1.35
***************
*** 136,140 ****
{
// echo
"<br>adding - insert into $langtbl(message_id,app_name,lang,content) values
('$message_id','$app_name','" . $GLOBALS['phpgw_setup']->db_lang .
"','$content')";
!
$GLOBALS['phpgw_setup']->db->query("INSERT into
$langtbl(message_id,app_name,lang,content) VALUES ('$message_id','$app_name','"
. $GLOBALS['phpgw_setup']->db_lang . "','$content')",__LINE__,__FILE__);
}
--- 136,140 ----
{
// echo
"<br>adding - insert into $langtbl(message_id,app_name,lang,content) values
('$message_id','$app_name','" . $GLOBALS['phpgw_setup']->db_lang .
"','$content')";
!
$GLOBALS['phpgw_setup']->db->query("INSERT INTO
$langtbl(message_id,app_name,lang,content) VALUES ('$message_id','$app_name','"
. $GLOBALS['phpgw_setup']->db_lang . "','$content')",__LINE__,__FILE__);
}
***************
*** 181,193 ****
$hidden_var1 = $newinstall ? '<input type="hidden"
name="newinstall" value="True">' : '';
$select_box_desc = lang('Select which languages you
would like to use');
$select_box_langs = '';
! $GLOBALS['phpgw_setup']->db->query("select
lang_id,lang_name from $langstbl where available='Yes'");
while ($GLOBALS['phpgw_setup']->db->next_record())
{
! $select_box_langs .=
! '<option value="' .
$GLOBALS['phpgw_setup']->db->f('lang_id') . '">'
! .
$GLOBALS['phpgw_setup']->db->f('lang_name') . '</option>'
! ."\n";
}
--- 181,199 ----
$hidden_var1 = $newinstall ? '<input type="hidden"
name="newinstall" value="True">' : '';
+ $GLOBALS['phpgw_setup']->db->query("SELECT DISTINCT
lang FROM $langtbl",__LINE__,__FILE__);
+ $installed_langs = array();
+ while(@$GLOBALS['phpgw_setup']->db->next_record())
+ {
+
$installed_langs[$GLOBALS['phpgw_setup']->db->f('lang')] = ' selected';
+ }
+
$select_box_desc = lang('Select which languages you
would like to use');
$select_box_langs = '';
! $GLOBALS['phpgw_setup']->db->query("SELECT
lang_id,lang_name from $langstbl WHERE available='Yes' ORDER BY(lang_name)");
while ($GLOBALS['phpgw_setup']->db->next_record())
{
! $select_box_langs .= '<option value="' .
$GLOBALS['phpgw_setup']->db->f('lang_id')
! . '"' .
$installed_langs[$GLOBALS['phpgw_setup']->db->f('lang_id')] . '>'
! .
$GLOBALS['phpgw_setup']->db->f('lang_name') . '</option>' . "\n";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: setup lang.php,1.34,1.35,
Miles Lott <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: felamimail/inc hook_home.inc.php,1.3,1.4
- Next by Date:
[Phpgroupware-cvs] CVS: cart cart.php,1.1.1.1,1.2 index.php,1.2,1.3 list_products.php,1.4,1.5 order.php,1.1.1.1,1.2 service.php,1.1.1.1,1.2 view_product.php,1.3,1.4
- Previous by thread:
[Phpgroupware-cvs] CVS: felamimail/inc hook_home.inc.php,1.3,1.4
- Next by thread:
[Phpgroupware-cvs] CVS: cart cart.php,1.1.1.1,1.2 index.php,1.2,1.3 list_products.php,1.4,1.5 order.php,1.1.1.1,1.2 service.php,1.1.1.1,1.2 view_product.php,1.3,1.4
- Index(es):