summaryrefslogtreecommitdiff
path: root/src/gui/sell.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/sell.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/sell.cpp')
-rw-r--r--src/gui/sell.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index 54cf514f..4082b881 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -69,8 +69,8 @@ SellDialog::SellDialog():
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);
mSellButton = new Button(_("Sell"), "sell", this);
mQuitButton = new Button(_("Quit"), "quit", this);
mAddMaxButton = new Button(_("Max"), "max", this);
@@ -161,13 +161,13 @@ void SellDialog::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);