Format-tags placeholders (was: Re: [xliff-tools] Another question on PO and XLIFF)

Fredrik Corneliusson fredrik.corneliusson at gmail.com
Thu May 5 14:18:37 PDT 2005


Hi Asgeir,

On 5/3/05, Asgeir Frimannsson <asgeirf at redhat.com> wrote:
 
> But yeah, it's fully possible, and I hope to implement this (including
> re-ordering) for at least c-format in my filters. But I don't think we should
> have it as a requirement in the guide, -but we should further discuss the
> options.

About reordering, it may be better to provide this in separate filters
or a option to the filters. This allows us to have a more relaxed
implementation using the 90/10 rule. By implementing the most common
cases we get 90% of the way with 10% of the work.
If we miss some corner cases it's not such a big deal as ph markup is
mostly syntactic sugar to help the translator and add extra
protection. We can then add support for more formats as the need
raises.

> 
> Another issue: Are we are using a too low level of abstraction in c-based opne
> source applications? In Qt/KDE we're using %1, %2 etc, and do further
> formatting of the parameters in the source code, and I see this as a better
> approach than having complex c-parameters.
> 
> Maybe we should start using something like:
> printf( _("My name is %1s and I have %2s in my bank account"), name
> format_currency(value, current_locale) )
> 
> in favour of this approach:
> printf( _("My name is %1s and I have USD %2d.02 in my bank account",name,
> value)
I totally agree but as you said this is another issue as we cannot
control all programmes in the world.

Cheers,
Fredrik


More information about the xliff-tools mailing list