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/parse.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/parse.c')
-rw-r--r-- | gcc/fortran/parse.c | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/gcc/fortran/parse.c b/gcc/fortran/parse.c index 9c404d5..1e28a7e 100644 --- a/gcc/fortran/parse.c +++ b/gcc/fortran/parse.c @@ -731,13 +731,13 @@ gfc_ascii_statement (gfc_statement st) switch (st) { case ST_ARITHMETIC_IF: - p = "arithmetic IF"; + p = _("arithmetic IF"); break; case ST_ALLOCATE: p = "ALLOCATE"; break; case ST_ATTR_DECL: - p = "attribute declaration"; + p = _("attribute declaration"); break; case ST_BACKSPACE: p = "BACKSPACE"; @@ -767,7 +767,7 @@ gfc_ascii_statement (gfc_statement st) p = "CYCLE"; break; case ST_DATA_DECL: - p = "data declaration"; + p = _("data declaration"); break; case ST_DATA: p = "DATA"; @@ -776,7 +776,7 @@ gfc_ascii_statement (gfc_statement st) p = "DEALLOCATE"; break; case ST_DERIVED_DECL: - p = "Derived type declaration"; + p = _("derived type declaration"); break; case ST_DO: p = "DO"; @@ -855,7 +855,7 @@ gfc_ascii_statement (gfc_statement st) p = "GOTO"; break; case ST_IF_BLOCK: - p = "block IF"; + p = _("block IF"); break; case ST_IMPLICIT: p = "IMPLICIT"; @@ -864,7 +864,7 @@ gfc_ascii_statement (gfc_statement st) p = "IMPLICIT NONE"; break; case ST_IMPLIED_ENDDO: - p = "implied END DO"; + p = _("implied END DO"); break; case ST_INQUIRE: p = "INQUIRE"; @@ -931,10 +931,10 @@ gfc_ascii_statement (gfc_statement st) p = "WRITE"; break; case ST_ASSIGNMENT: - p = "assignment"; + p = _("assignment"); break; case ST_POINTER_ASSIGNMENT: - p = "pointer assignment"; + p = _("pointer assignment"); break; case ST_SELECT_CASE: p = "SELECT CASE"; @@ -943,7 +943,7 @@ gfc_ascii_statement (gfc_statement st) p = "SEQUENCE"; break; case ST_SIMPLE_IF: - p = "Simple IF"; + p = _("simple IF"); break; case ST_STATEMENT_FUNCTION: p = "STATEMENT FUNCTION"; @@ -969,43 +969,43 @@ gfc_state_name (gfc_compile_state state) switch (state) { case COMP_PROGRAM: - p = "a PROGRAM"; + p = _("a PROGRAM"); break; case COMP_MODULE: - p = "a MODULE"; + p = _("a MODULE"); break; case COMP_SUBROUTINE: - p = "a SUBROUTINE"; + p = _("a SUBROUTINE"); break; case COMP_FUNCTION: - p = "a FUNCTION"; + p = _("a FUNCTION"); break; case COMP_BLOCK_DATA: - p = "a BLOCK DATA"; + p = _("a BLOCK DATA"); break; case COMP_INTERFACE: - p = "an INTERFACE"; + p = _("an INTERFACE"); break; case COMP_DERIVED: - p = "a DERIVED TYPE block"; + p = _("a DERIVED TYPE block"); break; case COMP_IF: - p = "an IF-THEN block"; + p = _("an IF-THEN block"); break; case COMP_DO: - p = "a DO block"; + p = _("a DO block"); break; case COMP_SELECT: - p = "a SELECT block"; + p = _("a SELECT block"); break; case COMP_FORALL: - p = "a FORALL block"; + p = _("a FORALL block"); break; case COMP_WHERE: - p = "a WHERE block"; + p = _("a WHERE block"); break; case COMP_CONTAINS: - p = "a contained subprogram"; + p = _("a contained subprogram"); break; default: |