mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
DEFAULT_LANG will essentially be used to specify what language strings are initially written in. This will eliminate the need for English translation arrays in AUR and make adding or changing the English strings a lot easier. DEFAULT_LANG may be required for strings to display properly. Also change the output when a translation isn't found. Eliminate the <b> which can cause validation errors depending on where the string is placed. Signed-off-by: Loui Chang <louipc.ist@gmail.com>
38 lines
971 B
Protocol Buffer
38 lines
971 B
Protocol Buffer
<?php
|
|
# NOTE: modify these variables if your MySQL setup is different
|
|
#
|
|
define( "AUR_db_host", "localhost:/tmp/mysql.sock" );
|
|
define( "AUR_db_name", "AUR" );
|
|
define( "AUR_db_user", "aur" );
|
|
define( "AUR_db_pass", "aur" );
|
|
|
|
# Configuration of directories where things live
|
|
define( "UPLOAD_DIR", "/home/aur/unsupported-temp/" );
|
|
define( "INCOMING_DIR", "/home/aur/unsupported/" );
|
|
define( "URL_DIR", "/packages/" );
|
|
|
|
define( "USERNAME_MIN_LEN", 3 );
|
|
define( "USERNAME_MAX_LEN", 16 );
|
|
define( "PASSWD_MIN_LEN", 4 );
|
|
define( "PASSWD_MAX_LEN", 128 );
|
|
|
|
# Language that messages are initially written in.
|
|
# This should never change.
|
|
define("DEFAULT_LANG", "en");
|
|
|
|
# Languages we have translations for
|
|
$SUPPORTED_LANGS = array(
|
|
"en" => "English",
|
|
"pl" => "Polski",
|
|
"it" => "Italiano",
|
|
"ca" => "Català",
|
|
"pt" => "Português",
|
|
"es" => "Español",
|
|
"de" => "Deutsch",
|
|
"ru" => "Русский",
|
|
"fr" => "Français"
|
|
);
|
|
|
|
# Idle seconds before timeout
|
|
$LOGIN_TIMEOUT = 7200;
|
|
|