Make DEFAULT_LANG mean the default language for displayed messages.

Signed-off-by: Loui Chang <louipc.ist@gmail.com>
This commit is contained in:
Athurg Gooth 2010-01-08 17:23:09 -05:00 committed by Loui Chang
parent 55dcf5ce87
commit 8eab9ed462
3 changed files with 13 additions and 11 deletions

View file

@ -49,16 +49,16 @@ function __() {
# First argument is always string to be translated
$tag = $args[0];
if (empty($LANG) || $LANG == DEFAULT_LANG)
if (empty($LANG) || $LANG == DEFAULT_LANG){
$translated = $tag;
}
# If there is no translation, just print the given string.
if (empty($_t[$tag])) {
$translated = $tag;
}
else {
# If there is no translation, just print the given string.
if (empty($_t[$tag])) {
$translated = $tag;
}
else {
$translated = $_t[$tag];
}
$translated = $_t[$tag];
}
$translated = htmlspecialchars($translated, ENT_QUOTES);