diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-01-05 21:16:23 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-09 19:45:29 +0100 |
commit | 0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f (patch) | |
tree | 24c19cd4af285fd8ede2d9d866668d005b5f6e26 /src/gui/setup_keyboard.cpp | |
parent | 1a769276ce68285040bffd63bd1c01495ce411a7 (diff) | |
download | mana-client-0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f.tar.gz mana-client-0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f.tar.bz2 mana-client-0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f.tar.xz mana-client-0fd9aef8bf376d44132edded2cdcb41ba7ee5b2f.zip |
Mostly whitespace and formatting changes
(merged from eAthena client)
Diffstat (limited to 'src/gui/setup_keyboard.cpp')
-rw-r--r-- | src/gui/setup_keyboard.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/setup_keyboard.cpp b/src/gui/setup_keyboard.cpp index 270f4a0e..e4d1af0c 100644 --- a/src/gui/setup_keyboard.cpp +++ b/src/gui/setup_keyboard.cpp @@ -32,6 +32,7 @@ #include "../configuration.h" #include "../keyboardconfig.h" +#include "../utils/gettext.h" #include "../utils/tostring.h" #include <SDL_keyboard.h> @@ -85,13 +86,13 @@ Setup_Keyboard::Setup_Keyboard(): scrollArea->setDimension(gcn::Rectangle(10, 10, 200, 140)); add(scrollArea); - mAssignKeyButton = new Button("Assign", "assign", this); + mAssignKeyButton = new Button(_("Assign"), "assign", this); mAssignKeyButton->setPosition(165, 155); mAssignKeyButton->addActionListener(this); mAssignKeyButton->setEnabled(false); add(mAssignKeyButton); - mMakeDefaultButton = new Button("Default", "makeDefault", this); + mMakeDefaultButton = new Button(_("Default"), "makeDefault", this); mMakeDefaultButton->setPosition(10, 155); mMakeDefaultButton->addActionListener(this); add(mMakeDefaultButton); @@ -112,8 +113,9 @@ void Setup_Keyboard::apply() if (keyboard.hasConflicts()) { - new OkDialog("Key Conflict(s) Detected.", - "Resolve them, or gameplay may result in strange behaviour."); + new OkDialog(_("Key Conflict(s) Detected."), + _("Resolve them, or gameplay may result in strange " + "behaviour.")); } keyboard.setEnabled(true); keyboard.store(); @@ -171,7 +173,7 @@ void Setup_Keyboard::newKeyCallback(int index) void Setup_Keyboard::refreshKeys() { - for(int i = 0; i < keyboard.KEY_TOTAL; i++) + for (int i = 0; i < keyboard.KEY_TOTAL; i++) { refreshAssignedKey(i); } |