* grub-core/commands/ls.c: Gettextize.

* grub-core/commands/setpci.c: Likewise.
        * grub-core/commands/videotest.c: Likewise.
        * grub-core/disk/geli.c: Likewise.
        * grub-core/kern/mm.c: Likewise.
        * grub-core/lib/relocator.c: Likewise.
        * grub-core/loader/efi/appleloader.c: Likewise.
        * grub-core/loader/i386/xnu.c: Likewise.
        * grub-core/loader/ia64/efi/linux.c: Likewise.
        * grub-core/loader/xnu.c: Likewise.
        * grub-core/net/dns.c: Likewise.
        * grub-core/net/net.c: Likewise.
        * grub-core/script/lexer.c: Likewise.
        * grub-core/script/parser.y: Likewise.
        * grub-core/script/yylex.l: Likewise.
        * util/getroot.c: Likewise.
        * util/grub-setup.c: Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-02-03 11:56:49 +01:00
parent a646a366bb
commit 4a9f8346c9
18 changed files with 68 additions and 45 deletions

View file

@ -23,6 +23,7 @@
#include <grub/misc.h>
#include <grub/mm.h>
#include <grub/script_sh.h>
#include <grub/i18n.h>
#define yytext_ptr char *
#include "grub_script.tab.h"
@ -140,7 +141,7 @@ grub_script_lexer_yywrap (struct grub_parser_param *parserstate,
if (! lexerstate->getline && ! input)
{
grub_script_yyerror (parserstate, "unexpected end of file");
grub_script_yyerror (parserstate, N_("unexpected end of file"));
return 1;
}
@ -170,7 +171,7 @@ grub_script_lexer_yywrap (struct grub_parser_param *parserstate,
if (! line)
{
grub_script_yyerror (parserstate, "out of memory");
grub_script_yyerror (parserstate, N_("out of memory"));
return 1;
}

View file

@ -21,6 +21,7 @@
#include <grub/script_sh.h>
#include <grub/mm.h>
#include <grub/misc.h>
#include <grub/i18n.h>
#define YYFREE grub_free
#define YYMALLOC grub_malloc
@ -107,7 +108,7 @@ script: newlines0
| error
{
$$ = 0;
yyerror (state, "Incorrect command");
yyerror (state, N_("Incorrect command"));
yyerrok;
}
;

View file

@ -22,6 +22,7 @@
#include <grub/misc.h>
#include <grub/mm.h>
#include <grub/script_sh.h>
#include <grub/i18n.h>
#include "grub_script.tab.h"
#pragma GCC diagnostic ignored "-Wunused-parameter"
@ -37,7 +38,7 @@
*/
#define YY_FATAL_ERROR(msg) \
do { \
grub_printf ("fatal error: %s\n", msg); \
grub_printf (_("fatal error: %s\n"), _(msg)); \
} while (0)
#define COPY(str, hint) \
@ -364,7 +365,7 @@ grub_lexer_unput (const char *text, yyscan_t yyscanner)
lexerstate->prefix = grub_strdup (text);
if (! lexerstate->prefix)
{
grub_script_yyerror (yyget_extra (yyscanner), "out of memory");
grub_script_yyerror (yyget_extra (yyscanner), N_("out of memory"));
return 1;
}
return 0;