diff options
author | Benno Schulenberg | 2011-07-30 19:21:52 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-02 14:13:44 +0200 |
commit | 0149cd8468a7ebc8a5d331c7baca3944de0acf08 (patch) | |
tree | ccf416c6832e000a0a55bb116943a5092d82afca | |
parent | include: [nls.h] define a macro for handling plurals with ngettext() (diff) | |
download | kernel-qcow2-util-linux-0149cd8468a7ebc8a5d331c7baca3944de0acf08.tar.gz kernel-qcow2-util-linux-0149cd8468a7ebc8a5d331c7baca3944de0acf08.tar.xz kernel-qcow2-util-linux-0149cd8468a7ebc8a5d331c7baca3944de0acf08.zip |
uuidd: distinguish between singular and plural in three messages
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
-rw-r--r-- | misc-utils/uuidd.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 93cb17441..cf1b37bf1 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -376,8 +376,11 @@ static void server_loop(const char *socket_path, const char *pidfile_path, __uuid_generate_time(uu, &num); if (debug) { uuid_unparse(uu, str); - printf(_("Generated time UUID %s and %d " - "following\n"), str, num - 1); + printf(P_("Generated time UUID %s " + "and %d following\n", + "Generated time UUID %s " + "and %d following\n", num - 1), + str, num - 1); } memcpy(reply_buf, uu, sizeof(uu)); reply_len = sizeof(uu); @@ -394,7 +397,8 @@ static void server_loop(const char *socket_path, const char *pidfile_path, __uuid_generate_random((unsigned char *) reply_buf + sizeof(num), &num); if (debug) { - printf(_("Generated %d UUIDs:\n"), num); + printf(P_("Generated %d UUID:\n", + "Generated %d UUIDs:\n", num), num); for (i = 0, cp = reply_buf + sizeof(num); i < num; i++, cp += UUID_LEN) { @@ -543,7 +547,9 @@ int main(int argc, char **argv) uuid_unparse((unsigned char *) buf, str); - printf(_("%s and subsequent %d UUIDs\n"), str, num - 1); + printf(P_("%s and %d subsequent UUID\n", + "%s and %d subsequent UUIDs\n", num - 1), + str, num - 1); } else { printf(_("List of UUIDs:\n")); cp = buf + 4; |