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,10 +1,10 @@
|
|||
<?php
|
||||
|
||||
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("pkgfuncs.inc"); # use some form of this for i18n support
|
||||
include("pkgedit_po.inc"); # i18n translations for this script
|
||||
include_lang("pkgedit_po.inc"); # i18n translations for this script
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue