diff options
author | Tobias Burnus <tburnus@baylibre.com> | 2024-10-19 10:19:14 +0200 |
---|---|---|
committer | Tobias Burnus <tburnus@baylibre.com> | 2024-10-19 10:34:44 +0200 |
commit | efae253b9f863b066e899106d7f3ad9ef0cd3c58 (patch) | |
tree | e73d8ee33fd542233f5c8034be943c380f58228a /gcc/fortran/check.cc | |
parent | ffdfc5b045d7364f76d1f41022b2286108898699 (diff) | |
download | gcc-efae253b9f863b066e899106d7f3ad9ef0cd3c58.zip gcc-efae253b9f863b066e899106d7f3ad9ef0cd3c58.tar.gz gcc-efae253b9f863b066e899106d7f3ad9ef0cd3c58.tar.bz2 |
Fortran: Fix translatability of diagnostic strings
gcc/fortran/ChangeLog:
* check.cc (is_c_interoperable): Use _(...) around to mark strings
as translatable.
* data.cc (gfc_assign_data_value): Move string literal to gfc_error
to make it translatable.
* resolve.cc (resolve_fl_variable, resolve_equivalence): Use G_(...)
around string literals.
* scanner.cc (skip_fixed_omp_sentinel): Replace '...' by %<...%>.
* trans-openmp.cc (gfc_split_omp_clauses,
gfc_trans_omp_declare_variant): Likewise.
Diffstat (limited to 'gcc/fortran/check.cc')
-rw-r--r-- | gcc/fortran/check.cc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/fortran/check.cc b/gcc/fortran/check.cc index 79e6668..e90073a 100644 --- a/gcc/fortran/check.cc +++ b/gcc/fortran/check.cc @@ -5615,32 +5615,32 @@ is_c_interoperable (gfc_expr *expr, const char **msg, bool c_loc, bool c_f_ptr) if (expr->expr_type == EXPR_NULL && expr->ts.type == BT_UNKNOWN) { - *msg = "NULL() is not interoperable"; + *msg = _("NULL() is not interoperable"); return false; } if (expr->ts.type == BT_BOZ) { - *msg = "BOZ literal constant"; + *msg = _("BOZ literal constant"); return false; } if (expr->ts.type == BT_CLASS) { - *msg = "Expression is polymorphic"; + *msg = _("Expression is polymorphic"); return false; } if (expr->ts.type == BT_DERIVED && !expr->ts.u.derived->attr.is_bind_c && !expr->ts.u.derived->ts.is_iso_c) { - *msg = "Expression is a noninteroperable derived type"; + *msg = _("Expression is a noninteroperable derived type"); return false; } if (expr->ts.type == BT_PROCEDURE) { - *msg = "Procedure unexpected as argument"; + *msg = _("Procedure unexpected as argument"); return false; } @@ -5650,14 +5650,14 @@ is_c_interoperable (gfc_expr *expr, const char **msg, bool c_loc, bool c_f_ptr) for (i = 0; gfc_logical_kinds[i].kind; i++) if (gfc_logical_kinds[i].kind == expr->ts.kind) return true; - *msg = "Extension to use a non-C_Bool-kind LOGICAL"; + *msg = _("Extension to use a non-C_Bool-kind LOGICAL"); return false; } if (gfc_notification_std (GFC_STD_GNU) && expr->ts.type == BT_CHARACTER && expr->ts.kind != 1) { - *msg = "Extension to use a non-C_CHAR-kind CHARACTER"; + *msg = _("Extension to use a non-C_CHAR-kind CHARACTER"); return false; } @@ -5678,7 +5678,7 @@ is_c_interoperable (gfc_expr *expr, const char **msg, bool c_loc, bool c_f_ptr) && expr->ts.u.cl && !gfc_length_one_character_type_p (&expr->ts)) { - *msg = "Type shall have a character length of 1"; + *msg = _("Type shall have a character length of 1"); return false; } } @@ -5689,7 +5689,7 @@ is_c_interoperable (gfc_expr *expr, const char **msg, bool c_loc, bool c_f_ptr) if (gfc_is_coarray (expr)) { - *msg = "Coarrays are not interoperable"; + *msg = _("Coarrays are not interoperable"); return false; } @@ -5700,7 +5700,7 @@ is_c_interoperable (gfc_expr *expr, const char **msg, bool c_loc, bool c_f_ptr) gfc_array_ref *ar = gfc_find_array_ref (expr); if (ar->type == AR_FULL && ar->as->type == AS_ASSUMED_SIZE) { - *msg = "Assumed-size arrays are not interoperable"; + *msg = _("Assumed-size arrays are not interoperable"); return false; } } |