new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / init / language.sh
index 128200b..5fc05cd 100755 (executable)
@@ -1,12 +1,7 @@
 #!/bin/sh
 # language.sh
 # Author: Daniel B. Cid <daniel.cid@gmail.com>
-# Last modification: Mar 03, 2006
 
-
-##########
-# catError()
-##########
 catError()
 {
     FILE=$1;
@@ -19,20 +14,16 @@ catError()
         if [ `isFile ${FILE_PATH}` = "${FALSE}" ]; then
             echo "0x0000 - Internal error for ${FILE}"
             exit 1;
-        fi     
+        fi
     fi
     cat ${FILE_PATH}
     exit 1;
 }
 
-
-##########
-# catMsg()
-##########
 catMsg()
 {
     FILE=$1;
-    
+
     FILE_PATH="${TEMPLATE}/${LANGUAGE}/${MSG}/${FILE}.txt"
     if [ `isFile ${FILE_PATH}` = "${FALSE}" ]; then
         # If we can't file in that specific language, try
@@ -42,12 +33,9 @@ catMsg()
         if [ `isFile ${FILE_PATH}` = "${FALSE}" ]; then
             echo "0x0001 - Internal error for ${FILE}"
             exit 1;
-        fi    
+        fi
     fi
-    
+
     cat ${FILE_PATH}
 }
 
-
-
-## EOF ##