@@ -138,7 +138,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
138138 nUnmatured += wallet->GetCredit (txout);
139139 strHTML += " <b>" + tr (" Credit" ) + " :</b> " ;
140140 if (wtx.IsInMainChain ())
141- strHTML += BitcoinUnits::formatWithUnit (unit, nUnmatured)+ " (" + tr (" matures in %n more block(s)" , " " , wtx.GetBlocksToMaturity ()) + " )" ;
141+ strHTML += BitcoinUnits::formatHtmlWithUnit (unit, nUnmatured)+ " (" + tr (" matures in %n more block(s)" , " " , wtx.GetBlocksToMaturity ()) + " )" ;
142142 else
143143 strHTML += " (" + tr (" not accepted" ) + " )" ;
144144 strHTML += " <br>" ;
@@ -148,7 +148,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
148148 //
149149 // Credit
150150 //
151- strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, nNet) + " <br>" ;
151+ strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, nNet) + " <br>" ;
152152 }
153153 else
154154 {
@@ -184,21 +184,21 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
184184 }
185185 }
186186
187- strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -txout.nValue ) + " <br>" ;
187+ strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, -txout.nValue ) + " <br>" ;
188188 }
189189
190190 if (fAllToMe )
191191 {
192192 // Payment to self
193193 int64_t nChange = wtx.GetChange ();
194194 int64_t nValue = nCredit - nChange;
195- strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -nValue) + " <br>" ;
196- strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, nValue) + " <br>" ;
195+ strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, -nValue) + " <br>" ;
196+ strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, nValue) + " <br>" ;
197197 }
198198
199199 int64_t nTxFee = nDebit - wtx.GetValueOut ();
200200 if (nTxFee > 0 )
201- strHTML += " <b>" + tr (" Transaction fee" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -nTxFee) + " <br>" ;
201+ strHTML += " <b>" + tr (" Transaction fee" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, -nTxFee) + " <br>" ;
202202 }
203203 else
204204 {
@@ -207,14 +207,14 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
207207 //
208208 BOOST_FOREACH (const CTxIn& txin, wtx.vin )
209209 if (wallet->IsMine (txin))
210- strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -wallet->GetDebit (txin)) + " <br>" ;
210+ strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, -wallet->GetDebit (txin)) + " <br>" ;
211211 BOOST_FOREACH (const CTxOut& txout, wtx.vout )
212212 if (wallet->IsMine (txout))
213- strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, wallet->GetCredit (txout)) + " <br>" ;
213+ strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, wallet->GetCredit (txout)) + " <br>" ;
214214 }
215215 }
216216
217- strHTML += " <b>" + tr (" Net amount" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, nNet, true ) + " <br>" ;
217+ strHTML += " <b>" + tr (" Net amount" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, nNet, true ) + " <br>" ;
218218
219219 //
220220 // Message
@@ -260,10 +260,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
260260 strHTML += " <hr><br>" + tr (" Debug information" ) + " <br><br>" ;
261261 BOOST_FOREACH (const CTxIn& txin, wtx.vin )
262262 if (wallet->IsMine (txin))
263- strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -wallet->GetDebit (txin)) + " <br>" ;
263+ strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, -wallet->GetDebit (txin)) + " <br>" ;
264264 BOOST_FOREACH (const CTxOut& txout, wtx.vout )
265265 if (wallet->IsMine (txout))
266- strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, wallet->GetCredit (txout)) + " <br>" ;
266+ strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, wallet->GetCredit (txout)) + " <br>" ;
267267
268268 strHTML += " <br><b>" + tr (" Transaction" ) + " :</b><br>" ;
269269 strHTML += GUIUtil::HtmlEscape (wtx.ToString (), true );
@@ -289,7 +289,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
289289 strHTML += GUIUtil::HtmlEscape (wallet->mapAddressBook [address].name ) + " " ;
290290 strHTML += QString::fromStdString (CBitcoinAddress (address).ToString ());
291291 }
292- strHTML = strHTML + " " + tr (" Amount" ) + " =" + BitcoinUnits::formatWithUnit (unit, vout.nValue );
292+ strHTML = strHTML + " " + tr (" Amount" ) + " =" + BitcoinUnits::formatHtmlWithUnit (unit, vout.nValue );
293293 strHTML = strHTML + " IsMine=" + (wallet->IsMine (vout) ? tr (" true" ) : tr (" false" )) + " </li>" ;
294294 }
295295 }
0 commit comments