From 78c2b5c67faec190985c3fb9509e942add4dc54c Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Sun, 21 Dec 2008 02:23:43 -0500 Subject: Introduce function include_lang for translations. This includes only the requested language for each page and makes top level language include files obsolete. Signed-off-by: Loui Chang --- web/template/template.phps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'web/template') diff --git a/web/template/template.phps b/web/template/template.phps index 7a86686..358bf52 100644 --- a/web/template/template.phps +++ b/web/template/template.phps @@ -2,10 +2,10 @@ # This template shows how a front page script is commonly coded. -set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang'); +set_include_path(get_include_path() . PATH_SEPARATOR . '../lib'); include("aur.inc"); # access AUR common functions -include("template_po.inc"); # use some form of this for i18n support +include_lang('template_po.inc'); # use some form of this for i18n support set_lang(); # this sets up the visitor's language check_sid(); # see if they're still logged in html_header(); # print out the HTML header -- cgit v1.2.3-70-g09d2