summaryrefslogtreecommitdiff
path: root/src/gui/whoisonline.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-03 12:35:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-03 12:51:43 +0300
commita7c723b681ddefdcaa84cb9b16681c65818d7110 (patch)
tree3c7100a90db00c3eacc41977cdb5bbae99e6ca40 /src/gui/whoisonline.cpp
parent04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (diff)
downloadmv-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.gz
mv-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.bz2
mv-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.xz
mv-a7c723b681ddefdcaa84cb9b16681c65818d7110.zip
add comments for translators
Diffstat (limited to 'src/gui/whoisonline.cpp')
-rw-r--r--src/gui/whoisonline.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gui/whoisonline.cpp b/src/gui/whoisonline.cpp
index b38218662..81f6a15de 100644
--- a/src/gui/whoisonline.cpp
+++ b/src/gui/whoisonline.cpp
@@ -74,7 +74,8 @@ class NameFunctuator final
}
} nameCompare;
-WhoIsOnline::WhoIsOnline():
+WhoIsOnline::WhoIsOnline() :
+ // TRANSLATORS: who is online window name
Window(_("Who Is Online - Updating"), false, nullptr, "whoisonline.xml"),
mThread(nullptr),
mDownloadStatus(UPDATE_LIST),
@@ -87,6 +88,7 @@ WhoIsOnline::WhoIsOnline():
mUpdateTimer(0),
mOnlinePlayers(),
mOnlineNicks(),
+ // TRANSLATORS: who is online. button.
mUpdateButton(new Button(this, _("Update"), "update", this)),
mAllowUpdate(true),
mShowLevel(false),
@@ -199,6 +201,7 @@ void WhoIsOnline::updateWindow(std::vector<OnlinePlayer*> &friends,
size_t numOnline)
{
// Set window caption
+ // TRANSLATORS: who is online window name
setCaption(_("Who Is Online - ") + toString(numOnline));
// List the online people
@@ -616,6 +619,7 @@ void WhoIsOnline::slowLogic()
{
if (mDownloadComplete == true)
{
+ // TRANSLATORS: who is online window name
setCaption(_("Who Is Online - Updating"));
mUpdateTimer = 0;
mDownloadStatus = UPDATE_LIST;
@@ -630,6 +634,7 @@ void WhoIsOnline::slowLogic()
mBrowserBox->addRow("##1Failed to fetch the online list!");
mBrowserBox->addRow(mCurlError);
mDownloadStatus = UPDATE_COMPLETE;
+ // TRANSLATORS: who is online window name
setCaption(_("Who Is Online - error"));
mUpdateButton->setEnabled(true);
mUpdateTimer = cur_time + 240;
@@ -671,6 +676,7 @@ void WhoIsOnline::action(const gcn::ActionEvent &event)
mUpdateTimer = cur_time - 20;
if (mUpdateButton)
mUpdateButton->setEnabled(false);
+ // TRANSLATORS: who is online window name
setCaption(_("Who Is Online - Update"));
if (mThread && SDL_GetThreadID(mThread))
{