|
Boost : |
Subject: Re: [boost] [locale] Formal review of Boost.Locale library starts tomorrow
From: Artyom (artyomtnk_at_[hidden])
Date: 2011-04-16 16:53:42
> > >
> > > I explain, the error of for example missing parameter is almost never
> > > a error, consider following:
> > >
> > > format(translate("Passed {1} day", "Passed {1} days",n)) % n;
> > >
> > > Now in Hebrew it would have 3 plural forms: single, dual and plural
> > >
> > > ×¢×ר ××× {1}â /passed {1} day
> > > ×¢××¨× ×××××× /passed two-days when "two-days" is a single world - no
> > > parameter used
> > > ×¢××¨× {1} ×××× / passed {1} days
> > >
> > > So missing parameter is ok in localization context, while boost::format
> > > throws
> > > unless you do something specific.
> >
> > So that's the specific case of a missing parameter error, but is this the
> > only kind of error one can make with boost::locale::format? If not, it's
> > not really a convincing argument that all users all the time would like
> > boost::locale::format to ignore all errors. And you do qualify that this
> > particular error is "almost never a error", leading me to believe that
> > sometimes it really is an error you care about.
>
> +1
>
> Vicente
See: http://article.gmane.org/gmane.comp.lib.boost.devel/218075
Artyom
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk