monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] a note on recent strings changes


From: Zack Weinberg
Subject: [Monotone-devel] a note on recent strings changes
Date: Sun, 21 Jan 2007 00:47:11 -0800

from IRC:

<tommyd> zwol: whats the reasoning behind replacing %n by %s in db
info's i18n string?
<tommyd> and I don't know why I should translate "%n" either =)

-- If I understand correctly, the first question is about a long
string with some real text in it, but also a whole bunch of %u (not
%n) formatting escapes.  I changed all of them to %s.  This was
necessary because the code changed to pass strings to the formatter
instead of numbers.  That's all there was to that.

-- The second question is, I think, about this somewhat odd construct:

 return (F("%u") % number).str()

That is similar to lexical_cast<string>(number) but formats the number
according to the locale's number-formatting rules.  In particular,
thousands separators are inserted if the locale so specifies.
Unfortunately, this does also mean that "%u" shows up as a string to
be translated in monotone.pot.

I do apologize for the churn in the translations, but may I suggest
that you compare 0.31 "db info" to current top-of-trunk "db info" and
see why I bothered.  (For extra what's-the-point value, run
top-of-trunk "db info" against an *unmigrated* 0.31 database.)

zw




reply via email to

[Prev in Thread] Current Thread [Next in Thread]