Rune Kjær Svendsen [ARCHIVE] on Nostr: 📅 Original date posted:2013-03-11 📝 Original message:On Mon, Mar 11, 2013 at ...
📅 Original date posted:2013-03-11
📝 Original message:On Mon, Mar 11, 2013 at 9:46 PM, Luke-Jr <luke at dashjr.org> wrote:
> On Monday, March 11, 2013 8:34:52 PM Rune Kjær Svendsen wrote:
> > Ok. I'll fork on Github. Looking at the source, and some Qt
> documentation,
> > it should be doable to do string substitution for both the value and the
> > unit.
>
> Side note: I imagine you'd be substituting a formatted string, and using
> some
> other function to format the string (which already exists to decide how to
> display units elsewhere).
>
I'm not entirely sure what you mean by this. I plan on using the method
described on this page
http://doc.qt.digia.com/3.1/i18n.html under "Use
QString::arg() for Simple Arguments" and then just putting a %1 and %2 in
the translation strings and substituting for value and unit, respectively.
Haven't tested it yet, but that's what I plan to do.
Where do you want the constant defined? In main.h alongside MIN_TX_FEE
and MIN_RELAY_TX_FEE?
/Rune
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20130311/3304d5ed/attachment.html>
Published at
2023-06-07 11:36:20Event JSON
{
"id": "6ccb69c5567621846b46745099f875cb25e86cb320fa78a851095e25b195e7ce",
"pubkey": "8438bef57d05ffe31835fbb52e2f974f014354f84bcd030510336c6b24a3f95c",
"created_at": 1686137780,
"kind": 1,
"tags": [
[
"e",
"01ab376225ed6f5612dfc40da5fd7b4802f99eb37e9843cef7651ad569880f29",
"",
"root"
],
[
"e",
"855c5c3d780f538e4554b54a1b4daf9e84336718af235536462231c22deba711",
"",
"reply"
],
[
"p",
"4aa6cf9aa5c8e98f401dac603c6a10207509b6a07317676e9d6615f3d7103d73"
]
],
"content": "📅 Original date posted:2013-03-11\n📝 Original message:On Mon, Mar 11, 2013 at 9:46 PM, Luke-Jr \u003cluke at dashjr.org\u003e wrote:\n\n\u003e On Monday, March 11, 2013 8:34:52 PM Rune Kjær Svendsen wrote:\n\u003e \u003e Ok. I'll fork on Github. Looking at the source, and some Qt\n\u003e documentation,\n\u003e \u003e it should be doable to do string substitution for both the value and the\n\u003e \u003e unit.\n\u003e\n\u003e Side note: I imagine you'd be substituting a formatted string, and using\n\u003e some\n\u003e other function to format the string (which already exists to decide how to\n\u003e display units elsewhere).\n\u003e\n\nI'm not entirely sure what you mean by this. I plan on using the method\ndescribed on this page http://doc.qt.digia.com/3.1/i18n.html under \"Use\nQString::arg() for Simple Arguments\" and then just putting a %1 and %2 in\nthe translation strings and substituting for value and unit, respectively.\nHaven't tested it yet, but that's what I plan to do.\n\nWhere do you want the constant defined? In main.h alongside MIN_TX_FEE\nand MIN_RELAY_TX_FEE?\n\n\n/Rune\n-------------- next part --------------\nAn HTML attachment was scrubbed...\nURL: \u003chttp://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20130311/3304d5ed/attachment.html\u003e",
"sig": "a25573ba6521d5dbf17928765ec6fa9b7bb0d5344a91eeee0da93e4a796084e7c85713f521c6a22941b7bb87ab222eb078855b7314838965c8ab64298056514f"
}