From: Theodore Ts'o Date: Sun, 8 Jun 2008 02:16:48 +0000 (-0400) Subject: e2undo: Enable missing pieces to enable I18N for this application X-Git-Tag: android-x86-6.0-r1~26^2~1367 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=11d4f30fe19fe543c8ba52cc6033e57a38a82e2a;p=android-x86%2Fexternal-e2fsprogs.git e2undo: Enable missing pieces to enable I18N for this application Signed-off-by: "Theodore Ts'o" --- diff --git a/misc/Makefile.in b/misc/Makefile.in index 63a16a31..7232c15b 100644 --- a/misc/Makefile.in +++ b/misc/Makefile.in @@ -116,7 +116,7 @@ e2image: $(E2IMAGE_OBJS) $(DEPLIBS) e2undo: $(E2UNDO_OBJS) $(DEPLIBS) @echo " LD $@" - @$(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) + @$(CC) $(ALL_LDFLAGS) -o e2undo $(E2UNDO_OBJS) $(LIBS) $(LIBINTL) base_device: base_device.c @echo " LD $@" diff --git a/misc/e2undo.c b/misc/e2undo.c index ca24303f..bcba3b16 100644 --- a/misc/e2undo.c +++ b/misc/e2undo.c @@ -128,6 +128,13 @@ int main(int argc, char *argv[]) char *device_name, *tdb_file, *prg_name; io_manager manager = unix_io_manager; +#ifdef ENABLE_NLS + setlocale(LC_MESSAGES, ""); + setlocale(LC_CTYPE, ""); + bindtextdomain(NLS_CAT_NAME, LOCALEDIR); + textdomain(NLS_CAT_NAME); +#endif + prg_name = argv[0]; while((c = getopt(argc, argv, "f")) != EOF) { switch (c) {