From a7c723b681ddefdcaa84cb9b16681c65818d7110 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 May 2013 12:35:22 +0300 Subject: add comments for translators --- src/gui/npcpostdialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gui/npcpostdialog.cpp') 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.")); } -- cgit v1.2.3-70-g09d2