From 6b445114da301438f386eeb9853448b53fd9e516 Mon Sep 17 00:00:00 2001 From: patdenice Date: Thu, 25 Mar 2010 20:18:28 +0000 Subject: Feature 1535: Add language manager. git-svn-id: http://piwigo.org/svn/trunk@5357 68402e56-0260-453c-a942-63ccdbb3a9ee --- install/db/90-database.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'install/db/90-database.php') diff --git a/install/db/90-database.php b/install/db/90-database.php index 2daa931a1..532f36a2c 100644 --- a/install/db/90-database.php +++ b/install/db/90-database.php @@ -44,15 +44,15 @@ if (DB_CHARSET == 'utf8') pwg_query($query); // Fill table -$inserts = array(); -foreach (get_languages('utf-8') as $language_code => $language_name) +include_once(PHPWG_ROOT_PATH.'include/constants.php'); +include_once(PHPWG_ROOT_PATH.'admin/include/languages.class.php'); + +$languages = new languages(PWG_CHARSET); + +foreach ($languages->fs_languages as $language_code => $language_name) { - $inserts[] = array( - 'id' => $language_code, - 'name' => $language_name, - ); + $languages->perform_action('activate', $language_code); } -mass_inserts(PREFIX_TABLE.'languages', array('id', 'name'), $inserts); echo "\n" -- cgit v1.2.3