Whamcloud - gitweb
mke2fs.c (zap_sector): Now takes a third argument, which is how
[tools/e2fsprogs.git] / misc / mklost+found.c
index 772e21e..0bc3239 100644 (file)
 #include <stdio.h>
 #include <string.h>
 #include <unistd.h>
+#include <stdlib.h>
 #include <sys/param.h>
 #include <sys/stat.h>
 
-#include <linux/ext2_fs.h>
-
+#include "ext2fs/ext2_fs.h"
 #include "../version.h"
+#include "nls-enable.h"
 
 #define LPF "lost+found"
 
@@ -35,11 +36,15 @@ int main (int argc, char ** argv)
        int i, j;
        int d;
 
-       fprintf (stderr, "mklost+found %s, %s for EXT2 FS %s, %s\n",
-                E2FSPROGS_VERSION, E2FSPROGS_DATE,
-                EXT2FS_VERSION, EXT2FS_DATE);
+#ifdef ENABLE_NLS
+       setlocale(LC_MESSAGES, "");
+       bindtextdomain(NLS_CAT_NAME, LOCALEDIR);
+       textdomain(NLS_CAT_NAME);
+#endif
+       fprintf (stderr, "mklost+found %s (%s)\n", E2FSPROGS_VERSION,
+                E2FSPROGS_DATE);
        if (argc != 1) {
-               fprintf (stderr, "Usage: mklost+found\n");
+               fprintf (stderr, _("Usage: mklost+found\n"));
                exit(1);
        }
        if (mkdir (LPF, 0755) == -1) {