Making help.sh and version.sh messages translatable.
This commit is contained in:
parent
985ad93f4a
commit
b069a5053b
|
@ -9,31 +9,29 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#FIXME: put this in l10n standard
|
|
||||||
Help ()
|
Help ()
|
||||||
{
|
{
|
||||||
echo "${PROGRAM} - ${DESCRIPTION}"
|
Echo "%s - %s" "${PROGRAM}" "${DESCRIPTION}"
|
||||||
echo
|
echo
|
||||||
echo "Usage:"
|
Echo "Usage:"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -n "${USAGE}" ]
|
if [ -n "${USAGE}" ]
|
||||||
then
|
then
|
||||||
/bin/echo -e "${USAGE}"
|
Echo "%s" "${USAGE}"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
Echo " %s [-h|--help]" "${PROGRAM}"
|
||||||
echo " ${PROGRAM} [-h|--help]"
|
Echo " %s [-u|--usage]" "${PROGRAM}"
|
||||||
echo " ${PROGRAM} [-u|--usage]"
|
Echo " %s [-v|--version]" "${PROGRAM}"
|
||||||
echo " ${PROGRAM} [-v|--version]"
|
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -n "${HELP}" ]
|
if [ -n "${HELP}" ]
|
||||||
then
|
then
|
||||||
echo "${HELP}"
|
Echo "%s" "${HELP}"
|
||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Report bugs to Debian Live project <http://debian-live.alioth.debian.org/>."
|
Echo "Report bugs to Debian Live project <http://debian-live.alioth.debian.org/>."
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,31 +9,30 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
#FIXME: put this in l10n standard
|
|
||||||
Version ()
|
Version ()
|
||||||
{
|
{
|
||||||
echo "${PROGRAM}, version ${VERSION}"
|
Echo "%s, version %s" "${PROGRAM}" "${VERSION}"
|
||||||
echo "This program is a part of live-helper."
|
Echo "This program is a part of live-helper."
|
||||||
echo
|
echo
|
||||||
echo "Copyright (C) 2006-2008 Daniel Baumann <daniel@debian.org>"
|
Echo "Copyright (C) 2006-2008 Daniel Baumann <daniel@debian.org>"
|
||||||
echo
|
echo
|
||||||
echo "This program is free software: you can redistribute it and/or modify"
|
Echo "This program is free software: you can redistribute it and/or modify"
|
||||||
echo "it under the terms of the GNU General Public License as published by"
|
Echo "it under the terms of the GNU General Public License as published by"
|
||||||
echo "the Free Software Foundation, either version 3 of the License, or"
|
Echo "the Free Software Foundation, either version 3 of the License, or"
|
||||||
echo "(at your option) any later version."
|
Echo "(at your option) any later version."
|
||||||
echo
|
echo
|
||||||
echo "This program is distributed in the hope that it will be useful,"
|
Echo "This program is distributed in the hope that it will be useful,"
|
||||||
echo "but WITHOUT ANY WARRANTY; without even the implied warranty of"
|
Echo "but WITHOUT ANY WARRANTY; without even the implied warranty of"
|
||||||
echo "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
|
Echo "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the"
|
||||||
echo "GNU General Public License for more details."
|
Echo "GNU General Public License for more details."
|
||||||
echo
|
echo
|
||||||
echo "You should have received a copy of the GNU General Public License"
|
Echo "You should have received a copy of the GNU General Public License"
|
||||||
echo "along with this program. If not, see <http://www.gnu.org/licenses/>."
|
Echo "along with this program. If not, see <http://www.gnu.org/licenses/>."
|
||||||
echo
|
echo
|
||||||
echo "On Debian systems, the complete text of the GNU General Public License"
|
Echo "On Debian systems, the complete text of the GNU General Public License"
|
||||||
echo "can be found in /usr/share/common-licenses/GPL-3 file."
|
Echo "can be found in /usr/share/common-licenses/GPL-3 file."
|
||||||
echo
|
echo
|
||||||
echo "Homepage: <http://debian-live.alioth.debian.org/>"
|
Echo "Homepage: <http://debian-live.alioth.debian.org/>"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue