aboutsummaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-06 17:40:58 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-06 17:40:58 -0700
commitc7c3db8c54ada33c785a7303de582a3d0c1a14ee (patch)
treebb25fb74754d6f124b73b70f50ddc228e6399f59 /index.php
parent9f0cedad8e4f4063db7c8ee5cd9821ff10e39ea0 (diff)
downloadvolse-hubzilla-c7c3db8c54ada33c785a7303de582a3d0c1a14ee.tar.gz
volse-hubzilla-c7c3db8c54ada33c785a7303de582a3d0c1a14ee.tar.bz2
volse-hubzilla-c7c3db8c54ada33c785a7303de582a3d0c1a14ee.zip
i18n officially ready for prime time.
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.php b/index.php
index f86fbe138..ce2d32316 100644
--- a/index.php
+++ b/index.php
@@ -6,11 +6,15 @@ $a = new App;
$debug_text = ''; // Debugging functions should never be used on production systems.
-// Setup the database.
+// Setup the language and database.
$install = ((file_exists('.htconfig.php')) ? false : true);
@include(".htconfig.php");
+
+if(x($lang))
+ load_translation_table($lang);
+
require_once("dba.php");
$db = new dba($db_host, $db_user, $db_pass, $db_data, $install);
unset($db_host, $db_user, $db_pass, $db_data);