commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Dunning <ted.dunn...@gmail.com>
Subject Re: [MATH] Interest in large patches for small cleanup / performance changes?
Date Sun, 03 Nov 2013 19:17:35 GMT
On Sun, Nov 3, 2013 at 10:56 AM, Luc Maisonobe <luc@spaceroots.org> wrote:

> > I had proposed that error messages be incrementally built from simple
> > "base" patterns, to be assembled either at the point where the exception
> > is going to be thrown or inside specific exceptions[2] (or a combination
> > of both).
>
> It often doesn't work. Sentences constructions are completely different
> in different languages, and it is impossible to simply buid up from
> elementary components that are individually translated and assembled
> later. See all the documentation about the ancient gettext for example.


Modern printf implementations deal with this by numbered arguments.  This
is not a problem any more.

See http://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html#syntax

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message