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/tradewindow.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/gui/tradewindow.cpp') diff --git a/src/gui/tradewindow.cpp b/src/gui/tradewindow.cpp index e77fd3482..948e5f964 100644 --- a/src/gui/tradewindow.cpp +++ b/src/gui/tradewindow.cpp @@ -53,12 +53,17 @@ #include "debug.h" +// TRANSLATORS: trade window button #define CAPTION_PROPOSE _("Propose trade") +// TRANSLATORS: trade window button #define CAPTION_CONFIRMED _("Confirmed. Waiting...") +// TRANSLATORS: trade window button #define CAPTION_ACCEPT _("Agree trade") +// TRANSLATORS: trade window button #define CAPTION_ACCEPTED _("Agreed. Waiting...") TradeWindow::TradeWindow(): + // TRANSLATORS: trade window caption Window(_("Trade: You"), false, nullptr, "trade.xml"), gcn::ActionListener(), gcn::SelectionListener(), @@ -66,9 +71,12 @@ TradeWindow::TradeWindow(): mPartnerInventory(new Inventory(Inventory::TRADE)), mMyItemContainer(new ItemContainer(this, mMyInventory.get())), mPartnerItemContainer(new ItemContainer(this, mPartnerInventory.get())), + // TRANSLATORS: trade window money label mMoneyLabel(new Label(this, strprintf(_("You get %s"), ""))), + // TRANSLATORS: trade window button mAddButton(new Button(this, _("Add"), "add", this)), mOkButton(new Button(this, "", "", this)), // Will be filled in later + // TRANSLATORS: trade window money change button mMoneyChangeButton(new Button(this, _("Change"), "money", this)), mMoneyField(new TextField(this)), mStatus(PROPOSING), @@ -114,6 +122,7 @@ TradeWindow::TradeWindow(): true, "trade_background.xml"); partnerScroll->setHorizontalScrollPolicy(ScrollArea::SHOW_NEVER); + // TRANSLATORS: trade window money label Label *const moneyLabel2 = new Label(this, _("You give:")); mMoneyField->setWidth(40); @@ -169,6 +178,7 @@ void TradeWindow::setMoney(const int amount) } mGotMoney = amount; + // TRANSLATORS: trade window money label mMoneyLabel->setCaption(strprintf(_("You get %s"), Units::formatCurrency(amount).c_str())); mMoneyLabel->adjustSize(); @@ -379,6 +389,7 @@ void TradeWindow::action(const gcn::ActionEvent &event) { if (localChatTab) { + // TRANSLATORS: trade error localChatTab->chatLog(_("You don't have enough money."), BY_SERVER); } @@ -460,6 +471,7 @@ bool TradeWindow::checkItem(const Item *const item) const { if (localChatTab) { + // TRANSLATORS: trade error localChatTab->chatLog(_("Failed adding item. You can not " "overlap one kind of item on the window."), BY_SERVER); } -- cgit v1.2.3-70-g09d2