mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
Initial support for gettext in build system.
This commit is contained in:
1 parent
fd6fd3d770
commit
ed101e8122
4 files changed
+50
-3
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user