summaryrefslogtreecommitdiff
path: root/src/gui/itemamountwindow.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/itemamountwindow.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/itemamountwindow.cpp')
-rw-r--r--src/gui/itemamountwindow.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/gui/itemamountwindow.cpp b/src/gui/itemamountwindow.cpp
index deeca6df5..7f880dcd0 100644
--- a/src/gui/itemamountwindow.cpp
+++ b/src/gui/itemamountwindow.cpp
@@ -89,8 +89,7 @@ public:
virtual std::string getElementAt(int i)
{
if (i < 0 || i >= getNumberOfElements())
- return _("???");
-
+ return "???";
return mStrings.at(i);
}
private:
@@ -203,10 +202,15 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent,
// Buttons
+ // TRANSLATORS: item amount window button
Button *const minusAmountButton = new Button(this, _("-"), "dec", this);
+ // TRANSLATORS: item amount window button
Button *const plusAmountButton = new Button(this, _("+"), "inc", this);
+ // TRANSLATORS: item amount window button
Button *const okButton = new Button(this, _("OK"), "ok", this);
+ // TRANSLATORS: item amount window button
Button *const cancelButton = new Button(this, _("Cancel"), "cancel", this);
+ // TRANSLATORS: item amount window button
Button *const addAllButton = new Button(this, _("All"), "all", this);
minusAmountButton->adjustSize();
@@ -232,8 +236,10 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent,
if (mUsage == ShopBuyAdd || mUsage == ShopSellAdd)
{
Button *const minusPriceButton = new Button(
+ // TRANSLATORS: item amount window button
this, _("-"), "decPrice", this);
Button *const plusPriceButton = new Button(
+ // TRANSLATORS: item amount window button
this, _("+"), "incPrice", this);
minusPriceButton->adjustSize();
minusPriceButton->setWidth(plusPriceButton->getWidth());
@@ -260,27 +266,35 @@ ItemAmountWindow::ItemAmountWindow(const Usage usage, Window *const parent,
switch (usage)
{
case TradeAdd:
+ // TRANSLATORS: amount window message
setCaption(_("Select amount of items to trade."));
break;
case ItemDrop:
+ // TRANSLATORS: amount window message
setCaption(_("Select amount of items to drop."));
break;
case StoreAdd:
+ // TRANSLATORS: amount window message
setCaption(_("Select amount of items to store."));
break;
case StoreRemove:
+ // TRANSLATORS: amount window message
setCaption(_("Select amount of items to retrieve."));
break;
case ItemSplit:
+ // TRANSLATORS: amount window message
setCaption(_("Select amount of items to split."));
break;
case ShopBuyAdd:
+ // TRANSLATORS: amount window message
setCaption(_("Add to buy shop."));
break;
case ShopSellAdd:
+ // TRANSLATORS: amount window message
setCaption(_("Add to sell shop."));
break;
default:
+ // TRANSLATORS: amount window message
setCaption(_("Unknown."));
break;
}