The following commit has been merged in the master branch:
commit abc43d47aca5ce042e0f00bf06187bc0909ef048
Author: Guillem Jover <[email protected]>
Date: Sun Sep 6 07:11:10 2009 +0200
Unify and mark strings for translation
diff --git a/scripts/Dpkg/Arch.pm b/scripts/Dpkg/Arch.pm
index 08d2a2f..c6e8658 100644
--- a/scripts/Dpkg/Arch.pm
+++ b/scripts/Dpkg/Arch.pm
@@ -119,7 +119,7 @@ sub read_cputable
local $/ = "\n";
open CPUTABLE, "$pkgdatadir/cputable"
- or syserr(_g("unable to open cputable"));
+ or syserr(_g("cannot open %s"), "cputable");
while (<CPUTABLE>) {
if (m/^(?!\#)(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)/) {
$cputable{$1} = $2;
@@ -138,7 +138,7 @@ sub read_ostable
local $/ = "\n";
open OSTABLE, "$pkgdatadir/ostable"
- or syserr(_g("unable to open ostable"));
+ or syserr(_g("cannot open %s"), "ostable");
while (<OSTABLE>) {
if (m/^(?!\#)(\S+)\s+(\S+)\s+(\S+)/) {
$ostable{$1} = $2;
@@ -157,7 +157,7 @@ sub read_triplettable()
local $/ = "\n";
open TRIPLETTABLE, "$pkgdatadir/triplettable"
- or syserr(_g("unable to open triplettable"));
+ or syserr(_g("cannot open %s"), "triplettable");
while (<TRIPLETTABLE>) {
if (m/^(?!\#)(\S+)\s+(\S+)/) {
my $debtriplet = $1;
diff --git a/scripts/Dpkg/Shlibs/Objdump.pm b/scripts/Dpkg/Shlibs/Objdump.pm
index 66355ad..4c014f0 100644
--- a/scripts/Dpkg/Shlibs/Objdump.pm
+++ b/scripts/Dpkg/Shlibs/Objdump.pm
@@ -80,7 +80,7 @@ sub has_object {
} else {
local $ENV{LC_ALL} = "C";
open(P, "-|", "objdump", "-a", "--", $file)
- || syserr(_g("cannot fork for objdump"));
+ || syserr(_g("cannot fork for %s"), "objdump");
while (<P>) {
chomp;
if (/^\s*\S+:\s*file\s+format\s+(\S+)\s*$/) {
@@ -154,7 +154,7 @@ sub _read {
local $ENV{LC_ALL} = 'C';
open(my $objdump, "-|", "objdump", "-w", "-f", "-p", "-T", "-R", $file)
- || syserr(_g("cannot fork %s"), "objdump");
+ || syserr(_g("cannot fork for %s"), "objdump");
my $ret = $self->_parse($objdump);
close($objdump);
return $ret;
diff --git a/scripts/Dpkg/Source/Package.pm b/scripts/Dpkg/Source/Package.pm
index ee346f9..3d98d95 100644
--- a/scripts/Dpkg/Source/Package.pm
+++ b/scripts/Dpkg/Source/Package.pm
@@ -369,7 +369,7 @@ sub extract {
my $srcdir = File::Spec->catdir($newdirectory, "debian", "source");
my $format_file = File::Spec->catfile($srcdir, "format");
mkdir($srcdir) unless -e $srcdir;
- open(FORMAT, ">", $format_file) || syserr(_g("can't write %s"),
$format_file);
+ open(FORMAT, ">", $format_file) || syserr(_g("cannot write %s"),
$format_file);
print FORMAT $self->{'fields'}{'Format'} . "\n";
close(FORMAT);
}
diff --git a/scripts/Dpkg/Source/Package/V2.pm
b/scripts/Dpkg/Source/Package/V2.pm
index 71b910a..613dff9 100644
--- a/scripts/Dpkg/Source/Package/V2.pm
+++ b/scripts/Dpkg/Source/Package/V2.pm
@@ -290,7 +290,7 @@ sub do_build {
my %auth_bin_files;
my $incbin_file = File::Spec->catfile($dir, "debian", "source",
"include-binaries");
if (-f $incbin_file) {
- open(INC, "<", $incbin_file) || syserr(_g("can't read %s"),
$incbin_file);
+ open(INC, "<", $incbin_file) || syserr(_g("cannot read %s"),
$incbin_file);
while(defined($_ = <INC>)) {
chomp; s/^\s*//; s/\s*$//;
next if /^#/ or /^$/;
@@ -398,7 +398,7 @@ sub do_build {
# Update debian/source/include-binaries if needed
if (scalar(@binary_files) and $include_binaries) {
mkpath(File::Spec->catdir($dir, "debian", "source"));
- open(INC, ">>", $incbin_file) || syserr(_g("can't write %s"),
$incbin_file);
+ open(INC, ">>", $incbin_file) || syserr(_g("cannot write %s"),
$incbin_file);
foreach my $binary (@binary_files) {
unless ($auth_bin_files{$binary}) {
print INC "$binary\n";
diff --git a/scripts/dpkg-gencontrol.pl b/scripts/dpkg-gencontrol.pl
index 73c9dc9..8e00cd5 100755
--- a/scripts/dpkg-gencontrol.pl
+++ b/scripts/dpkg-gencontrol.pl
@@ -293,7 +293,7 @@ if (!defined($substvars->get('Installed-Size'))) {
if (!$c) {
chdir("$packagebuilddir") ||
syserr(_g("chdir for du to \`%s'"), $packagebuilddir);
- exec("du", "-k", "-s", ".") or syserr(_g("exec du"));
+ exec("du", "-k", "-s", ".") or syserr(_g("exec %s"), "du");
}
my $duo = '';
while (<DU>) {
diff --git a/scripts/dpkg-scansources.pl b/scripts/dpkg-scansources.pl
index cd0c437..39ad9a5 100755
--- a/scripts/dpkg-scansources.pl
+++ b/scripts/dpkg-scansources.pl
@@ -356,7 +356,7 @@ sub main {
load_extra_override $Extra_override_file if defined $Extra_override_file;
open FIND, "find \Q$dir\E -follow -name '*.dsc' -print |"
- or syserr(_g("can't fork"));
+ or syserr(_g("cannot fork for %s"), "find");
while (<FIND>) {
chomp;
s-^\./+--;
diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index b1df05c..5deb549 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -799,7 +799,7 @@ sub find_packages {
return $pkgmatch unless scalar(@files);
my $pid = open(DPKG, "-|");
- syserr(_g("cannot fork for dpkg --search")) unless defined($pid);
+ syserr(_g("cannot fork for %s"), "dpkg --search") unless defined($pid);
if (!$pid) {
# Child process running dpkg --search and discarding errors
close STDERR;
diff --git a/src/enquiry.c b/src/enquiry.c
index 5c918c7..bcf374a 100644
--- a/src/enquiry.c
+++ b/src/enquiry.c
@@ -376,7 +376,7 @@ void predeppackage(const char *const *argv) {
} while (dep);
/* OK, we've found it - pkg has no unsatisfied pre-dependencies ! */
- writerecord(stdout,"<stdout>",pkg,&pkg->available);
+ writerecord(stdout, _("<standard output>"), pkg, &pkg->available);
m_output(stdout, _("<standard output>"));
}
diff --git a/src/query.c b/src/query.c
index 3520295..0ca9a87 100644
--- a/src/query.c
+++ b/src/query.c
@@ -311,7 +311,7 @@ void enqperpackage(const char *const *argv) {
fprintf(stderr,_("Package `%s' is not installed and no info is
available.\n"),pkg->name);
failures++;
} else {
- writerecord(stdout, "<stdout>", pkg, &pkg->installed);
+ writerecord(stdout, _("<standard output>"), pkg, &pkg->installed);
}
break;
@@ -320,7 +320,7 @@ void enqperpackage(const char *const *argv) {
fprintf(stderr,_("Package `%s' is not available.\n"),pkg->name);
failures++;
} else {
- writerecord(stdout, "<stdout>", pkg, &pkg->available);
+ writerecord(stdout, _("<standard output>"), pkg, &pkg->available);
}
break;
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]