#!/bin/sh
# language.sh
# Author: Daniel B. Cid <daniel.cid@gmail.com>
-# Last modification: Mar 03, 2006
-
-##########
-# catError()
-##########
catError()
{
FILE=$1;
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
if [ `isFile ${FILE_PATH}` = "${FALSE}" ]; then
echo "0x0001 - Internal error for ${FILE}"
exit 1;
- fi
+ fi
fi
-
+
cat ${FILE_PATH}
}
-
-
-## EOF ##