Commit 78c2b5c6 authored by Loui Chang's avatar Loui Chang Committed by Callan Barrett
Browse files

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: default avatarLoui Chang <louipc.ist@gmail.com>
parent cfeb080d
<?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_once("acctfuncs.inc"); # access Account specific functions
include("pkgfuncs_po.inc"); # Add to handle the i18n of My Packages
include("account_po.inc"); # use some form of this for i18n support
include('aur.inc'); # access AUR common functions
include_once('acctfuncs.inc'); # access Account specific functions
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
html_header(__("Accounts")); # print out the HTML header
include_lang('pkgfuncs_po.inc'); # Add to handle the i18n of My Packages
include_lang('account_po.inc'); # use some form of this for i18n support
html_header(__('Accounts'));
# Main page processing here
#
......
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include("tu_po.inc");
include("aur.inc");
include_lang('tu_po.inc');
set_lang();
check_sid();
html_header();
......
<?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();
......
<?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_once("acctfuncs.inc"); # access AUR common functions
include("logout_po.inc"); # use some form of this for i18n support
set_lang(); # this sets up the visitor's language
# if they've got a cookie, log them out - need to do this before
# sending any HTML output.
......
<?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"); # package specific functions
include("search_po.inc"); # use some form of this for i18n support
set_lang(); # this sets up the visitor's language
include('pkgfuncs.inc'); # package specific functions
include_lang('search_po.inc'); # use some form of this for i18n support
check_sid(); # see if they're still logged in
# Set the title to the current query if required
......
<?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
......
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include("config.inc");
require('Archive/Tar.php');
require('Find.php');
include("aur.inc"); # access AUR common functions
include("submit_po.inc"); # use some form of this for i18n support
include("pkgfuncs.inc"); # package functions
include_lang('submit_po.inc'); # use some form of this for i18n support
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
......
<?php
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib' . PATH_SEPARATOR . '../lang');
set_include_path(get_include_path() . PATH_SEPARATOR . '../lib');
include("tu_po.inc");
include("aur.inc");
include_lang('tu_po.inc');
set_lang();
check_sid();
html_header();
......
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/account_po.inc");
include_once("it/account_po.inc");
include_once("ca/account_po.inc");
include_once("pt/account_po.inc");
include_once("es/account_po.inc");
include_once("de/account_po.inc");
include_once("ru/account_po.inc");
include_once("tr/account_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/acctfuncs_po.inc");
include_once("it/acctfuncs_po.inc");
include_once("ca/acctfuncs_po.inc");
include_once("pt/acctfuncs_po.inc");
include_once("es/acctfuncs_po.inc");
include_once("de/acctfuncs_po.inc");
include_once("ru/acctfuncs_po.inc");
include_once("fr/acctfuncs_po.inc");
include_once("tr/acctfuncs_po.inc");
include_once("uk/acctfuncs_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/aur_po.inc");
include_once("it/aur_po.inc");
include_once("ca/aur_po.inc");
include_once("pt/aur_po.inc");
include_once("es/aur_po.inc");
include_once("de/aur_po.inc");
include_once("ru/aur_po.inc");
include_once("fr/aur_po.inc");
include_once("tr/aur_po.inc");
include_once("uk/aur_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/common_po.inc");
include_once("it/common_po.inc");
include_once("ca/common_po.inc");
include_once("pt/common_po.inc");
include_once("es/common_po.inc");
include_once("de/common_po.inc");
include_once("ru/common_po.inc");
include_once("fr/common_po.inc");
include_once("tr/common_po.inc");
include_once("uk/common_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/index_po.inc");
include_once("it/index_po.inc");
include_once("ca/index_po.inc");
include_once("pt/index_po.inc");
include_once("es/index_po.inc");
include_once("de/index_po.inc");
include_once("ru/index_po.inc");
include_once("fr/index_po.inc");
include_once("tr/index_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/logout_po.inc");
include_once("it/logout_po.inc");
include_once("ca/logout_po.inc");
include_once("pt/logout_po.inc");
include_once("es/logout_po.inc");
include_once("de/logout_po.inc");
include_once("ru/logout_po.inc");
include_once("tr/logout_po.inc");
include_once("fr/logout_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/pkgedit_po.inc");
include_once("it/pkgedit_po.inc");
include_once("ca/pkgedit_po.inc");
include_once("pt/pkgedit_po.inc");
include_once("es/pkgedit_po.inc");
include_once("de/pkgedit_po.inc");
include_once("ru/pkgedit_po.inc");
include_once("fr/pkgedit_po.inc");
include_once("tr/pkgedit_po.inc");
include_once("uk/pkgedit_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/pkgfuncs_po.inc");
include_once("it/pkgfuncs_po.inc");
include_once("ca/pkgfuncs_po.inc");
include_once("pt/pkgfuncs_po.inc");
include_once("es/pkgfuncs_po.inc");
include_once("de/pkgfuncs_po.inc");
include_once("ru/pkgfuncs_po.inc");
include_once("fr/pkgfuncs_po.inc");
include_once("tr/pkgfuncs_po.inc");
include_once("uk/pkgfuncs_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/search_po.inc");
include_once("it/search_po.inc");
include_once("ca/search_po.inc");
include_once("pt/search_po.inc");
include_once("es/search_po.inc");
include_once("de/search_po.inc");
include_once("ru/search_po.inc");
include_once("fr/search_po.inc");
include_once("tr/search_po.inc");
include_once("uk/search_po.inc");
<?php
# INSTRUCTIONS TO TRANSLATORS
#
# This file contains the i18n translations for a subset of the
# Arch Linux User-community Repository (AUR). This is a PHP
# script, and as such, you MUST pay great attention to the syntax.
# If your text contains any double-quotes ("), you MUST escape
# them with the backslash character (\).
#
include_once("translator.inc");
global $_t;
include_once("pl/submit_po.inc");
include_once("it/submit_po.inc");
include_once("ca/submit_po.inc");
include_once("pt/submit_po.inc");
include_once("es/submit_po.inc");
include_once("de/submit_po.inc");
include_once("ru/submit_po.inc");
include_once("fr/submit_po.inc");
include_once("tr/submit_po.inc");
include_once("uk/submit_po.inc");
<?php
include_once("translator.inc");
global $_t;
include_once("ru/tu_po.inc");
include_once("it/tu_po.inc");
include_once("fr/tu_po.inc");
<?php
include_once("acctfuncs_po.inc");
include_lang('acctfuncs_po.inc');
# Display the standard Account form, pass in default values if any
#
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment