git@sv
/
enscript.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6f1eead
)
src/main.c: String fixes for translators.
author
Tim Retout
<diocles@gnu.org>
Sun, 10 Jul 2011 11:44:19 +0000
(12:44 +0100)
committer
Tim Retout
<diocles@gnu.org>
Sun, 10 Jul 2011 11:44:19 +0000
(12:44 +0100)
Signed-off-by: Tim Retout <diocles@gnu.org>
ChangeLog
patch
|
blob
|
history
src/main.c
patch
|
blob
|
history
diff --git
a/ChangeLog
b/ChangeLog
index
55ceb06
..
ec50b70
100644
(file)
--- a/
ChangeLog
+++ b/
ChangeLog
@@
-1,5
+1,9
@@
2011-07-10 Tim Retout <diocles@gnu.org>
2011-07-10 Tim Retout <diocles@gnu.org>
+ * src/main.c (main): Join ENSCRIPT_LIBRARY error string together
+ for the benefit of translators.
+ Use ngettext when printing number of pages/copies.
+
* states/hl/mail.st: Support extended mail headers.
Savannah bug #25440.
* states/hl/mail.st: Support extended mail headers.
Savannah bug #25440.
diff --git
a/src/main.c
b/src/main.c
index
3e8fe09
..
e864e85
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-1085,10
+1085,8
@@
_("This is probably an installation error. Please, try to rebuild:")));
ERROR ((stderr, _("\tmake")));
ERROR ((stderr, _("\tmake check")));
ERROR ((stderr, _("\tmake install")));
ERROR ((stderr, _("\tmake")));
ERROR ((stderr, _("\tmake check")));
ERROR ((stderr, _("\tmake install")));
- ERROR ((stderr,
-_("or set the environment variable `ENSCRIPT_LIBRARY' to point to your")));
- ERROR ((stderr,
-_("library directory.")));
+ ERROR ((stderr, _("or set the environment variable `ENSCRIPT_LIBRARY'"
+ " to point to your library directory.")));
exit (1);
}
exit (1);
}
@@
-1755,9
+1753,16
@@
name width\theight\tllx\tlly\turx\tury\n\
else
real_total_pages = total_pages;
else
real_total_pages = total_pages;
- /* We did something, tell what. */
- MESSAGE (0, (stderr, _("[ %d pages * %d copy ]"), real_total_pages,
- num_copies));
+ /* We did something, tell what. */
+ char message[80];
+ snprintf(message, sizeof message, "%s%s%s%s%s",
+ "[ ",
+ ngettext("%d page", "%d pages", real_total_pages),
+ " * ",
+ ngettext("%d copy", "%d copies", num_copies),
+ " ]");
+ MESSAGE (0, (stderr, message, real_total_pages, num_copies));
+
if (output_file == OUTPUT_FILE_NONE)
MESSAGE (0, (stderr, _(" sent to %s\n"),
printer ? printer : _("printer")));
if (output_file == OUTPUT_FILE_NONE)
MESSAGE (0, (stderr, _(" sent to %s\n"),
printer ? printer : _("printer")));