From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29807 invoked by alias); 31 Oct 2004 10:44:31 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29758 invoked by alias); 31 Oct 2004 10:44:29 -0000 Date: Sun, 31 Oct 2004 10:44:00 -0000 Message-ID: <20041031104429.29756.qmail@sourceware.org> From: "gdr at cs dot tamu dot edu" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20041031103409.18248.jsm28@gcc.gnu.org> References: <20041031103409.18248.jsm28@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug c++/18248] c_parse_error i18n problems X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg03901.txt.bz2 List-Id: ------- 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" 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