diff --git a/phpgwapi/setup/default_records.inc.php b/phpgwapi/setup/default_records.inc.php index c72d8fd803..adca891990 100644 --- a/phpgwapi/setup/default_records.inc.php +++ b/phpgwapi/setup/default_records.inc.php @@ -37,7 +37,8 @@ $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('el','Greek','No')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('en','English / US','Yes')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('eo','Esperanto','No')"); - $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('es','Spanish','Yes')"); + $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('es-es','Spanish / Spain','Yes')"); + $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('es-mx','Spanish / Mexico','Yes')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('et','Estonian','No')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('eu','Basque','No')"); $oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('fa','Persian','No')"); diff --git a/phpgwapi/setup/tables_update.inc.php b/phpgwapi/setup/tables_update.inc.php index a54f8e0f3f..0fe38d2401 100644 --- a/phpgwapi/setup/tables_update.inc.php +++ b/phpgwapi/setup/tables_update.inc.php @@ -954,4 +954,14 @@ $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.008'; return $GLOBALS['setup_info']['phpgwapi']['currentver']; } + + $test[] = '0.9.99.008'; + function phpgwapi_upgrade0_9_99_008() + { + $GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('es-es','Spanish / Spain','Yes')"); + $GLOBALS['phpgw_setup']->oProc->query("INSERT INTO phpgw_languages (lang_id, lang_name, available) VALUES ('es-mx','Spanish / Mexico','Yes')"); + $GLOBALS['phpgw_setup']->oProc->query("DELETE FROM phpgw_languages where lang_id='es'"); + $GLOBALS['setup_info']['phpgwapi']['currentver'] = '0.9.99.009'; + return $GLOBALS['setup_info']['phpgwapi']['currentver']; + } ?>