From 1fc7aa1f9e1ad63f2fe8988ee389395dff78b12e Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 12 Mar 2003 07:21:08 +0000 Subject: [PATCH] Use N_(), not _() for gettextized error messages. svn path=/trunk/yasm/; revision=844 --- modules/preprocs/yapp/yapp-token.l | 10 +++++----- src/preprocs/yapp/yapp-token.l | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/preprocs/yapp/yapp-token.l b/modules/preprocs/yapp/yapp-token.l index b392914e..82fd52be 100644 --- a/modules/preprocs/yapp/yapp-token.l +++ b/modules/preprocs/yapp/yapp-token.l @@ -142,9 +142,9 @@ DIR %[ \t]* } if(inch == '\n') - yasm__error(cur_lindex, _("unterminated string")); + yasm__error(cur_lindex, N_("unterminated string")); else if(inch == EOF) - yasm__error(cur_lindex, _("unexpected end of file in string")); + yasm__error(cur_lindex, N_("unexpected end of file in string")); strbuf[count] = '\0'; @@ -175,7 +175,7 @@ DIR %[ \t]* /* FIXME: handle includes that aren't relative */ incfile = fopen (yytext, "r"); if(!incfile) { - yasm__error(cur_lindex, _("include file `%s': %s"), + yasm__error(cur_lindex, N_("include file `%s': %s"), yytext, strerror(errno)); yasm_xfree(inc); } @@ -333,11 +333,11 @@ DIR %[ \t]* [][+*/,()-] { return yytext[0]; } . { - yasm__warning(YASM_WARN_PREPROC, cur_lindex, _("Unhandled character in `%s'"), yasm__conv_unprint(yytext[0])); + yasm__warning(YASM_WARN_PREPROC, cur_lindex, N_("Unhandled character in `%s'"), yasm__conv_unprint(yytext[0])); } . { - yasm__warning(YASM_WARN_PREPROC, cur_lindex, _("ignoring unrecognized character `%s'"), + yasm__warning(YASM_WARN_PREPROC, cur_lindex, N_("ignoring unrecognized character `%s'"), yasm__conv_unprint(yytext[0])); } diff --git a/src/preprocs/yapp/yapp-token.l b/src/preprocs/yapp/yapp-token.l index b392914e..82fd52be 100644 --- a/src/preprocs/yapp/yapp-token.l +++ b/src/preprocs/yapp/yapp-token.l @@ -142,9 +142,9 @@ DIR %[ \t]* } if(inch == '\n') - yasm__error(cur_lindex, _("unterminated string")); + yasm__error(cur_lindex, N_("unterminated string")); else if(inch == EOF) - yasm__error(cur_lindex, _("unexpected end of file in string")); + yasm__error(cur_lindex, N_("unexpected end of file in string")); strbuf[count] = '\0'; @@ -175,7 +175,7 @@ DIR %[ \t]* /* FIXME: handle includes that aren't relative */ incfile = fopen (yytext, "r"); if(!incfile) { - yasm__error(cur_lindex, _("include file `%s': %s"), + yasm__error(cur_lindex, N_("include file `%s': %s"), yytext, strerror(errno)); yasm_xfree(inc); } @@ -333,11 +333,11 @@ DIR %[ \t]* [][+*/,()-] { return yytext[0]; } . { - yasm__warning(YASM_WARN_PREPROC, cur_lindex, _("Unhandled character in `%s'"), yasm__conv_unprint(yytext[0])); + yasm__warning(YASM_WARN_PREPROC, cur_lindex, N_("Unhandled character in `%s'"), yasm__conv_unprint(yytext[0])); } . { - yasm__warning(YASM_WARN_PREPROC, cur_lindex, _("ignoring unrecognized character `%s'"), + yasm__warning(YASM_WARN_PREPROC, cur_lindex, N_("ignoring unrecognized character `%s'"), yasm__conv_unprint(yytext[0])); } -- 2.50.0