X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Finit%2Flanguage.sh;h=5fc05cd6633f9cdfcaf25984f754ad36bf38623d;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=128200b77c14880f5dd48df94d6aa94a426bbb6f;hpb=914feba5d54f979cd5d7e69c349c3d01f630042a;p=ossec-hids.git diff --git a/src/init/language.sh b/src/init/language.sh index 128200b..5fc05cd 100755 --- a/src/init/language.sh +++ b/src/init/language.sh @@ -1,12 +1,7 @@ #!/bin/sh # language.sh # Author: Daniel B. Cid -# 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 ##