Boost logo

Boost :

Subject: Re: [boost] [locale] Formal review of Boost.Locale librarystartstomorrow
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-04-17 10:32:11


Artyom wrote:
> Actually it may be it is better to make boost::locale::format to add
> something
> to formatted message like
>
> cout << format(translate("Hello World {1}")) % param;
>
> The is translate to "bonjour le monde {1" (missed "}"
>
> Would print:
>
> "[syntax error] bonjour le monde {1"

This is what I do, yes:

    bonjour le monde [error: parse error at '{1']

or, for "bonjour le monde {2}":

    bonjour le monde [error: argument '2' missing]


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk