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/selldialog.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/gui/selldialog.cpp') diff --git a/src/gui/selldialog.cpp b/src/gui/selldialog.cpp index d0d9809ac..5963d8dff 100644 --- a/src/gui/selldialog.cpp +++ b/src/gui/selldialog.cpp @@ -48,6 +48,7 @@ SellDialog::DialogList SellDialog::instances; SellDialog::SellDialog(const int npcId) : + // TRANSLATORS: sell dialog name Window(_("Sell"), false, nullptr, "sell.xml"), gcn::ActionListener(), gcn::SelectionListener(), @@ -57,6 +58,7 @@ SellDialog::SellDialog(const int npcId) : } SellDialog::SellDialog(std::string nick): + // TRANSLATORS: sell dialog name Window(_("Sell"), false, nullptr, "sell.xml"), gcn::ActionListener(), gcn::SelectionListener(), @@ -88,13 +90,19 @@ void SellDialog::init() mQuantityLabel = new Label(this, strprintf( "%d / %d", mAmountItems, mMaxItems)); mQuantityLabel->setAlignment(gcn::Graphics::CENTER); + // TRANSLATORS: sell dialog label mMoneyLabel = new Label(this, strprintf(_("Price: %s / Total: %s"), "", "")); + // TRANSLATORS: sell dialog button mIncreaseButton = new Button(this, _("+"), "inc", this); + // TRANSLATORS: sell dialog button mDecreaseButton = new Button(this, _("-"), "dec", this); + // TRANSLATORS: sell dialog button mSellButton = new Button(this, _("Sell"), "sell", this); + // TRANSLATORS: sell dialog button mQuitButton = new Button(this, _("Quit"), "quit", this); + // TRANSLATORS: sell dialog button mAddMaxButton = new Button(this, _("Max"), "max", this); mDecreaseButton->adjustSize(); @@ -330,6 +338,7 @@ void SellDialog::updateButtonsAndLabels() // Update the quantity and money labels mQuantityLabel->setCaption(strprintf("%d / %d", mAmountItems, mMaxItems)); + // TRANSLATORS: sell dialog label mMoneyLabel->setCaption(strprintf(_("Price: %s / Total: %s"), Units::formatCurrency(income).c_str(), Units::formatCurrency(mPlayerMoney + income).c_str())); -- cgit v1.2.3-60-g2f50