summaryrefslogtreecommitdiff
path: root/build/spec.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/spec.c')
-rw-r--r--build/spec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/build/spec.c b/build/spec.c
index 7b1afabf6..c50af5ba4 100644
--- a/build/spec.c
+++ b/build/spec.c
@@ -1,5 +1,6 @@
#include "system.h"
+#include "intl.h"
#include "rpmbuild.h"
#include "buildio.h"
@@ -26,7 +27,7 @@ void freeCpioList(struct cpioFileMapping *cpioList, int cpioCount)
struct cpioFileMapping *p = cpioList;
while (cpioCount--) {
- rpmMessage(RPMMESS_DEBUG, "archive = %s, fs = %s\n",
+ rpmMessage(RPMMESS_DEBUG, _("archive = %s, fs = %s\n"),
p->archivePath, p->fsPath);
FREE(p->archivePath);
FREE(p->fsPath);
@@ -214,13 +215,13 @@ int parseNoSource(Spec spec, char *field, int tag)
field = buf;
while ((s = strtok(field, ", \t"))) {
if (parseNum(s, &num)) {
- rpmError(RPMERR_BADSPEC, "line %d: Bad number: %s",
+ rpmError(RPMERR_BADSPEC, _("line %d: Bad number: %s"),
spec->lineNum, spec->line);
return RPMERR_BADSPEC;
}
if (! (p = findSource(spec, num, flag))) {
- rpmError(RPMERR_BADSPEC, "line %d: Bad no%s number: %d",
+ rpmError(RPMERR_BADSPEC, _("line %d: Bad no%s number: %d"),
spec->lineNum, name, num);
return RPMERR_BADSPEC;
}
@@ -278,7 +279,7 @@ int addSource(Spec spec, Package pkg, char *field, int tag)
num = 0;
} else {
if (parseNum(buf, &num)) {
- rpmError(RPMERR_BADSPEC, "line %d: Bad %s number: %s\n",
+ rpmError(RPMERR_BADSPEC, _("line %d: Bad %s number: %s\n"),
spec->lineNum, name, spec->line);
return RPMERR_BADSPEC;
}