diff options
author | Giovanni Scafora <linuxmania@gmail.com> | 2007-06-04 01:21:14 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-04 16:54:25 -0400 |
commit | ecb594107edf66f190b19e78cf71378ddbe347fc (patch) | |
tree | f51240f38b8de0ba498e27a7cb1d6ce94a95005b /scripts/abs.in | |
parent | d0679da4f32158b3091bd2862c4b9ce7efc5db29 (diff) | |
download | pacman-ecb594107edf66f190b19e78cf71378ddbe347fc.tar.xz |
Add gettext/i18n to most of the currently-used scripts
Signed-off-by: Giovanni Scafora <linuxmania@gmail.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'scripts/abs.in')
-rw-r--r-- | scripts/abs.in | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/scripts/abs.in b/scripts/abs.in index 42ad56af..5daa65c8 100644 --- a/scripts/abs.in +++ b/scripts/abs.in @@ -21,6 +21,10 @@ # USA. # +# gettext initialization +export TEXTDOMAIN='pacman' +export TEXTDOMAINDIR='@localedir@' + myver='@PACKAGE_VERSION@' CONFDIR="@sysconfdir@/abs" CONNMODE="m" @@ -31,14 +35,16 @@ CONNMODE="m" [ -f ~/.abs.conf ] && source ~/.abs.conf usage() { - echo "Arch Build System -- synchronization utility" - echo "usage: $0 [-p] [repository1 [repository2 ...]]" + printf "abs (pacman) %s\n" "$myver" + echo + printf "$(gettext "Usage: %s [-p] [repository1 [repository2 ...]]")\n" "$0" + echo + printf "$(gettext "abs will synchronize PKGBUILD scripts from the CVS repository")\n" + printf "$(gettext "into %s. You can follow different package trees by")\n" "$ABSROOT" + printf "$(gettext "editing %s files. If no argument is given, abs")\n" "$CONFDIR/supfile.*" + printf "$(gettext "will synchronize from supfiles specified in %s.")\n" "$CONFDIR/abs.conf" + printf "$(gettext "If -p is specified, the connection is opened in passive mode.")\n" echo - echo "abs will synchronize PKGBUILD scripts from the CVS repository" - echo "into $ABSROOT. You can follow different package trees by" - echo "editing @SYSCONFDIR@/abs/supfile.* files. If no argument is given, abs " - echo "will synchronize from supfiles specified in @SYSCONFDIR@/abs/abs.conf." - echo "If -p is specified, the connection is opened in passive mode." } version() { @@ -79,11 +85,11 @@ if [ "$1" = "-V" -o "$1" = "--version" ]; then fi if [ ! -d "$ABSROOT" ]; then - echo "abs: $ABSROOT does not exist (or is not a directory)" + echo "$(gettext "abs: %s does not exist (or is not a directory).")" "$ABSROOT" exit 1 fi if [ ! -w "$ABSROOT" ]; then - echo "abs: no write permissions in $ABSROOT" + echo "$(gettext "abs: no write permissions in %s.")" "$ABSROOT" exit 1 fi @@ -92,7 +98,7 @@ if [ "$(type -p cvsup)" ]; then elif [ "$(type -p csup)" ]; then CVSUP="csup" else - echo "abs: missing CVS synchronization utility. Install cvsup or csup." + echo "$(gettext "abs: missing CVS synchronization utility. Install cvsup or csup.")" exit 1 fi |