Hi,
The help message of `partprobe` is not getting localized, because it
forgets to set its textdomain. Attached patch fixes this.
The "#if ! ENABLE_NLS" lines at the top of partprobe.c can probably
be removed, by the way. And the copyright year in parted.c needs
an update.
Benno
>From 9ac9fa9771cc892767995af0567cb1535f9c18de Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <[EMAIL PROTECTED]>
Date: Thu, 16 Aug 2007 14:46:07 +0200
Subject: [PATCH] Set the textdomain for localization.
Signed-off-by: Benno Schulenberg <[EMAIL PROTECTED]>
---
partprobe/partprobe.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/partprobe/partprobe.c b/partprobe/partprobe.c
index d494384..0e9ac39 100644
--- a/partprobe/partprobe.c
+++ b/partprobe/partprobe.c
@@ -166,6 +166,12 @@ main (int argc, char* argv[])
program_name = argv[0];
atexit (close_stdout);
+#ifdef ENABLE_NLS
+ setlocale(LC_ALL, "");
+ bindtextdomain(PACKAGE, LOCALEDIR);
+ textdomain(PACKAGE);
+#endif
+
int c;
while ((c = getopt_long (argc, argv, "dhsv", long_options, NULL)) != -1)
switch (c) {
--
1.5.1.6
_______________________________________________
bug-parted mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-parted