diff options
author | Loui Chang <louipc.ist@gmail.com> | 2008-12-21 08:23:43 +0100 |
---|---|---|
committer | Callan Barrett <wizzomafizzo@gmail.com> | 2008-12-21 10:03:27 +0100 |
commit | 78c2b5c67faec190985c3fb9509e942add4dc54c (patch) | |
tree | 8de400422c50db32e530883bc954919c66b4c05c /web/lib/aur.inc | |
parent | cfeb080dcd7f593cf70a7d12ef873c95c95ae40f (diff) | |
download | aur-78c2b5c67faec190985c3fb9509e942add4dc54c.tar.gz aur-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/lib/aur.inc')
-rw-r--r-- | web/lib/aur.inc | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc index e43ddf62..121c6921 100644 --- a/web/lib/aur.inc +++ b/web/lib/aur.inc @@ -1,22 +1,23 @@ <?php -set_include_path(get_include_path() . PATH_SEPARATOR . '../template'); +set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../template'); header('Content-Type: text/html; charset=utf-8'); header('Cache-Control: no-cache, must-revalidate'); header('Expires: Tue, 11 Oct 1988 22:00:00 GMT'); // quite a special day header('Pragma: no-cache'); -include_once("version.inc"); + +include_once('translator.inc'); +set_lang(); +include_lang('aur_po.inc'); +include_lang('common_po.inc'); + include_once("config.inc"); -include_once("aur_po.inc"); -// TODO: remove this, move translations over for login form -include_once("index_po.inc"); +include_once("version.inc"); include_once("acctfuncs.inc"); # TODO do we need to set the domain on cookies? I seem to remember some # security concerns about not using domains - but it's not like # we really care if another site can see what language/SID a user # is using... -# - # return an array of info for each Trusted user |