From 1a1a6eb36e17315f08eee0e44a83fe4bdf0887f5 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Wed, 9 Jul 2008 14:38:08 -0400 Subject: Add a new DEFAULT_LANG constant. 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 which can cause validation errors depending on where the string is placed. Signed-off-by: Loui Chang --- web/lib/config.inc.proto | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'web/lib/config.inc.proto') diff --git a/web/lib/config.inc.proto b/web/lib/config.inc.proto index 7a0a155..505fa7c 100644 --- a/web/lib/config.inc.proto +++ b/web/lib/config.inc.proto @@ -16,9 +16,12 @@ define( "USERNAME_MAX_LEN", 16 ); define( "PASSWD_MIN_LEN", 4 ); define( "PASSWD_MAX_LEN", 128 ); -$LOGIN_TIMEOUT = 7200; # number of idle seconds before timeout +# Language that messages are initially written in. +# This should never change. +define("DEFAULT_LANG", "en"); -$SUPPORTED_LANGS = array( # what languages we have translations for +# Languages we have translations for +$SUPPORTED_LANGS = array( "en" => "English", "pl" => "Polski", "it" => "Italiano", @@ -30,4 +33,6 @@ $SUPPORTED_LANGS = array( # what languages we have translations for "fr" => "Français" ); -?> +# Idle seconds before timeout +$LOGIN_TIMEOUT = 7200; + -- cgit v1.2.3-70-g09d2 From 1d416d6891d2945af6bfcc67ebfeb89e83195c60 Mon Sep 17 00:00:00 2001 From: Loui Chang Date: Tue, 19 Aug 2008 15:35:58 -0400 Subject: Add Turkish to SUPPORTED_LANGS in config.inc.proto. Signed-off-by: Loui Chang --- web/lib/config.inc.proto | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'web/lib/config.inc.proto') diff --git a/web/lib/config.inc.proto b/web/lib/config.inc.proto index 505fa7c..7248b93 100644 --- a/web/lib/config.inc.proto +++ b/web/lib/config.inc.proto @@ -22,15 +22,16 @@ define("DEFAULT_LANG", "en"); # Languages we have translations for $SUPPORTED_LANGS = array( + "ca" => "Català", + "de" => "Deutsch", "en" => "English", - "pl" => "Polski", + "es" => "Español", + "fr" => "Français", "it" => "Italiano", - "ca" => "Català", + "pl" => "Polski", "pt" => "Português", - "es" => "Español", - "de" => "Deutsch", "ru" => "Русский", - "fr" => "Français" + "tr" => "Türkçe" ); # Idle seconds before timeout -- cgit v1.2.3-70-g09d2