enabled 'zh'=Chinese(simplified), changed version to 0.9.99.003

This commit is contained in:
Ralf Becker 2003-09-24 22:04:38 +00:00
parent 8e9ea3667f
commit 9400580dbf
3 changed files with 14 additions and 5 deletions

View File

@ -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')");

View File

@ -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;

View File

@ -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 "<pre>"; print_r(debug_backtrace()); echo "</pre>\n";
//echo "<pre>"; print_r($GLOBALS['phpgw_setup']->oProc); echo "</pre>\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
*/