diff options
author | Kess Vargavind <vargavind@gmail.com> | 2009-07-26 16:52:53 +0200 |
---|---|---|
committer | Kess Vargavind <vargavind@gmail.com> | 2009-07-26 16:52:53 +0200 |
commit | c98665d62a089c978189662c3f526464365f08fa (patch) | |
tree | b6ac1a86376827ea411393f10775c2a6c5ae94c9 /src/gui/npcdialog.cpp | |
parent | c7d5d825999912892d99c295ba7b583eaaa884ff (diff) | |
download | mana-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/npcdialog.cpp')
-rw-r--r-- | src/gui/npcdialog.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/npcdialog.cpp b/src/gui/npcdialog.cpp index 4e7c6f5a..186a99a9 100644 --- a/src/gui/npcdialog.cpp +++ b/src/gui/npcdialog.cpp @@ -93,8 +93,8 @@ NpcDialog::NpcDialog() mButton = new Button("", "ok", this); //Setup more and less buttons (int input) - mPlusButton = new Button("+", "plus", this); - mMinusButton = new Button("-", "minus", this); + mPlusButton = new Button(_("+"), "inc", this); + mMinusButton = new Button(_("-"), "dec", this); int width = std::max(mButton->getFont()->getWidth(CAPTION_WAITING), mButton->getFont()->getWidth(CAPTION_NEXT)); @@ -211,11 +211,11 @@ void NpcDialog::action(const gcn::ActionEvent &event) mIntField->setValue(mDefaultInt); } } - else if (event.getId() == "plus") + else if (event.getId() == "inc") { mIntField->setValue(mIntField->getValue() + 1); } - else if (event.getId() == "minus") + else if (event.getId() == "dec") { mIntField->setValue(mIntField->getValue() - 1); } |