summaryrefslogtreecommitdiff
path: root/src/gui/charselectdialog.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/charselectdialog.cpp
parent04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (diff)
downloadmanaverse-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.gz
manaverse-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.bz2
manaverse-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.xz
manaverse-a7c723b681ddefdcaa84cb9b16681c65818d7110.zip
add comments for translators
Diffstat (limited to 'src/gui/charselectdialog.cpp')
-rw-r--r--src/gui/charselectdialog.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/gui/charselectdialog.cpp b/src/gui/charselectdialog.cpp
index 4afe7ae38..63f1524c8 100644
--- a/src/gui/charselectdialog.cpp
+++ b/src/gui/charselectdialog.cpp
@@ -56,7 +56,9 @@ class CharDeleteConfirm final : public ConfirmDialog
{
public:
CharDeleteConfirm(CharSelectDialog *const m, const int index) :
+ // TRANSLATORS: char deletion message
ConfirmDialog(_("Confirm Character Delete"),
+ // TRANSLATORS: char deletion message
_("Are you sure you want to delete this character?"),
false, false, m),
mMaster(m),
@@ -80,6 +82,7 @@ class CharDeleteConfirm final : public ConfirmDialog
};
CharSelectDialog::CharSelectDialog(LoginData *const data):
+ // TRANSLATORS: char select dialog name
Window(strprintf(_("Account %s (last login time %s)"),
data->username.c_str(), data->lastLogin.c_str()),
false, nullptr, "char.xml"),
@@ -87,13 +90,18 @@ CharSelectDialog::CharSelectDialog(LoginData *const data):
gcn::KeyListener(),
mLocked(false),
mLoginData(data),
+ // TRANSLATORS: char select dialog. button.
mSwitchLoginButton(new Button(this, _("Switch Login"), "switch", this)),
+ // TRANSLATORS: char select dialog. button.
mChangePasswordButton(new Button(this, _("Change Password"),
"change_password", this)),
mUnregisterButton(nullptr),
mChangeEmailButton(nullptr),
+ // TRANSLATORS: char select dialog. button.
mPlayButton(new Button(this, _("Play"), "use", this)),
+ // TRANSLATORS: char select dialog. button.
mInfoButton(new Button(this, _("Info"), "info", this)),
+ // TRANSLATORS: char select dialog. button.
mDeleteButton(new Button(this, _("Delete"), "delete", this)),
mCharacterView(nullptr),
mCharacterEntries(0),
@@ -117,6 +125,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data):
int n = 1;
if (optionalActions & Net::LoginHandler::Unregister)
{
+ // TRANSLATORS: char select dialog. button.
mUnregisterButton = new Button(this, _("Unregister"),
"unregister", this);
placer(n, 0, mUnregisterButton);
@@ -128,6 +137,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data):
if (optionalActions & Net::LoginHandler::ChangeEmail)
{
+ // TRANSLATORS: char select dialog. button.
mChangeEmailButton = new Button(this, _("Change Email"),
"change_email", this);
placer(n, 0, mChangeEmailButton);
@@ -158,6 +168,7 @@ CharSelectDialog::CharSelectDialog(LoginData *const data):
}
else
{
+ // TRANSLATORS: char select dialog name
setCaption(strprintf(_("Account %s"), mLoginData->username.c_str()));
mCharacterView = new CharacterViewSmall(
this, &mCharacterEntries, mPadding);
@@ -231,6 +242,7 @@ void CharSelectDialog::action(const gcn::ActionEvent &event)
return;
const std::string msg = strprintf(
+ // TRANSLATORS: char select dialog. player info message.
_("Hp: %u/%u\nMp: %u/%u\nLevel: %u\n"
"Experience: %u\nMoney: %s"),
character->data.mAttributes[PlayerInfo::HP],
@@ -272,6 +284,7 @@ void CharSelectDialog::action(const gcn::ActionEvent &event)
}
else
{
+ // TRANSLATORS: error message
new OkDialog(_("Error"), _("Incorrect password"), DIALOG_ERROR);
}
mDeleteIndex = -1;
@@ -400,6 +413,7 @@ void CharSelectDialog::askPasswordForDeletion(const int index)
{
mDeleteIndex = index;
mDeleteDialog = new TextDialog(
+ // TRANSLATORS: char deletion question.
_("Enter password for deleting character"), _("Enter password:"),
this, true);
mDeleteDialog->setActionEventId("try delete character");
@@ -546,7 +560,13 @@ void CharSelectDialog::updateState()
mPlayButton->setEnabled(true);
if (mCharacterEntries[idx]->getCharacter())
+ {
+ // TRANSLATORS: char select dialog. button.
mPlayButton->setCaption(_("Play"));
+ }
else
+ {
+ // TRANSLATORS: char select dialog. button.
mPlayButton->setCaption(_("Create"));
+ }
}