diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:35:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:51:43 +0300 |
commit | a7c723b681ddefdcaa84cb9b16681c65818d7110 (patch) | |
tree | 3c7100a90db00c3eacc41977cdb5bbae99e6ca40 /src/gui/npcpostdialog.cpp | |
parent | 04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (diff) | |
download | plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.gz plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.bz2 plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.xz plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.zip |
add comments for translators
Diffstat (limited to 'src/gui/npcpostdialog.cpp')
-rw-r--r-- | src/gui/npcpostdialog.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/npcpostdialog.cpp b/src/gui/npcpostdialog.cpp index bb5ab3528..c76869980 100644 --- a/src/gui/npcpostdialog.cpp +++ b/src/gui/npcpostdialog.cpp @@ -39,6 +39,7 @@ NpcPostDialog::DialogList NpcPostDialog::instances; NpcPostDialog::NpcPostDialog(const int npcId): + // TRANSLATORS: npc post dialog caption Window(_("NPC"), false, nullptr, "npcpost.xml"), gcn::ActionListener(), mNpcId(npcId), @@ -48,15 +49,18 @@ NpcPostDialog::NpcPostDialog(const int npcId): setContentSize(400, 180); // create text field for receiver + // TRANSLATORS: label in npc post dialog Label *const senderText = new Label(this, _("To:")); senderText->setPosition(5, 5); mSender->setPosition(senderText->getWidth() + 5, 5); mSender->setWidth(65); // create button for sending + // TRANSLATORS: button in npc post dialog Button *const sendButton = new Button(this, _("Send"), "send", this); sendButton->setPosition(400 - sendButton->getWidth(), 170 - sendButton->getHeight()); + // TRANSLATORS: button in npc post dialog Button *const cancelButton = new Button(this, _("Cancel"), "cancel", this); cancelButton->setPosition(sendButton->getX() - (cancelButton->getWidth() + 2), sendButton->getY()); @@ -99,6 +103,7 @@ void NpcPostDialog::action(const gcn::ActionEvent &event) { if (localChatTab) { + // TRANSLATORS: npc post message error localChatTab->chatLog(_("Failed to send as sender or letter " "invalid.")); } |