Module: nagvis
Branch: master
Commit: 47dcb89b6ab5f4142d7f451c9395a28d05e1867b
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=47dcb89b6ab5f4142d7f451c9395a28d05e1867b

Author: LaMi <[email protected]>
Date:   Mon Nov 16 19:24:55 2009 +0100

Changed main configuration validation language strings to real english strings 
for working around possible translation problems

---

 share/server/core/classes/GlobalMainCfg.php |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/share/server/core/classes/GlobalMainCfg.php 
b/share/server/core/classes/GlobalMainCfg.php
index 3d3af84..57a1684 100644
--- a/share/server/core/classes/GlobalMainCfg.php
+++ b/share/server/core/classes/GlobalMainCfg.php
@@ -1029,7 +1029,7 @@ class GlobalMainCfg {
                                                        // value is "must"
                                                        
if($this->getValue($type,$key) == '') {
                                                                // a "must" 
value is missing or empty
-                                                               new 
GlobalMessage('ERROR', 
GlobalCore::getInstance()->getLang()->getText('mainMustValueNotSet', 
Array('ATTRIBUTE' => $key, 'TYPE' => $type)));
+                                                               new 
GlobalMessage('ERROR', GlobalCore::getInstance()->getLang()->getText('The 
needed attribute [ATTRIBUTE] is missing in section [TYPE] in main configuration 
file. Please take a look at the documentation.', Array('ATTRIBUTE' => $key, 
'TYPE' => $type)));
                                                                return FALSE;
                                                        }
                                                }
@@ -1054,13 +1054,13 @@ class GlobalMainCfg {
                                                        
if(!isset($arrValidConfig[$key])) {
                                                                // unknown 
attribute
                                                                if($printErr) {
-                                                                       new 
GlobalMessage('ERROR', 
GlobalCore::getInstance()->getLang()->getText('unknownValue', Array('ATTRIBUTE' 
=> $key, 'TYPE' => $type)));
+                                                                       new 
GlobalMessage('ERROR', GlobalCore::getInstance()->getLang()->getText('Unknown 
value [ATTRIBUTE] used in section [TYPE] in main configuration file.', 
Array('ATTRIBUTE' => $key, 'TYPE' => $type)));
                                                                }
                                                                return FALSE;
                                                        } 
elseif(isset($arrValidConfig[$key]['deprecated']) && 
$arrValidConfig[$key]['deprecated'] == 1) {
                                                                // deprecated 
option
                                                                if($printErr) {
-                                                                       new 
GlobalMessage('ERROR', 
GlobalCore::getInstance()->getLang()->getText('deprecatedOption', 
Array('ATTRIBUTE' => $key, 'TYPE' => $type)));
+                                                                       new 
GlobalMessage('ERROR', GlobalCore::getInstance()->getLang()->getText('The 
attribute [ATTRIBUTE] in section [TYPE] in main configuration file is 
deprecated. Please take a look at the documentation for updating your 
configuration.', Array('ATTRIBUTE' => $key, 'TYPE' => $type)));
                                                                }
                                                                return FALSE;
                                                        } else {
@@ -1083,7 +1083,7 @@ class GlobalMainCfg {
                                                                
if(!preg_match($arrValidConfig[$key]['match'],$val)) {
                                                                        // 
wrong format
                                                                        
if($printErr) {
-                                                                               
new GlobalMessage('ERROR', 
GlobalCore::getInstance()->getLang()->getText('wrongValueFormat', 
Array('ATTRIBUTE' => $key, 'TYPE' => $type)));
+                                                                               
new GlobalMessage('ERROR', GlobalCore::getInstance()->getLang()->getText('The 
attribute [ATTRIBUTE] in section [TYPE] in main configuration file does not 
match the correct format. Please review your configuration.', Array('ATTRIBUTE' 
=> $key, 'TYPE' => $type)));
                                                                        }
                                                                        return 
FALSE;
                                                                }
@@ -1101,7 +1101,7 @@ class GlobalMainCfg {
                                } else {
                                        // unknown type
                                        if($printErr) {
-                                               new GlobalMessage('ERROR', 
GlobalCore::getInstance()->getLang()->getText('unknownSection', 'TYPE~'.$type));
+                                               new GlobalMessage('ERROR', 
GlobalCore::getInstance()->getLang()->getText('The section [TYPE] is not 
supported in main configuration. Please take a look at the documentation.', 
'TYPE~'.$type));
                                        }
                                        return FALSE;
                                }


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to