summaryrefslogtreecommitdiff
path: root/src/gui/buy.cpp
diff options
context:
space:
mode:
authorKess Vargavind <vargavind@gmail.com>2009-07-26 16:52:53 +0200
committerKess Vargavind <vargavind@gmail.com>2009-07-26 16:52:53 +0200
commitc98665d62a089c978189662c3f526464365f08fa (patch)
treeb6ac1a86376827ea411393f10775c2a6c5ae94c9 /src/gui/buy.cpp
parentc7d5d825999912892d99c295ba7b583eaaa884ff (diff)
downloadmana-c98665d62a089c978189662c3f526464365f08fa.tar.gz
mana-c98665d62a089c978189662c3f526464365f08fa.tar.bz2
mana-c98665d62a089c978189662c3f526464365f08fa.tar.xz
mana-c98665d62a089c978189662c3f526464365f08fa.zip
Gettext fixes
And a Swedish translation of the desktop file.
Diffstat (limited to 'src/gui/buy.cpp')
-rw-r--r--src/gui/buy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index 22572b63..9040364b 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -67,8 +67,8 @@ BuyDialog::BuyDialog():
mMoneyLabel = new Label(strprintf(_("Price: %s / Total: %s"),
"", ""));
- mIncreaseButton = new Button("+", "+", this);
- mDecreaseButton = new Button("-", "-", this);
+ mIncreaseButton = new Button(_("+"), "inc", this);
+ mDecreaseButton = new Button(_("-"), "dec", this);
mBuyButton = new Button(_("Buy"), "buy", this);
mQuitButton = new Button(_("Quit"), "quit", this);
mAddMaxButton = new Button(_("Max"), "max", this);
@@ -162,13 +162,13 @@ void BuyDialog::action(const gcn::ActionEvent &event)
mAmountItems = (int) mSlider->getValue();
updateButtonsAndLabels();
}
- else if (event.getId() == "+" && mAmountItems < mMaxItems)
+ else if (event.getId() == "inc" && mAmountItems < mMaxItems)
{
mAmountItems++;
mSlider->setValue(mAmountItems);
updateButtonsAndLabels();
}
- else if (event.getId() == "-" && mAmountItems > 1)
+ else if (event.getId() == "dec" && mAmountItems > 1)
{
mAmountItems--;
mSlider->setValue(mAmountItems);