This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] PR c++/21768: ICE in error message due to violation of coding conventions


On Thu, May 26, 2005 at 04:48:27PM +0200, Volker Reichelt wrote:
>       error ("used %d template parameter%s instead of %d",
> 		TREE_VEC_LENGTH (tmpl_parms), 
> 		TREE_VEC_LENGTH (tmpl_parms) == 1 ? "" : "s",
> 		TREE_VEC_LENGTH (parms));
> 
> The attached patch fixes that by removing the conditional and using
> "parameter(s)" in the text. This should simplify i18n efforts.

Just note that the %.0s format specifier the german translation uses
works with the patch I posted yesterday:
http://gcc.gnu.org/ml/gcc-patches/2005-05/msg02412.html

Maybe we want nerror etc. functions which will use ngettext() rather than
_()?  Then we would handle plurals properly...

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]