Making usage.sh messages translatable.

This commit is contained in:
Tiago Bortoletto Vaz 2008-08-14 21:46:19 +02:00 committed by Daniel Baumann
parent c316f6cdbd
commit 2ede4f2f62
1 changed files with 7 additions and 8 deletions

View File

@ -9,25 +9,24 @@
set -e
#FIXME: put this in l10n standard
Usage ()
{
echo "${PROGRAM} - ${DESCRIPTION}"
Echo "%s - %s" "${PROGRAM}" "${DESCRIPTION}"
echo
echo "Usage:"
Echo "Usage:"
echo
if [ -n "${USAGE}" ]
then
echo " ${USAGE}"
Echo " %s" "${USAGE}"
echo
fi
echo " ${PROGRAM} [-h|--help]"
echo " ${PROGRAM} [-u|--usage]"
echo " ${PROGRAM} [-v|--version]"
Echo " %s [-h|--help]" "${PROGRAM}"
Echo " %s [-u|--usage]" "${PROGRAM}"
Echo " %s [-v|--version]" "${PROGRAM}"
echo
echo "Try \"${PROGRAM} --help\" for more information."
Echo "Try \" %s--help\" for more information." "${PROGRAM}"
exit 1
}