diff options
author | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-07 07:54:13 +0000 |
---|---|---|
committer | Guillaume Melquiond <guillaume.melquiond@gmail.com> | 2007-08-07 07:54:13 +0000 |
commit | c09825097c0231c57f9ac416fae0003c5d68398c (patch) | |
tree | b5c4d8cb200e6382ffae66d5b1d98a5f22aabe60 /src/gui/setup_joystick.cpp | |
parent | 1389fc06cc578bdddd6d92cf3a239e33bb892026 (diff) | |
download | mana-c09825097c0231c57f9ac416fae0003c5d68398c.tar.gz mana-c09825097c0231c57f9ac416fae0003c5d68398c.tar.bz2 mana-c09825097c0231c57f9ac416fae0003c5d68398c.tar.xz mana-c09825097c0231c57f9ac416fae0003c5d68398c.zip |
Marked most of the GUI as translatable.
Diffstat (limited to 'src/gui/setup_joystick.cpp')
-rw-r--r-- | src/gui/setup_joystick.cpp | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/gui/setup_joystick.cpp b/src/gui/setup_joystick.cpp index 56f411d7..59cfefa4 100644 --- a/src/gui/setup_joystick.cpp +++ b/src/gui/setup_joystick.cpp @@ -30,12 +30,14 @@ #include "../configuration.h" #include "../joystick.h" +#include "../utils/gettext.h" + extern Joystick *joystick; Setup_Joystick::Setup_Joystick(): - mCalibrateLabel(new gcn::Label("Press the button to start calibration")), - mCalibrateButton(new Button("Calibrate", "calibrate", this)), - mJoystickEnabled(new CheckBox("Enable joystick")) + mCalibrateLabel(new gcn::Label(_("Press the button to start calibration"))), + mCalibrateButton(new Button(_("Calibrate"), "calibrate", this)), + mJoystickEnabled(new CheckBox(_("Enable joystick"))) { setOpaque(false); mJoystickEnabled->setPosition(10, 10); @@ -65,13 +67,13 @@ void Setup_Joystick::action(const gcn::ActionEvent &event) else { if (joystick->isCalibrating()) { - mCalibrateButton->setCaption("Calibrate"); - mCalibrateLabel->setCaption( - "Press the button to start calibration"); + mCalibrateButton->setCaption(_("Calibrate")); + mCalibrateLabel->setCaption + (_("Press the button to start calibration")); joystick->finishCalibration(); } else { - mCalibrateButton->setCaption("Stop"); - mCalibrateLabel->setCaption("Rotate the stick"); + mCalibrateButton->setCaption(_("Stop")); + mCalibrateLabel->setCaption(_("Rotate the stick")); joystick->startCalibration(); } } |