-setlocale(LC_ALL, $cfg['lang']);
-
-bindtextdomain(JIRAFEAU_PACKAGE, JIRAFEAU_ROOT . 'lib/locale');
-textdomain(JIRAFEAU_PACKAGE);
-
-
-// useful constants
+// helping variable to build absolute link to
+// root of the domain without handling the URL scheme
+$absPrefix = parse_url($cfg['web_root'], PHP_URL_PATH);
+if (true === empty($absPrefix)) {
+ // fallback if installation isnt done yet: relative links to same level on the current page
+ $absPrefix = './';
+}
+define('JIRAFEAU_ABSPREFIX', $absPrefix);