+2008-06-27 Guillem Jover <guillem@debian.org>
+
+ * dpkg-deb/build.c (do_build): Move string translation markers outside
+ of the string.
+ * src/help.c (ensure_pathname_nonexisting): Localize the 'failed'
+ variable instead of expecting gettext to magically infer the formatted
+ string.
+ * src/processarc.c (process_archive): Likewise.
+
2008-06-27 Raphael Hertzog <hertzog@debian.org>
* scripts/install-info.pl: Improve error message when the
default:
ohshit(_("Internal error, compress_type `%i' unknown!"), compress_type);
}
- if (fstat(gzfd,&datastab)) ohshite("_(failed to fstat tmpfile (data))");
+ if (fstat(gzfd, &datastab))
+ ohshite(_("failed to fstat tmpfile (data)"));
if (fprintf(ar,
"%s"
"%s" "%-12lu0 0 100644 %-10ld`\n",
if (errno == ENOTDIR) return;
}
if (errno != ENOTEMPTY && errno != EEXIST) { /* Huh ? */
- char mbuf[250];
- snprintf(mbuf, sizeof(mbuf), N_("failed to %s `%%.255s'"), failed);
- ohshite(_(mbuf),pathname);
+ const char *failed_local = gettext(failed);
+
+ ohshite(_("failed to %s '%.255s'"), failed_local, pathname);
}
c1= m_fork();
if (!c1) {
failed= N_("delete");
if (chmodsafe_unlink_statted(fnamevb.buf, &oldfs, &failed)) {
- char mbuf[250];
- snprintf(mbuf, sizeof(mbuf),
- N_("dpkg: warning - unable to %s old file `%%.250s': %%s\n"),
- failed);
- fprintf(stderr, _(mbuf), namenode->name, strerror(errno));
+ const char *failed_local = gettext(failed);
+
+ fprintf(stderr, _("dpkg: warning - unable to %s old file '%.250s': %s\n"),
+ failed_local, namenode->name, strerror(errno));
}
} /* !S_ISDIR */