summaryrefslogtreecommitdiffstats
path: root/web/html/pkgedit.php
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-12-21 08:23:43 +0100
committerCallan Barrett <wizzomafizzo@gmail.com>2008-12-21 10:03:27 +0100
commit78c2b5c67faec190985c3fb9509e942add4dc54c (patch)
tree8de400422c50db32e530883bc954919c66b4c05c /web/html/pkgedit.php
parentcfeb080dcd7f593cf70a7d12ef873c95c95ae40f (diff)
downloadaur-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/html/pkgedit.php')
-rw-r--r--web/html/pkgedit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/html/pkgedit.php b/web/html/pkgedit.php
index 974f14bd..ff826634 100644
--- a/web/html/pkgedit.php
+++ b/web/html/pkgedit.php
@@ -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