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 <louipc.ist@gmail.com>
This commit is contained in:
Loui Chang 2008-12-21 02:23:43 -05:00 committed by Callan Barrett
parent cfeb080dcd
commit 78c2b5c67f
24 changed files with 51 additions and 363 deletions

View file

@ -1,9 +1,9 @@
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include("tu_po.inc");
include("aur.inc");
include_lang('tu_po.inc');
set_lang();
check_sid();
html_header();