From: Peter L. <pet...@te...> - 2009-02-07 09:03:10
|
> Benny Malengier wrote: > > 2009/2/5 Jérôme <rom...@ya... <mailto:rom...@ya...>> > > > > There was a problem on translated string (localized version). > > Translators should avoid : "%)" > > > > "(100% complete)" is OK (core/english, msgid) :) > > > > "(complete 100%)" will return a warning (localized, msgstr) :( > > but no crash ... > > > > > > If I understand this correct, a trick then to avoid the annoying message > > would be > > ("(%(percent)d%% complete)" % {'percent' : 100 } > > If translators tools have problem with percent sign way not omit it all > together from message and let it be calculated in run time. Using it as > named argument provide more freedom for translators. This works for me > bot in english and my language (and it is not seen by trans. tool) - I have committed a version of this that works the same for the two different cases in PedigreeGramplet.py. /Peter |