diff options
| author | Francois-Xavier Coudert <coudert@clipper.ens.fr> | 2005-09-17 20:58:01 +0200 |
|---|---|---|
| committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2005-09-17 18:58:01 +0000 |
| commit | 31043f6cfc3612e0278f2dea1a8e3ce050b72798 (patch) | |
| tree | 359a816dbf10dd679ca548628aef0b485522372a /gcc/fortran/io.c | |
| parent | 652b0932d7753aec43306dee62e5005492a6cf3c (diff) | |
| download | gcc-31043f6cfc3612e0278f2dea1a8e3ce050b72798.zip gcc-31043f6cfc3612e0278f2dea1a8e3ce050b72798.tar.gz gcc-31043f6cfc3612e0278f2dea1a8e3ce050b72798.tar.bz2 | |
re PR fortran/15586 (gfortran should support i18n in its compiler messages)
PR fortran/15586
* arith.c (gfc_arith_error): Add translation support
for error messages.
* array.c (gfc_match_array_ref): Likewise.
(gfc_match_array_spec): Likewise.
* check.c (must_be): Add msgid convention to third argument.
(same_type_check): Add translation support for error message.
(rank_check): Likewise.
(kind_value_check): Likewise.
(gfc_check_associated): Correct typo.
(gfc_check_reshape): Add translation support for error message.
(gfc_check_spread): Likewise.
* error.c (error_printf): Add nocmsgid convention to argument.
(gfc_warning, gfc_notify_std, gfc_warning_now, gfc_warning_check)
(gfc_error, gfc_error_now): Likewise.
(gfc_status): Add cmsgid convention to argument.
* expr.c (gfc_extract_int): Add translation support
for error messages.
(gfc_check_conformance): Add msgid convention to argument.
(gfc_check_pointer_assign): Correct tabbing.
* gfortran.h: Include intl.h header. Remove prototype
for gfc_article.
* gfortranspec.c: Include intl.h header.
(lang_specific_driver): Add translation support for --version.
* io.c (check_format): Add translation support for
error message.
(format_item_1): Likewise.
(data_desc): Likewise.
* matchexp.c: Likewise.
* misc.c (gfc_article): Remove function.
* module.c (bad_module): Use msgid convention. Add
translation support for error messages.
(require_atom): Add translation support for error messages.
* parse.c (gfc_ascii_statement): Likewise.
(gfc_state_name): Likewise.
* primary.c (match_boz_constant): Reorganise error
messages for translations.
* resolve.c (resolve_entries): Likewise.
(resolve_operator): Add translation support for error messages.
(gfc_resolve_expr): Use msgid convention. Reorganise error
messages for translations.
(resolve_symbol): Add translation support for error messages.
* symbol.c (gfc_add_procedure): Remove use of gfc_article function.
* trans-const.c (gfc_build_string_const): Use msgid convention.
* exgettext: Add a new nocmsgid convention for arguments
that should be marked as no-c-format.
* gcc.pot: Regenerate.
From-SVN: r104372
Diffstat (limited to 'gcc/fortran/io.c')
| -rw-r--r-- | gcc/fortran/io.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gcc/fortran/io.c b/gcc/fortran/io.c index 0ffc13d..95abbc5 100644 --- a/gcc/fortran/io.c +++ b/gcc/fortran/io.c @@ -401,11 +401,11 @@ format_lex (void) static try check_format (void) { - const char *posint_required = "Positive width required"; - const char *period_required = "Period required"; - const char *nonneg_required = "Nonnegative width required"; - const char *unexpected_element = "Unexpected element"; - const char *unexpected_end = "Unexpected end of format string"; + const char *posint_required = _("Positive width required"); + const char *period_required = _("Period required"); + const char *nonneg_required = _("Nonnegative width required"); + const char *unexpected_element = _("Unexpected element"); + const char *unexpected_end = _("Unexpected end of format string"); const char *error; format_token t, u; @@ -422,7 +422,7 @@ check_format (void) t = format_lex (); if (t != FMT_LPAREN) { - error = "Missing leading left parenthesis"; + error = _("Missing leading left parenthesis"); goto syntax; } @@ -460,7 +460,7 @@ format_item_1: t = format_lex (); if (t != FMT_P) { - error = "Expected P edit descriptor"; + error = _("Expected P edit descriptor"); goto syntax; } @@ -468,7 +468,7 @@ format_item_1: case FMT_P: /* P requires a prior number. */ - error = "P descriptor requires leading scale factor"; + error = _("P descriptor requires leading scale factor"); goto syntax; case FMT_X: @@ -498,7 +498,7 @@ format_item_1: return FAILURE; if (t != FMT_RPAREN || level > 0) { - error = "$ must be the last specifier"; + error = _("$ must be the last specifier"); goto syntax; } @@ -543,7 +543,7 @@ data_desc: t = format_lex (); if (t == FMT_POSINT) { - error = "Repeat count cannot follow P descriptor"; + error = _("Repeat count cannot follow P descriptor"); goto syntax; } @@ -606,7 +606,7 @@ data_desc: u = format_lex (); if (u != FMT_POSINT) { - error = "Positive exponent width required"; + error = _("Positive exponent width required"); goto syntax; } } |
