diff options
author | Loui Chang <louipc.ist@gmail.com> | 2008-12-21 02:23:43 -0500 |
---|---|---|
committer | Callan Barrett <wizzomafizzo@gmail.com> | 2008-12-21 18:03:27 +0900 |
commit | 78c2b5c67faec190985c3fb9509e942add4dc54c (patch) | |
tree | 8de400422c50db32e530883bc954919c66b4c05c /web/html/index.php | |
parent | cfeb080dcd7f593cf70a7d12ef873c95c95ae40f (diff) | |
download | aurweb-78c2b5c67faec190985c3fb9509e942add4dc54c.tar.xz |
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>
Diffstat (limited to 'web/html/index.php')
-rw-r--r-- | web/html/index.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/web/html/index.php b/web/html/index.php index d664086..e2c840a 100644 --- a/web/html/index.php +++ b/web/html/index.php @@ -1,15 +1,15 @@ <?php -set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang'); +set_include_path(get_include_path() . PATH_SEPARATOR . '../lib'); -include('index_po.inc'); -include("pkgfuncs_po.inc"); include("aur.inc"); -include('stats.inc'); - set_lang(); check_sid(); +include('stats.inc'); +include_lang('index_po.inc'); +include_lang('pkgfuncs_po.inc'); + html_header( __("Home") ); $dbh = db_connect(); |