Prechádzať zdrojové kódy

Expand numeric literals and word abbreviation in usage error output

This avoids unneeded abbreviations, uses correct english, and should
help translators.
Guillem Jover 15 rokov pred
rodič
commit
62449a0a27

+ 1 - 1
scripts/dpkg-scanpackages.pl

@@ -155,7 +155,7 @@ sub load_override_extra
 usage() and exit 1 if not $result;
 usage() and exit 1 if not $result;
 
 
 if (not @ARGV >= 1 && @ARGV <= 3) {
 if (not @ARGV >= 1 && @ARGV <= 3) {
-    usageerr(_g("1 to 3 args expected"));
+    usageerr(_g("one to three arguments expected"));
 }
 }
 
 
 my $type = defined($options{type}) ? $options{type} : 'deb';
 my $type = defined($options{type}) ? $options{type} : 'deb';

+ 1 - 1
scripts/dpkg-scansources.pl

@@ -299,7 +299,7 @@ sub main {
     my (@out);
     my (@out);
 
 
     GetOptions(@Option_spec) or usage;
     GetOptions(@Option_spec) or usage;
-    @ARGV >= 1 && @ARGV <= 3 or usageerr(_g("1 to 3 args expected\n"));
+    @ARGV >= 1 && @ARGV <= 3 or usageerr(_g("one to three arguments expected"));
 
 
     push @ARGV, undef		if @ARGV < 2;
     push @ARGV, undef		if @ARGV < 2;
     push @ARGV, ''		if @ARGV < 3;
     push @ARGV, ''		if @ARGV < 3;