2009-11-17 Robert Millan <rmh.grub@aybabtu.com>

* configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
        other things).
        * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
        * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
        bindtextdomain() calls for gettext initialization.
This commit is contained in:
Robert Millan 2009-11-17 10:47:22 +00:00
parent 1608391625
commit 336262f829
4 changed files with 12 additions and 1 deletions

View file

@ -351,6 +351,8 @@ main (int argc, char *argv[])
FILE *fp = stdout;
set_program_name (argv[0]);
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
while (1)