Update of /cvsroot/phpwebapp/web_app
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8209
Modified Files:
const.Paths.php WebApp.php
Log Message:
added translation (i18n/l10n) support
Index: const.Paths.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/const.Paths.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** const.Paths.php 22 Jul 2004 16:25:39 -0000 1.6
--- const.Paths.php 13 Jun 2005 06:55:21 -0000 1.7
***************
*** 29,32 ****
--- 29,33 ----
define("PARSER_PATH", WEBAPP_PATH."parser/");
define("SESSION_PATH", WEBAPP_PATH."session/");
+ define("L10N_PATH", WEBAPP_PATH."l10n/");
define("DB_PATH", WEBAPP_PATH."database/");
define("APPEND_PATH", WEBAPP_PATH."append/");
Index: WebApp.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/WebApp.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** WebApp.php 22 Jul 2004 16:25:39 -0000 1.6
--- WebApp.php 13 Jun 2005 06:55:21 -0000 1.7
***************
*** 32,35 ****
--- 32,38 ----
include_once PARSER_PATH."package.ParseRender.php";
+ //include localization component
+ include_once L10N_PATH."class.L10n.php";
+
//include database component
include_once DB_PATH."package.DB.php";
***************
*** 44,47 ****
--- 47,51 ----
$request = new Request;
$tplVars = new VarStack;
+ $l10n = new L10n;
$webPage = new WebPage;
$parser = new Parser;
|