|
Boost : |
Subject: Re: [boost] [locale] Formal review of Boost.Locale librarystartstomorrow
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2011-04-17 11:40:54
On Sun, Apr 17, 2011 at 7:32 AM, Peter Dimov <pdimov_at_[hidden]> wrote:
> 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]
>
I would think making the error more obvious to the translator would be
better.
- Jeff
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk