mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
cfeb080dcd
commit
78c2b5c67f
24 changed files with 51 additions and 363 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue