Many files:
badblocks.c, chattr.c, dumpe2fs.c, e2label.c, findsuper.c, fsck.c,
get_device_by_label.c, lsattr.c, mke2fs.c, mklost+found.c,
nls-enable.h, partinfo.c, tune2fs.c, uuidgen.c: Add
Internationalization support as suggested by Marco d'Itri
<md@linux.it>.
diff --git a/misc/mklost+found.c b/misc/mklost+found.c
index 772e21e..a4d0f7d 100644
--- a/misc/mklost+found.c
+++ b/misc/mklost+found.c
@@ -24,6 +24,7 @@
#include <linux/ext2_fs.h>
#include "../version.h"
+#include "nls-enable.h"
#define LPF "lost+found"
@@ -35,11 +36,16 @@
int i, j;
int d;
- fprintf (stderr, "mklost+found %s, %s for EXT2 FS %s, %s\n",
+#ifdef ENABLE_NLS
+ setlocale(LC_MESSAGES, "");
+ bindtextdomain(NLS_CAT_NAME, LOCALEDIR);
+ textdomain(NLS_CAT_NAME);
+#endif
+ fprintf (stderr, _("mklost+found %s, %s for EXT2 FS %s, %s\n"),
E2FSPROGS_VERSION, E2FSPROGS_DATE,
EXT2FS_VERSION, EXT2FS_DATE);
if (argc != 1) {
- fprintf (stderr, "Usage: mklost+found\n");
+ fprintf (stderr, _("Usage: mklost+found\n"));
exit(1);
}
if (mkdir (LPF, 0755) == -1) {