summaryrefslogtreecommitdiff
path: root/src/gui/npcdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/npcdialog.cpp')
-rw-r--r--src/gui/npcdialog.cpp8
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);
}