This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/18248] c_parse_error i18n problems
- From: "gdr at cs dot tamu dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2004 10:44:29 -0000
- Subject: [Bug c++/18248] c_parse_error i18n problems
- References: <20041031103409.18248.jsm28@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From gdr at cs dot tamu dot edu 2004-10-31 10:44 -------
Subject: Re: New: c_parse_error i18n problems
"jsm28 at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> writes:
| c_parse_error combines a string passed in with another part of a
| sentence. Combining sentence fragments cannot work with i18n. The
| source code must contain all the full sentences output even though this
| bulks up the source by needing 8 different "expected .. before ..." in the
| error function call for every parser error: only that way can all the
| sentences be translated properly. Making each call pass eight arguments
| rather than one is fortunately a fairly mechanical change, as the new
| arguments are derived from the existing one in a fixed way.
Notice that in all the cases where the sentences are combined, the
parts all come from string lietrals. There ought to be a way to have
the compiler build those (kind of compile-time introspection facilities).
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18248