require_once "include/dba.php";
-if (! function_exists('get_browser_language')) {
/**
* @brief get the prefered language from the HTTP_ACCEPT_LANGUAGE header
*/
// in case none matches, get the system wide configured language, or fall back to English
return Config::get('system', 'language', 'en');
-}}
+}
function push_lang($language) {
// l
-if (! function_exists('load_translation_table')) {
/**
* load string translation table for alternate language
*
include("view/lang/$lang/strings.php");
}
-}}
+}
/**
* @brief Return the localized version of the provided string with optional string interpolation