summaryrefslogtreecommitdiff
path: root/src/gui/serverdialog.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/serverdialog.cpp
parent04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (diff)
downloadplus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.gz
plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.bz2
plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.xz
plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.zip
add comments for translators
Diffstat (limited to 'src/gui/serverdialog.cpp')
-rw-r--r--src/gui/serverdialog.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gui/serverdialog.cpp b/src/gui/serverdialog.cpp
index 9e3a46bf4..8bc1ad804 100644
--- a/src/gui/serverdialog.cpp
+++ b/src/gui/serverdialog.cpp
@@ -244,17 +244,24 @@ private:
ServerDialog::ServerDialog(ServerInfo *const serverInfo,
const std::string &dir) :
+ // TRANSLATORS: servers dialog name
Window(_("Choose Your Server"), false, nullptr, "server.xml"),
gcn::ActionListener(),
gcn::KeyListener(),
gcn::SelectionListener(),
mMutex(),
mDescription(new Label(this, std::string())),
+ // TRANSLATORS: servers dialog button
mQuitButton(new Button(this, _("Quit"), "quit", this)),
+ // TRANSLATORS: servers dialog button
mConnectButton(new Button(this, _("Connect"), "connect", this)),
+ // TRANSLATORS: servers dialog button
mAddEntryButton(new Button(this, _("Add"), "addEntry", this)),
+ // TRANSLATORS: servers dialog button
mEditEntryButton(new Button(this, _("Edit"), "editEntry", this)),
+ // TRANSLATORS: servers dialog button
mDeleteButton(new Button(this, _("Delete"), "remove", this)),
+ // TRANSLATORS: servers dialog button
mLoadButton(new Button(this, _("Load"), "load", this)),
mServers(ServerInfos()),
mServersListModel(new ServersListModel(&mServers, this)),
@@ -267,13 +274,17 @@ ServerDialog::ServerDialog(ServerInfo *const serverInfo,
mPersistentIPCheckBox(nullptr)
{
if (isSafeMode)
+ {
+ // TRANSLATORS: servers dialog name
setCaption(_("Choose Your Server *** SAFE MODE ***"));
+ }
setWindowName("ServerDialog");
setCloseButton(true);
mPersistentIPCheckBox = new CheckBox(this,
+ // TRANSLATORS: servers dialog checkbox
_("Use same ip for game sub servers"),
config.getBoolValue("usePersistentIP"),
this, "persitent ip");
@@ -503,19 +514,23 @@ void ServerDialog::logic()
}
else if (mDownloadStatus == DOWNLOADING_IN_PROGRESS)
{
+ // TRANSLATORS: servers dialog label
mDescription->setCaption(strprintf(_("Downloading server list..."
"%2.2f%%"), static_cast<double>(mDownloadProgress * 100)));
}
else if (mDownloadStatus == DOWNLOADING_IDLE)
{
+ // TRANSLATORS: servers dialog label
mDescription->setCaption(_("Waiting for server..."));
}
else if (mDownloadStatus == DOWNLOADING_PREPARING)
{
+ // TRANSLATORS: servers dialog label
mDescription->setCaption(_("Preparing download"));
}
else if (mDownloadStatus == DOWNLOADING_ERROR)
{
+ // TRANSLATORS: servers dialog label
mDescription->setCaption(_("Error retreiving server list!"));
}
}
@@ -606,9 +621,15 @@ void ServerDialog::loadServers(const bool addNew)
if (meetsMinimumVersion)
version.clear();
else if (version.empty())
+ {
+ // TRANSLATORS: servers dialog label
version = _("requires a newer version");
+ }
else
+ {
+ // TRANSLATORS: servers dialog label
version = strprintf(_("requires v%s"), version.c_str());
+ }
gcn::Font *font = gui->getFont();