From 149685887dc76ae7be44605b04fa384132cc0f3f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 Jan 2006 22:10:40 +0000 Subject: [PATCH] r705: We need to build the localizations table... so we now do :) --- install/install.php | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/install/install.php b/install/install.php index 395a11b..5512eb4 100644 --- a/install/install.php +++ b/install/install.php @@ -10,7 +10,7 @@ || ################################################################### || \*=====================================================================*/ -define('STOP_MARK', 7); +define('STOP_MARK', 8); define('ACTIVE_SITE', 'install.php'); require_once('./global.php'); @@ -81,6 +81,9 @@ if ($bugsys->in['mark'] == 2) echo 'Populating table ' . $table . '
' . "\n"; } + + $db->query("INSERT INTO " . TABLE_PREFIX . "language (title, languagecode, charset, direction, filename, userselect, debug) VALUES ('English (US)', 'en', 'utf-8', 'ltr', './includes/strings/english-us.strings.xml', 1, 0)"); + echo 'Inserting default language
' . "\n"; } // ################################################################### @@ -197,7 +200,7 @@ if ($bugsys->in['mark'] == 7) \n"; @@ -231,6 +234,27 @@ if ($bugsys->in['mark'] == 7) // ################################################################### +if ($bugsys->in['mark'] == 8) +{ +?> +

Load Language Strings

+ +

Bugdar's flexible language system caches all of the strings in the database. Currently, the strings are being read from the raw file into the cache.

+load('xml', 'xml'); + + build_languages(); + + require_once('./includes/language.php'); + build_language_cache(1); +} + +// ################################################################### + page_end(); /*=====================================================================*\ -- 2.43.5