On 09/18/2016 06:16 PM, Prathamesh Kulkarni wrote: > + warning_at_rich_loc (&richloc, OPT_Wrestrict, "passing argument %i to" > + " restrict-qualified parameter aliases with argument%s > %I", > + param_pos + 1, (arg_positions.length() > 1) ? "s" : "", > + &arg_positions); > +}
This way of building a plural string is not i18n friendly: https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html I see that there are _n suffixed versions of a few diagnostic functions, like inform_n, warning_n, etc. that handle plurals by calling ngettext in diagnostic_n_impl, but it looks like a warning_at_rich_loc_n variant of warning_at_rich_loc is missing. Thanks, Pedro Alves