Making usage.sh messages translatable.
This commit is contained in:
parent
c316f6cdbd
commit
2ede4f2f62
|
@ -9,25 +9,24 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#FIXME: put this in l10n standard
|
|
||||||
Usage ()
|
Usage ()
|
||||||
{
|
{
|
||||||
echo "${PROGRAM} - ${DESCRIPTION}"
|
Echo "%s - %s" "${PROGRAM}" "${DESCRIPTION}"
|
||||||
echo
|
echo
|
||||||
echo "Usage:"
|
Echo "Usage:"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -n "${USAGE}" ]
|
if [ -n "${USAGE}" ]
|
||||||
then
|
then
|
||||||
echo " ${USAGE}"
|
Echo " %s" "${USAGE}"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo " ${PROGRAM} [-h|--help]"
|
Echo " %s [-h|--help]" "${PROGRAM}"
|
||||||
echo " ${PROGRAM} [-u|--usage]"
|
Echo " %s [-u|--usage]" "${PROGRAM}"
|
||||||
echo " ${PROGRAM} [-v|--version]"
|
Echo " %s [-v|--version]" "${PROGRAM}"
|
||||||
echo
|
echo
|
||||||
echo "Try \"${PROGRAM} --help\" for more information."
|
Echo "Try \" %s--help\" for more information." "${PROGRAM}"
|
||||||
|
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue