From 9400580dbf0369b75d0338fe8adf5f26f11aa747 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 24 Sep 2003 22:04:38 +0000 Subject: [PATCH] enabled 'zh'=Chinese(simplified), changed version to 0.9.99.003 --- phpgwapi/setup/default_records.inc.php | 2 +- phpgwapi/setup/setup.inc.php | 2 +- phpgwapi/setup/tables_update.inc.php | 15 ++++++++++++--- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/phpgwapi/setup/default_records.inc.php b/phpgwapi/setup/default_records.inc.php index 672ef90656..3a9db175ed 100644 --- a/phpgwapi/setup/default_records.inc.php +++ b/phpgwapi/setup/default_records.inc.php @@ -145,7 +145,7 @@ $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('wo','Wolof','No')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('xh','Xhosa','No')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('yo','Yoruba','No')"); - $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('zh','Chinese','No')"); + $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('zh','Chinese(simplified)','Yes')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('zt','Chinese(Taiwan)','Yes')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('zu','Zulu','No')"); diff --git a/phpgwapi/setup/setup.inc.php b/phpgwapi/setup/setup.inc.php index 7ed1f875a5..622a4b7079 100755 --- a/phpgwapi/setup/setup.inc.php +++ b/phpgwapi/setup/setup.inc.php @@ -15,7 +15,7 @@ /* Basic information about this app */ $setup_info['phpgwapi']['name'] = 'phpgwapi'; $setup_info['phpgwapi']['title'] = 'phpgwapi'; - $setup_info['phpgwapi']['version'] = '0.9.99.002'; + $setup_info['phpgwapi']['version'] = '0.9.99.003'; $setup_info['phpgwapi']['versions']['current_header'] = '1.24'; $setup_info['phpgwapi']['enable'] = 3; $setup_info['phpgwapi']['app_order'] = 1; diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index 88b321ef36..442872e58a 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -575,7 +575,7 @@ // this is the 0.9.15.004 update, needed for the polish translations $GLOBALS['phpgw_setup']->db->query("UPDATE languages set available='Yes' WHERE lang_id='pl'"); - + $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.14.500'; return $GLOBALS['setup_info']['phpgwapi']['currentver']; } @@ -752,8 +752,7 @@ // unfortunally they are still in the tables_current of 0.9.14.508 // so it depends on having a new or an updated install, if one have them or not // we now check if they are there and drop them if thats the case -//echo "
"; print_r(debug_backtrace()); echo "
\n"; -//echo "
"; print_r($GLOBALS['phpgw_setup']->oProc); echo "
\n"; + $GLOBALS['phpgw_setup']->oProc->m_oTranslator->_GetColumns($GLOBALS['phpgw_setup']->oProc,'phpgw_accounts',$columns); $columns = explode(',',$columns); if (in_array('account_permissions',$columns)) @@ -822,6 +821,16 @@ return $GLOBALS['setup_info']['phpgwapi']['currentver']; } + $test[] = '0.9.99.002'; + function phpgwapi_upgrade0_9_99_002() + { + // needed for the chinese(simplified) translations + $GLOBALS['phpgw_setup']->db->query("UPDATE phpgw_languages SET lang_name='Chinese(simplified)',available='Yes' WHERE lang_id='zh'"); + + $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.003'; + return $GLOBALS['setup_info']['phpgwapi']['currentver']; + } + /* * Updates from phpGroupWare .16 branch */