From 4b918796f8d85d40d55dbf2674a2b691d802ff02 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Fri, 14 Aug 2009 13:05:59 +0200 Subject: Started on a framework for interface I18N You can ignore the entries in lang.txt, those are simply for testing purposes. --- util/vndb.pl | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'util') 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 -- cgit v1.2.3