]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/lang.php
Update add debug
[bacula/bacula] / gui / bacula-web / lang.php
index 5a079d61fd0d6da0778b055438868f9ce4716419..0d86ac6136f7d2f3f1abf5eee5f4d24653600104 100644 (file)
@@ -1,7 +1,7 @@
 <?
 /* 
 +-------------------------------------------------------------------------+
-| Copyright (C) 2004 Juan Luis Francés Jiménez                            |
+| Copyright (C) 2004-2005 Juan Luis Frances Jiminez                       |
 |                                                                         |
 | This program is free software; you can redistribute it and/or           |
 | modify it under the terms of the GNU General Public License             |
 // and we check if it is present at the system
 
 if ( function_exists("gettext") ) {
-       require($smarty_gettext_path."smarty_gettext.php");     
-       $smarty->register_block('t','smarty_translate');
-       
-       $vars = $smarty->get_config_vars();
-       $language = $vars[lang];
-       $domain = "messages";   
-       putenv("LANG=$language"); 
-       setlocale(LC_ALL, $language);
-       bindtextdomain($domain,"./locale");
-       textdomain($domain);
+        require($smarty_gettext_path."smarty_gettext.php");     
+        $smarty->register_block('t','smarty_translate');
+        
+        $vars = $smarty->get_config_vars();
+        $language = $vars['lang'];
+        $domain = "messages";   
+        putenv("LANG=$language"); 
+        setlocale(LC_ALL, $language);
+        bindtextdomain($domain,"./locale");
+        textdomain($domain);
 }
 else {
-       function smarty_translate($params, $text, &$smarty) {
-               return $text;
-       }
-       $smarty->register_block('t','smarty_translate');
+        function smarty_translate($params, $text, &$smarty) {
+                return $text;
+        }
+        $smarty->register_block('t','smarty_translate');
 }
-?>
\ No newline at end of file
+?>