~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/selldialog.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-18 21:06:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130518210629-3trtowluum0tekob
Tags: 1.3.5.12-1
[ Andrei Karas ]
* Add new files to copyright file.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
SellDialog::DialogList SellDialog::instances;
49
49
 
50
50
SellDialog::SellDialog(const int npcId) :
 
51
    // TRANSLATORS: sell dialog name
51
52
    Window(_("Sell"), false, nullptr, "sell.xml"),
52
53
    gcn::ActionListener(),
53
54
    gcn::SelectionListener(),
57
58
}
58
59
 
59
60
SellDialog::SellDialog(std::string nick):
 
61
    // TRANSLATORS: sell dialog name
60
62
    Window(_("Sell"), false, nullptr, "sell.xml"),
61
63
    gcn::ActionListener(),
62
64
    gcn::SelectionListener(),
88
90
    mQuantityLabel = new Label(this, strprintf(
89
91
        "%d / %d", mAmountItems, mMaxItems));
90
92
    mQuantityLabel->setAlignment(gcn::Graphics::CENTER);
 
93
    // TRANSLATORS: sell dialog label
91
94
    mMoneyLabel = new Label(this, strprintf(_("Price: %s / Total: %s"),
92
95
                                      "", ""));
93
96
 
 
97
    // TRANSLATORS: sell dialog button
94
98
    mIncreaseButton = new Button(this, _("+"), "inc", this);
 
99
    // TRANSLATORS: sell dialog button
95
100
    mDecreaseButton = new Button(this, _("-"), "dec", this);
 
101
    // TRANSLATORS: sell dialog button
96
102
    mSellButton = new Button(this, _("Sell"), "sell", this);
 
103
    // TRANSLATORS: sell dialog button
97
104
    mQuitButton = new Button(this, _("Quit"), "quit", this);
 
105
    // TRANSLATORS: sell dialog button
98
106
    mAddMaxButton = new Button(this, _("Max"), "max", this);
99
107
 
100
108
    mDecreaseButton->adjustSize();
330
338
 
331
339
    // Update the quantity and money labels
332
340
    mQuantityLabel->setCaption(strprintf("%d / %d", mAmountItems, mMaxItems));
 
341
    // TRANSLATORS: sell dialog label
333
342
    mMoneyLabel->setCaption(strprintf(_("Price: %s / Total: %s"),
334
343
                    Units::formatCurrency(income).c_str(),
335
344
                    Units::formatCurrency(mPlayerMoney + income).c_str()));