Fixed cash only payment terms.
[fa-stable.git] / includes / lang / gettext.php
index 16768d677df3041406fd406fc8c22688d7e1f1df..3dc2e88df711bbbc0a2870f45dcf2ef9b40aece0 100644 (file)
@@ -127,6 +127,8 @@ class gettext_native_support
     {
         if ($path === false) 
                $path = "./locale";
+           if ($domain == "")
+               $domain = "?";
                if ($version) {
        // To avoid need for apache server restart after change of *.mo file
        // we have to include file version as part of filename.
@@ -532,9 +534,14 @@ class gettext_php_support_compiler
     }
 }
 
-/**
-* get_text related error.
+/*
+       Set current gettext domain path
 */
-//class GetText_Error extends PEAR_Error {}
+function set_ext_domain($path='') {
+       global $path_to_root;
 
+       $_SESSION['get_text']->add_domain($_SESSION['language']->code,
+               $path_to_root . ($path ? '/' : '') .$path.'/lang',
+               $path ? '' : $_SESSION['language']->version);
+}
 ?>