mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04:00
Fixed translations on StatusBar display.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2677 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
523956c0bf
commit
e315d2efc7
43 changed files with 6324 additions and 5326 deletions
|
@ -67,11 +67,14 @@ void RatesStatus::getRatesStatus()
|
|||
rsicontrol -> ConfigGetDataRates(downKb, upKb);
|
||||
|
||||
std::ostringstream out;
|
||||
out << "<strong>" << tr("Down:").toStdString() << "</strong> " << std::setprecision(2) << std::fixed << downKb << " (kB/s) | <strong>" << tr("Up:").toStdString() << "</strong> " << std::setprecision(2) << std::fixed << upKb << " (kB/s) ";
|
||||
out << std::setprecision(2) << std::fixed << downKb ;
|
||||
|
||||
std::ostringstream out2;
|
||||
out2 << std::setprecision(2) << std::fixed << upKb ;
|
||||
|
||||
|
||||
if (statusRates)
|
||||
statusRates -> setText(QString::fromStdString(out.str()));
|
||||
statusRates -> setText( tr("<strong>Down:</strong>") + " " + QString::fromStdString(out.str()) + " (kB/s) | " + tr("<strong>Up:</strong>") + " " + QString::fromStdString(out2.str()) + " (kB/s) " );
|
||||
|
||||
if( upKb > 0 || downKb < 0 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue