mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-08 22:32:34 -04:00
Fixed translations on StatusBar display.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2676 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
6608da5d18
commit
d7d9df808d
21 changed files with 4412 additions and 3321 deletions
|
@ -71,12 +71,15 @@ void PeerStatus::getPeerStatus()
|
||||||
rsPeers->getFriendList(ids);
|
rsPeers->getFriendList(ids);
|
||||||
int friends = ids.size();
|
int friends = ids.size();
|
||||||
|
|
||||||
|
std::ostringstream out;
|
||||||
|
out << friends << " ";
|
||||||
|
|
||||||
std::ostringstream out2;
|
std::ostringstream out2;
|
||||||
out2 << "<span style=\"color:#000000\"><strong>" << tr("Friends:").toStdString() << " " << friends << "</strong></span>" << " | " << "<span style=\"color:#0000FF\"><strong>" << tr("Online:").toStdString() << " " << online << "</strong></span>" << " ";
|
out2 << online << " ";
|
||||||
|
|
||||||
|
|
||||||
if (statusPeers)
|
if (statusPeers)
|
||||||
statusPeers -> setText(QString::fromStdString(out2.str()));
|
statusPeers -> setText( tr("<span style=\"color:#000000\"><strong>Friends:</strong></span>") + " " + QString::fromStdString(out.str()) + " | " + tr("<span style=\"color:#0000FF\"><strong>Online:</strong></span>") + " " + QString::fromStdString(out2.str()) );
|
||||||
|
|
||||||
if (online > 0)
|
if (online > 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -67,11 +67,14 @@ void RatesStatus::getRatesStatus()
|
||||||
rsicontrol -> ConfigGetDataRates(downKb, upKb);
|
rsicontrol -> ConfigGetDataRates(downKb, upKb);
|
||||||
|
|
||||||
std::ostringstream out;
|
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)
|
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 )
|
if( upKb > 0 || downKb < 0 )
|
||||||
{
|
{
|
||||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue