[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] a note on recent strings changes
From: |
Thomas Keller |
Subject: |
Re: [Monotone-devel] a note on recent strings changes |
Date: |
Sun, 21 Jan 2007 11:58:24 +0100 |
User-agent: |
Thunderbird 1.5.0.9 (Macintosh/20061207) |
Zack Weinberg schrieb:
> -- 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.
Yeah, noticed that it has been %u later, my editor has a crappy font. I
should really change that. Sorry.
> -- 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.
Ah, ok, that explains it. I'm fine with the change, just wondered... =)
Thomas.
--
ICQ: 85945241 | SIP: 1-747-027-0392 | http://www.thomaskeller.biz
> Guitone, a frontend for monotone: http://guitone.thomaskeller.biz
> Music lyrics and more: http://musicmademe.com