diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2001-02-14 17:22:34 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2001-02-14 17:22:34 +0000 |
commit | 217226efe1f63f3b9383e22a6c2616a118d1e6de (patch) | |
tree | d3e026a2307be35f057d5fbc398df27a262c1590 /urpmf | |
parent | 2a2de4e6275563b1d974f695ef87fa7748df6520 (diff) | |
download | urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.tar urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.tar.gz urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.tar.bz2 urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.tar.xz urpmi-217226efe1f63f3b9383e22a6c2616a118d1e6de.zip |
i18n improvements
Diffstat (limited to 'urpmf')
-rwxr-xr-x | urpmf | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -1,7 +1,15 @@ #!/bin/sh +# NOTE TO MANTAINERS: when you add a string that is displayed to +# the user use $ECHO not echo (that will use gettext if available) + +# i18n support +ECHO=`which gettext 2> /dev/null` +[ -z "$ECHO" ] && ECHO="echo" || ECHO="$ECHO -s" +TEXTDOMAIN="urpmi" + if [ "$#" -gt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then - echo "usage: rpmf [<file>]" + $ECHO "usage: rpmf [<file>]" exit 1 fi @@ -11,7 +19,7 @@ dir="/var/lib/urpmi" if /bin/ls $dir/hdlist.* >/dev/null 2>/dev/null; then packdrake -c $dir/hdlist.* | parsehdlist --files --quiet - | grep -E "$1" else - echo "urpmi is not installed" + $ECHO "urpmi is not installed" exit 1 fi |