On Monday, March 11, 2013 9:17:25 PM Rune Kjær Svendsen wrote: > On Mon, Mar 11, 2013 at 9:46 PM, Luke-Jr <l...@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.
eg, use a single %1 with BitcoinUnits::format(walletModel->getOptionsModel()->getDisplayUnit(), amount) > Where do you want the constant defined? In main.h alongside MIN_TX_FEE > and MIN_RELAY_TX_FEE? Sounds reasonable. ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Bitcoin-development mailing list Bitcoin-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bitcoin-development