static function loadProjectLanguagePack($project, $output_encoding = "utf-8")
    {

        ReporticoApp::set("translations", array());

        // Include project specific language translations these could be
        // held in the file lang.php or lang_<language>.php
        $langfile = "projects/$project/lang_" . ReporticoApp::getConfig("language") . ".php";
        if (is_file($langfile)) {
            include $langfile;
        } else {
            ReporticoUtility::findFileToInclude($langfile, $langfile);
            if (is_file($langfile)) {
                include $langfile;
            } else {
                $langfile = "projects/$project/lang.php";
                if (!is_file($langfile)) {
                    ReporticoUtility::findFileToInclude($langfile, $langfile);
                }

                if (is_file($langfile)) {
                    include $langfile;
                }
            }
        }

        $translation = ReporticoApp::get("translations");
        $langage = ReporticoApp::getConfig("language");
        if (isset($translation[$langage]) && is_array($translation[$langage])) {
            // Convert UTF-8 mode to output character set if differen from native language pack
            if (strtolower($output_encoding) != "utf-8") {
                foreach ($translation[$langage] as $k => $v) {
                    $translation["template"][$k] = iconv("utf-8", $output_encoding, $v);
                }
            }
        }
    }