[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [TSVN] bug: 1.2.0 settings dialog menu in zh_TW

From: Lübbe Onken <l.onken_at_rac.de>
Date: 2005-06-16 13:31:02 CEST

Stefan,

I know now, why my scripts don't report wrong %s in translations.

> > > Can you please check the version strings and fix them? (search for
> > > 'apr-iconv' to find those). You've got some additional '%s' in at
> > > least one of those strings - that makes TSVN crash badly
> because the
> > > sprintf() doesn't like it if params are missing...
> >
> > Can you please give me an example? PoEdit doesn't show anything
> > extraordinary. I thought my script will catch these errors. If not I
> > have to build in additional checks.
>
> Sorry, my fault. It's not Tortoise_zh_TW but Tortoise_zh_CN.po which
> has the extra %s in it.

If the .po file contains a "#, c-format" comment, poEdit and msgfmt will
spot this kind of error. In absence of the comment, they'll treat the
translations as normal strings.

This Example...

#: ID:169
#, c-format
msgid "%d files selected, %d files total"
msgstr "%d Dateien gewählt, %s Dateien insgesamt"

...will raise an error. Is it possible for you to collect all the
"%something" C-style ressources in restext and prefix them with a "#,
c-format" comment in the .pot file?

Cheers
- Lübbe

--
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jun 16 13:31:38 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.