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
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]);
global $charset;
header("Content-Type: text/html; charset=$charset");
@ -145,9 +146,9 @@ function set_language($lang) {
}
/**
* Translate the given string into the current lanaguage
* If the trasnlation does not exist, returns the default
* lanaguage translation
* Translate the given string into the current language
* If the translation does not exist, returns the default
* lanaguage translation
* @param string $str string to translate
* @param array $vars optional array of variables to pass to a sprintf translation string
*/