From a7c723b681ddefdcaa84cb9b16681c65818d7110 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 May 2013 12:35:22 +0300 Subject: add comments for translators --- src/gui/setup_joystick.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/gui/setup_joystick.cpp') diff --git a/src/gui/setup_joystick.cpp b/src/gui/setup_joystick.cpp index 6732a3a49..1ac5dae8d 100644 --- a/src/gui/setup_joystick.cpp +++ b/src/gui/setup_joystick.cpp @@ -43,16 +43,22 @@ extern Joystick *joystick; Setup_Joystick::Setup_Joystick(const Widget2 *const widget) : SetupTab(widget), mCalibrateLabel(new Label(this, + // TRANSLATORS: joystick settings tab label _("Press the button to start calibration"))), + // TRANSLATORS: joystick settings tab button mCalibrateButton(new Button(this, _("Calibrate"), "calibrate", this)), + // TRANSLATORS: joystick settings tab button mDetectButton(new Button(this, _("Detect joysticks"), "detect", this)), mOriginalJoystickEnabled(config.getBoolValue("joystickEnabled")), + // TRANSLATORS: joystick settings tab checkbox mJoystickEnabled(new CheckBox(this, _("Enable joystick"))), mNamesModel(new NamesModel), mNamesDropDown(new DropDown(this, mNamesModel)), + // TRANSLATORS: joystick settings tab checkbox mUseInactiveCheckBox(new CheckBox(this, _("Use joystick if client " "window inactive"), config.getBoolValue("useInactiveJoystick"))) { + // TRANSLATORS: joystick settings tab name setName(_("Joystick")); Joystick::getNames(mNamesModel->getNames()); @@ -125,15 +131,19 @@ void Setup_Joystick::action(const gcn::ActionEvent &event) if (joystick->isCalibrating()) { + // TRANSLATORS: joystick settings tab button mCalibrateButton->setCaption(_("Calibrate")); mCalibrateLabel->setCaption + // TRANSLATORS: joystick settings tab label (_("Press the button to start calibration")); joystick->finishCalibration(); } else { + // TRANSLATORS: joystick settings tab button mCalibrateButton->setCaption(_("Stop")); mCalibrateLabel->setCaption( + // TRANSLATORS: joystick settings tab label _("Rotate the stick and don't press buttons")); joystick->startCalibration(); } -- cgit v1.2.3-60-g2f50