Ticket 2 :: display english text if no other is found

This commit is contained in:
Mikko Husari 2009-02-05 15:48:01 +02:00
parent 2a0aad1d4a
commit ec14717090

View File

@ -94,6 +94,7 @@ function load_language_file() {
// Load the language file // Load the language file
if (isset($languages[$lang]) && file_exists(LANG_DIR . $languages[$lang][1])) { if (isset($languages[$lang]) && file_exists(LANG_DIR . $languages[$lang][1])) {
include_once(LANG_DIR . "en_US.lang.php");
include_once(LANG_DIR . $languages[$lang][1]); include_once(LANG_DIR . $languages[$lang][1]);
global $charset; global $charset;
header("Content-Type: text/html; charset=$charset"); header("Content-Type: text/html; charset=$charset");
@ -145,8 +146,8 @@ function set_language($lang) {
} }
/** /**
* Translate the given string into the current lanaguage * Translate the given string into the current language
* If the trasnlation does not exist, returns the default * If the translation does not exist, returns the default
* lanaguage translation * lanaguage translation
* @param string $str string to translate * @param string $str string to translate
* @param array $vars optional array of variables to pass to a sprintf translation string * @param array $vars optional array of variables to pass to a sprintf translation string