Initial support for gettext in build system.

This commit is contained in:
Robert Millan 2009-11-15 23:11:01 +00:00
parent fd6fd3d770
commit ed101e8122
4 changed files with 50 additions and 3 deletions

View file

@ -33,6 +33,10 @@
#include <string.h>
#include <stdlib.h>
#include <locale.h>
#include <libintl.h>
#define _(str) gettext(str)
#define _GNU_SOURCE 1
#include <getopt.h>
@ -315,7 +319,7 @@ static void
usage (int status)
{
if (status)
fprintf (stderr, "Try ``grub-mkimage --help'' for more information.\n");
fprintf (stderr, _("Try ``%s --help'' for more information.\n"), progname);
else
printf ("\
Usage: grub-mkimage [OPTION]... [MODULES]\n\
@ -349,6 +353,8 @@ main (int argc, char *argv[])
progname = "grub-mkimage";
textdomain ("grub");
while (1)
{
int c = getopt_long (argc, argv, "d:p:m:c:o:hVv", options, 0);