summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-08-14 13:05:59 +0200
committerYorhel <git@yorhel.nl>2009-08-17 16:27:14 +0200
commit4b918796f8d85d40d55dbf2674a2b691d802ff02 (patch)
treed8247ab322ef03d5ff072a2c329f7e2cb0cd0461 /util
parentdc9ff373251c7a0f543216173939a8bf02f519be (diff)
Started on a framework for interface I18N
You can ignore the entries in lang.txt, those are simply for testing purposes.
Diffstat (limited to 'util')
-rwxr-xr-xutil/vndb.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/util/vndb.pl b/util/vndb.pl
index 455a1c23..7dd9b6fa 100755
--- a/util/vndb.pl
+++ b/util/vndb.pl
@@ -17,6 +17,7 @@ use lib $ROOT.'/lib';
use YAWF ':html';
+use VNDB::L10N;
our(%O, %S);
@@ -31,6 +32,10 @@ $S{skins} = readskins();
require $ROOT.'/data/global.pl';
+# load lang.dat
+VNDB::L10N::loadfile();
+
+
YAWF::init(
%O,
namespace => 'VNDB',
@@ -42,6 +47,10 @@ YAWF::init(
sub reqinit {
my $self = shift;
+
+ # TODO: get language from user setting (cookie, query string, whatever)
+ $self->{l10n} = VNDB::L10N->get_handle();
+
$self->authInit;
# check for IE6