diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2001-10-30 12:14:28 +0000 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2001-10-30 12:14:28 +0000 |
commit | 53fcdc7677776c3ccbe098ee4f8fe082cae5f28e (patch) | |
tree | 2b186d54ffc78842ba447fb2fb99339ac3c52af3 /gcc/c-format.c | |
parent | 73991d6ae74ffcb1fbd0dc4435c5aa7dc50947d7 (diff) | |
download | gcc-53fcdc7677776c3ccbe098ee4f8fe082cae5f28e.zip gcc-53fcdc7677776c3ccbe098ee4f8fe082cae5f28e.tar.gz gcc-53fcdc7677776c3ccbe098ee4f8fe082cae5f28e.tar.bz2 |
Localization fixes.
2001-10-30 Paolo Bonzini <bonzini@gnu.org>
Localization fixes.
* c-decl.c (parmlist_tags_warning, start_struct,
check_for_loop_decls): Separate messages for struct, union and
enum cases to allow for languages in which they have different
genders.
* c-format.c (scanf_flag_specs): Separate short and long name of
the assignment suppression feature.
(check_format_types): Localize "pointer" and "different types"
strings.
* c-lex.c (lex_number): Localize "an unsigned long int" and
related strings.
(lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
warning message.
* c-typeck.c (build_unary_up): Separate messages for increment and
decrement cases to allow for languages in which they use different
articles. Localize the strings "increment" and "decrement" in one
case.
From-SVN: r46635
Diffstat (limited to 'gcc/c-format.c')
-rw-r--r-- | gcc/c-format.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/c-format.c b/gcc/c-format.c index 5a52723..b224a89 100644 --- a/gcc/c-format.c +++ b/gcc/c-format.c @@ -639,12 +639,12 @@ static const format_flag_pair printf_flag_pairs[] = static const format_flag_spec scanf_flag_specs[] = { - { '*', 0, 0, N_("assignment suppression"), N_("assignment suppression"), STD_C89 }, - { 'a', 0, 0, N_("`a' flag"), N_("the `a' scanf flag"), STD_EXT }, - { 'w', 0, 0, N_("field width"), N_("field width in scanf format"), STD_C89 }, - { 'L', 0, 0, N_("length modifier"), N_("length modifier in scanf format"), STD_C89 }, - { '\'', 0, 0, N_("`'' flag"), N_("the `'' scanf flag"), STD_EXT }, - { 'I', 0, 0, N_("`I' flag"), N_("the `I' scanf flag"), STD_EXT }, + { '*', 0, 0, N_("assignment suppression"), N_("the assignment suppression scanf feature"), STD_C89 }, + { 'a', 0, 0, N_("`a' flag"), N_("the `a' scanf flag"), STD_EXT }, + { 'w', 0, 0, N_("field width"), N_("field width in scanf format"), STD_C89 }, + { 'L', 0, 0, N_("length modifier"), N_("length modifier in scanf format"), STD_C89 }, + { '\'', 0, 0, N_("`'' flag"), N_("the `'' scanf flag"), STD_EXT }, + { 'I', 0, 0, N_("`I' flag"), N_("the `I' scanf flag"), STD_EXT }, { 0, 0, 0, NULL, NULL, 0 } }; @@ -2385,9 +2385,9 @@ check_format_types (status, types) if (that == 0) { if (TREE_CODE (orig_cur_type) == POINTER_TYPE) - that = "pointer"; + that = _("pointer"); else - that = "different type"; + that = _("different type"); } /* Make the warning better in case of mismatch of int vs long. */ |