summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-01-28 18:28:46 +0200
committerAndrei Karas <akaras@inbox.ru>2011-01-28 18:28:46 +0200
commit8d3b46c492cade8504fafedbd6c00b6a39968388 (patch)
treef7c2b1420a7656294d172ff45741f7d0207260cd /src/keyboardconfig.cpp
parent4e559aa763713885dc3b6b96054072d8d8e81499 (diff)
downloadplus-8d3b46c492cade8504fafedbd6c00b6a39968388.tar.gz
plus-8d3b46c492cade8504fafedbd6c00b6a39968388.tar.bz2
plus-8d3b46c492cade8504fafedbd6c00b6a39968388.tar.xz
plus-8d3b46c492cade8504fafedbd6c00b6a39968388.zip
Fix gettext issue with unstranslated strings in keyboardconfig.cpp
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp305
1 files changed, 158 insertions, 147 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 625e467fc..c746880c2 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -38,288 +38,288 @@ struct KeyData
// keyData must be in same order as enum keyAction.
static KeyData const keyData[KeyboardConfig::KEY_TOTAL] = {
- {"keyMoveUp", SDLK_UP, _("Move Up"), KeyboardConfig::GRP_DEFAULT},
- {"keyMoveDown", SDLK_DOWN, _("Move Down"), KeyboardConfig::GRP_DEFAULT},
- {"keyMoveLeft", SDLK_LEFT, _("Move Left"), KeyboardConfig::GRP_DEFAULT},
- {"keyMoveRight", SDLK_RIGHT, _("Move Right"), KeyboardConfig::GRP_DEFAULT},
- {"keyAttack", SDLK_LCTRL, _("Attack"), KeyboardConfig::GRP_DEFAULT},
- {"keyTargetAttack", SDLK_x, _("Target & Attack"),
+ {"keyMoveUp", SDLK_UP, N_("Move Up"), KeyboardConfig::GRP_DEFAULT},
+ {"keyMoveDown", SDLK_DOWN, N_("Move Down"), KeyboardConfig::GRP_DEFAULT},
+ {"keyMoveLeft", SDLK_LEFT, N_("Move Left"), KeyboardConfig::GRP_DEFAULT},
+ {"keyMoveRight", SDLK_RIGHT, N_("Move Right"), KeyboardConfig::GRP_DEFAULT},
+ {"keyAttack", SDLK_LCTRL, N_("Attack"), KeyboardConfig::GRP_DEFAULT},
+ {"keyTargetAttack", SDLK_x, N_("Target & Attack"),
KeyboardConfig::GRP_DEFAULT},
- {"keyMoveToTarget", SDLK_v, _("Move to Target"),
+ {"keyMoveToTarget", SDLK_v, N_("Move to Target"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChangeMoveToTarget", SDLK_PERIOD, _("Change Move to Target type"),
+ {"keyChangeMoveToTarget", SDLK_PERIOD, N_("Change Move to Target type"),
KeyboardConfig::GRP_DEFAULT},
- {"keyMoveToHome", SDLK_d, _("Move to Home location"),
+ {"keyMoveToHome", SDLK_d, N_("Move to Home location"),
KeyboardConfig::GRP_DEFAULT},
- {"keySetHome", SDLK_KP5, _("Set home location"),
+ {"keySetHome", SDLK_KP5, N_("Set home location"),
KeyboardConfig::GRP_DEFAULT},
- {"keyMoveToPoint", SDLK_RSHIFT, _("Move to navigation point"),
+ {"keyMoveToPoint", SDLK_RSHIFT, N_("Move to navigation point"),
KeyboardConfig::GRP_DEFAULT},
- {"keySmilie", SDLK_LALT, _("Smilie"), KeyboardConfig::GRP_DEFAULT},
- {"keyTalk", SDLK_t, _("Talk"), KeyboardConfig::GRP_DEFAULT},
- {"keyTarget", SDLK_LSHIFT, _("Stop Attack"), KeyboardConfig::GRP_DEFAULT},
- {"keyTargetClosest", SDLK_a, _("Target Closest"),
+ {"keySmilie", SDLK_LALT, N_("Smilie"), KeyboardConfig::GRP_DEFAULT},
+ {"keyTalk", SDLK_t, N_("Talk"), KeyboardConfig::GRP_DEFAULT},
+ {"keyTarget", SDLK_LSHIFT, N_("Stop Attack"), KeyboardConfig::GRP_DEFAULT},
+ {"keyTargetClosest", SDLK_a, N_("Target Closest"),
KeyboardConfig::GRP_DEFAULT},
- {"keyTargetNPC", SDLK_n, _("Target NPC"), KeyboardConfig::GRP_DEFAULT},
- {"keyTargetPlayer", SDLK_q, _("Target Player"),
+ {"keyTargetNPC", SDLK_n, N_("Target NPC"), KeyboardConfig::GRP_DEFAULT},
+ {"keyTargetPlayer", SDLK_q, N_("Target Player"),
KeyboardConfig::GRP_DEFAULT},
- {"keyPickup", SDLK_z, _("Pickup"), KeyboardConfig::GRP_DEFAULT},
- {"keyChangePickupType", SDLK_o, _("Change Pickup Type"),
+ {"keyPickup", SDLK_z, N_("Pickup"), KeyboardConfig::GRP_DEFAULT},
+ {"keyChangePickupType", SDLK_o, N_("Change Pickup Type"),
KeyboardConfig::GRP_DEFAULT},
- {"keyHideWindows", SDLK_h, _("Hide Windows"), KeyboardConfig::GRP_DEFAULT},
- {"keyBeingSit", SDLK_s, _("Sit"), KeyboardConfig::GRP_DEFAULT},
- {"keyScreenshot", SDLK_p, _("Screenshot"), KeyboardConfig::GRP_DEFAULT},
- {"keyTrade", SDLK_r, _("Enable/Disable Trading"),
+ {"keyHideWindows", SDLK_h, N_("Hide Windows"), KeyboardConfig::GRP_DEFAULT},
+ {"keyBeingSit", SDLK_s, N_("Sit"), KeyboardConfig::GRP_DEFAULT},
+ {"keyScreenshot", SDLK_p, N_("Screenshot"), KeyboardConfig::GRP_DEFAULT},
+ {"keyTrade", SDLK_r, N_("Enable/Disable Trading"),
KeyboardConfig::GRP_DEFAULT},
- {"keyPathfind", SDLK_f, _("Change Map View Mode"),
+ {"keyPathfind", SDLK_f, N_("Change Map View Mode"),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcutsKey", SDLK_MENU, _("Item Shortcuts Key"),
+ {"keyShortcutsKey", SDLK_MENU, N_("Item Shortcuts Key"),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut1", SDLK_1, strprintf(_("Item Shortcut %d"), 1),
+ {"keyShortcut1", SDLK_1, strprintf(N_("Item Shortcut %d"), 1),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut2", SDLK_2, strprintf(_("Item Shortcut %d"), 2),
+ {"keyShortcut2", SDLK_2, strprintf(N_("Item Shortcut %d"), 2),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut3", SDLK_3, strprintf(_("Item Shortcut %d"), 3),
+ {"keyShortcut3", SDLK_3, strprintf(N_("Item Shortcut %d"), 3),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut4", SDLK_4, strprintf(_("Item Shortcut %d"), 4),
+ {"keyShortcut4", SDLK_4, strprintf(N_("Item Shortcut %d"), 4),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut5", SDLK_5, strprintf(_("Item Shortcut %d"), 5),
+ {"keyShortcut5", SDLK_5, strprintf(N_("Item Shortcut %d"), 5),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut6", SDLK_6, strprintf(_("Item Shortcut %d"), 6),
+ {"keyShortcut6", SDLK_6, strprintf(N_("Item Shortcut %d"), 6),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut7", SDLK_7, strprintf(_("Item Shortcut %d"), 7),
+ {"keyShortcut7", SDLK_7, strprintf(N_("Item Shortcut %d"), 7),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut8", SDLK_8, strprintf(_("Item Shortcut %d"), 8),
+ {"keyShortcut8", SDLK_8, strprintf(N_("Item Shortcut %d"), 8),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut9", SDLK_9, strprintf(_("Item Shortcut %d"), 9),
+ {"keyShortcut9", SDLK_9, strprintf(N_("Item Shortcut %d"), 9),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut10", SDLK_0, strprintf(_("Item Shortcut %d"), 10),
+ {"keyShortcut10", SDLK_0, strprintf(N_("Item Shortcut %d"), 10),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut11", SDLK_MINUS, strprintf(_("Item Shortcut %d"), 11),
+ {"keyShortcut11", SDLK_MINUS, strprintf(N_("Item Shortcut %d"), 11),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut12", SDLK_EQUALS, strprintf(_("Item Shortcut %d"), 12),
+ {"keyShortcut12", SDLK_EQUALS, strprintf(N_("Item Shortcut %d"), 12),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut13", SDLK_BACKSPACE, strprintf(_("Item Shortcut %d"), 13),
+ {"keyShortcut13", SDLK_BACKSPACE, strprintf(N_("Item Shortcut %d"), 13),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut14", SDLK_INSERT, strprintf(_("Item Shortcut %d"), 14),
+ {"keyShortcut14", SDLK_INSERT, strprintf(N_("Item Shortcut %d"), 14),
KeyboardConfig::GRP_DEFAULT},
- {"keyShortcut15", SDLK_HOME, strprintf(_("Item Shortcut %d"), 15),
+ {"keyShortcut15", SDLK_HOME, strprintf(N_("Item Shortcut %d"), 15),
KeyboardConfig::GRP_DEFAULT},
{"keyShortcut16", KeyboardConfig::KEY_NO_VALUE,
- strprintf(_("Item Shortcut %d"), 16), KeyboardConfig::GRP_DEFAULT},
+ strprintf(N_("Item Shortcut %d"), 16), KeyboardConfig::GRP_DEFAULT},
{"keyShortcut17", KeyboardConfig::KEY_NO_VALUE,
- strprintf(_("Item Shortcut %d"), 17), KeyboardConfig::GRP_DEFAULT},
+ strprintf(N_("Item Shortcut %d"), 17), KeyboardConfig::GRP_DEFAULT},
{"keyShortcut18", KeyboardConfig::KEY_NO_VALUE,
- strprintf(_("Item Shortcut %d"), 18), KeyboardConfig::GRP_DEFAULT},
+ strprintf(N_("Item Shortcut %d"), 18), KeyboardConfig::GRP_DEFAULT},
{"keyShortcut19", KeyboardConfig::KEY_NO_VALUE,
- strprintf(_("Item Shortcut %d"), 19), KeyboardConfig::GRP_DEFAULT},
+ strprintf(N_("Item Shortcut %d"), 19), KeyboardConfig::GRP_DEFAULT},
{"keyShortcut20", KeyboardConfig::KEY_NO_VALUE,
- strprintf(_("Item Shortcut %d"), 20), KeyboardConfig::GRP_DEFAULT},
- {"keyWindowHelp", SDLK_F1, _("Help Window"), KeyboardConfig::GRP_DEFAULT},
- {"keyWindowStatus", SDLK_F2, _("Status Window"),
+ strprintf(N_("Item Shortcut %d"), 20), KeyboardConfig::GRP_DEFAULT},
+ {"keyWindowHelp", SDLK_F1, N_("Help Window"), KeyboardConfig::GRP_DEFAULT},
+ {"keyWindowStatus", SDLK_F2, N_("Status Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowInventory", SDLK_F3, _("Inventory Window"),
+ {"keyWindowInventory", SDLK_F3, N_("Inventory Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowEquipment", SDLK_F4, _("Equipment Window"),
+ {"keyWindowEquipment", SDLK_F4, N_("Equipment Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowSkill", SDLK_F5, _("Skill Window"),
+ {"keyWindowSkill", SDLK_F5, N_("Skill Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowMinimap", SDLK_F6, _("Minimap Window"),
+ {"keyWindowMinimap", SDLK_F6, N_("Minimap Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowChat", SDLK_F7, _("Chat Window"), KeyboardConfig::GRP_DEFAULT},
- {"keyWindowShortcut", SDLK_F8, _("Item Shortcut Window"),
+ {"keyWindowChat", SDLK_F7, N_("Chat Window"), KeyboardConfig::GRP_DEFAULT},
+ {"keyWindowShortcut", SDLK_F8, N_("Item Shortcut Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowSetup", SDLK_F9, _("Setup Window"),
+ {"keyWindowSetup", SDLK_F9, N_("Setup Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowDebug", SDLK_F10, _("Debug Window"),
+ {"keyWindowDebug", SDLK_F10, N_("Debug Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowSocial", SDLK_F11, _("Social Window"),
+ {"keyWindowSocial", SDLK_F11, N_("Social Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowEmoteBar", SDLK_F12, _("Emote Shortcut Window"),
+ {"keyWindowEmoteBar", SDLK_F12, N_("Emote Shortcut Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowOutfit", SDLK_BACKQUOTE, _("Outfits Window"),
+ {"keyWindowOutfit", SDLK_BACKQUOTE, N_("Outfits Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowShop", -1, _("Shop Window"), KeyboardConfig::GRP_DEFAULT},
- {"keyWindowDrop", SDLK_w, _("Quick drop Window"),
+ {"keyWindowShop", -1, N_("Shop Window"), KeyboardConfig::GRP_DEFAULT},
+ {"keyWindowDrop", SDLK_w, N_("Quick drop Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowKills", SDLK_e, _("Kills Stats Window"),
+ {"keyWindowKills", SDLK_e, N_("Kills Stats Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowSpells", SDLK_j, _("Commands Window"),
+ {"keyWindowSpells", SDLK_j, N_("Commands Window"),
KeyboardConfig::GRP_DEFAULT},
- {"keyWindowBotChecker", SDLK_LEFTBRACKET, _("Bot Checker Window"),
+ {"keyWindowBotChecker", SDLK_LEFTBRACKET, N_("Bot Checker Window"),
KeyboardConfig::GRP_DEFAULT},
{"keyWindowOnline", KeyboardConfig::KEY_NO_VALUE,
_("Who Is Online Window"), KeyboardConfig::GRP_DEFAULT},
{"keySocialPrevTab", KeyboardConfig::KEY_NO_VALUE,
_("Previous Social Tab"), KeyboardConfig::GRP_DEFAULT},
- {"keySocialNextTab", KeyboardConfig::KEY_NO_VALUE, _("Next Social Tab"),
+ {"keySocialNextTab", KeyboardConfig::KEY_NO_VALUE, N_("Next Social Tab"),
KeyboardConfig::GRP_DEFAULT},
- {"keyEmoteShortcut1", SDLK_1, strprintf(_("Emote Shortcut %d"), 1),
+ {"keyEmoteShortcut1", SDLK_1, strprintf(N_("Emote Shortcut %d"), 1),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut2", SDLK_2, strprintf(_("Emote Shortcut %d"), 2),
+ {"keyEmoteShortcut2", SDLK_2, strprintf(N_("Emote Shortcut %d"), 2),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut3", SDLK_3, strprintf(_("Emote Shortcut %d"), 3),
+ {"keyEmoteShortcut3", SDLK_3, strprintf(N_("Emote Shortcut %d"), 3),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut4", SDLK_4, strprintf(_("Emote Shortcut %d"), 4),
+ {"keyEmoteShortcut4", SDLK_4, strprintf(N_("Emote Shortcut %d"), 4),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut5", SDLK_5, strprintf(_("Emote Shortcut %d"), 5),
+ {"keyEmoteShortcut5", SDLK_5, strprintf(N_("Emote Shortcut %d"), 5),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut6", SDLK_6, strprintf(_("Emote Shortcut %d"), 6),
+ {"keyEmoteShortcut6", SDLK_6, strprintf(N_("Emote Shortcut %d"), 6),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut7", SDLK_7, strprintf(_("Emote Shortcut %d"), 7),
+ {"keyEmoteShortcut7", SDLK_7, strprintf(N_("Emote Shortcut %d"), 7),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut8", SDLK_8, strprintf(_("Emote Shortcut %d"), 8),
+ {"keyEmoteShortcut8", SDLK_8, strprintf(N_("Emote Shortcut %d"), 8),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut9", SDLK_9, strprintf(_("Emote Shortcut %d"), 9),
+ {"keyEmoteShortcut9", SDLK_9, strprintf(N_("Emote Shortcut %d"), 9),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut10", SDLK_0, strprintf(_("Emote Shortcut %d"), 10),
+ {"keyEmoteShortcut10", SDLK_0, strprintf(N_("Emote Shortcut %d"), 10),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut11", SDLK_MINUS, strprintf(_("Emote Shortcut %d"), 11),
+ {"keyEmoteShortcut11", SDLK_MINUS, strprintf(N_("Emote Shortcut %d"), 11),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut12", SDLK_EQUALS, strprintf(_("Emote Shortcut %d"), 12),
+ {"keyEmoteShortcut12", SDLK_EQUALS, strprintf(N_("Emote Shortcut %d"), 12),
KeyboardConfig::GRP_EMOTION},
{"keyEmoteShortcut13", SDLK_BACKSPACE,
- strprintf(_("Emote Shortcut %d"), 13),
+ strprintf(N_("Emote Shortcut %d"), 13),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut14", SDLK_INSERT, strprintf(_("Emote Shortcut %d"), 14),
+ {"keyEmoteShortcut14", SDLK_INSERT, strprintf(N_("Emote Shortcut %d"), 14),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut15", SDLK_HOME, strprintf(_("Emote Shortcut %d"), 15),
+ {"keyEmoteShortcut15", SDLK_HOME, strprintf(N_("Emote Shortcut %d"), 15),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut16", SDLK_q, strprintf(_("Emote Shortcut %d"), 16),
+ {"keyEmoteShortcut16", SDLK_q, strprintf(N_("Emote Shortcut %d"), 16),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut17", SDLK_w, strprintf(_("Emote Shortcut %d"), 17),
+ {"keyEmoteShortcut17", SDLK_w, strprintf(N_("Emote Shortcut %d"), 17),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut18", SDLK_e, strprintf(_("Emote Shortcut %d"), 18),
+ {"keyEmoteShortcut18", SDLK_e, strprintf(N_("Emote Shortcut %d"), 18),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut19", SDLK_r, strprintf(_("Emote Shortcut %d"), 19),
+ {"keyEmoteShortcut19", SDLK_r, strprintf(N_("Emote Shortcut %d"), 19),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut20", SDLK_t, strprintf(_("Emote Shortcut %d"), 20),
+ {"keyEmoteShortcut20", SDLK_t, strprintf(N_("Emote Shortcut %d"), 20),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut21", SDLK_y, strprintf(_("Emote Shortcut %d"), 21),
+ {"keyEmoteShortcut21", SDLK_y, strprintf(N_("Emote Shortcut %d"), 21),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut22", SDLK_u, strprintf(_("Emote Shortcut %d"), 22),
+ {"keyEmoteShortcut22", SDLK_u, strprintf(N_("Emote Shortcut %d"), 22),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut23", SDLK_i, strprintf(_("Emote Shortcut %d"), 23),
+ {"keyEmoteShortcut23", SDLK_i, strprintf(N_("Emote Shortcut %d"), 23),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut24", SDLK_o, strprintf(_("Emote Shortcut %d"), 24),
+ {"keyEmoteShortcut24", SDLK_o, strprintf(N_("Emote Shortcut %d"), 24),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut25", SDLK_p, strprintf(_("Emote Shortcut %d"), 25),
+ {"keyEmoteShortcut25", SDLK_p, strprintf(N_("Emote Shortcut %d"), 25),
KeyboardConfig::GRP_EMOTION},
{"keyEmoteShortcut26", SDLK_LEFTBRACKET,
- strprintf(_("Emote Shortcut %d"), 26),
+ strprintf(N_("Emote Shortcut %d"), 26),
KeyboardConfig::GRP_EMOTION},
{"keyEmoteShortcut27", SDLK_RIGHTBRACKET,
- strprintf(_("Emote Shortcut %d"), 27),
+ strprintf(N_("Emote Shortcut %d"), 27),
KeyboardConfig::GRP_EMOTION},
{"keyEmoteShortcut28", SDLK_BACKSLASH,
- strprintf(_("Emote Shortcut %d"), 28),
+ strprintf(N_("Emote Shortcut %d"), 28),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut29", SDLK_a, strprintf(_("Emote Shortcut %d"), 29),
+ {"keyEmoteShortcut29", SDLK_a, strprintf(N_("Emote Shortcut %d"), 29),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut30", SDLK_s, strprintf(_("Emote Shortcut %d"), 30),
+ {"keyEmoteShortcut30", SDLK_s, strprintf(N_("Emote Shortcut %d"), 30),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut31", SDLK_d, strprintf(_("Emote Shortcut %d"), 31),
+ {"keyEmoteShortcut31", SDLK_d, strprintf(N_("Emote Shortcut %d"), 31),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut32", SDLK_f, strprintf(_("Emote Shortcut %d"), 32),
+ {"keyEmoteShortcut32", SDLK_f, strprintf(N_("Emote Shortcut %d"), 32),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut33", SDLK_g, strprintf(_("Emote Shortcut %d"), 33),
+ {"keyEmoteShortcut33", SDLK_g, strprintf(N_("Emote Shortcut %d"), 33),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut34", SDLK_h, strprintf(_("Emote Shortcut %d"), 34),
+ {"keyEmoteShortcut34", SDLK_h, strprintf(N_("Emote Shortcut %d"), 34),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut35", SDLK_j, strprintf(_("Emote Shortcut %d"), 35),
+ {"keyEmoteShortcut35", SDLK_j, strprintf(N_("Emote Shortcut %d"), 35),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut36", SDLK_k, strprintf(_("Emote Shortcut %d"), 36),
+ {"keyEmoteShortcut36", SDLK_k, strprintf(N_("Emote Shortcut %d"), 36),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut37", SDLK_l, strprintf(_("Emote Shortcut %d"), 37),
+ {"keyEmoteShortcut37", SDLK_l, strprintf(N_("Emote Shortcut %d"), 37),
KeyboardConfig::GRP_EMOTION},
{"keyEmoteShortcut38", SDLK_SEMICOLON,
- strprintf(_("Emote Shortcut %d"), 38),
+ strprintf(N_("Emote Shortcut %d"), 38),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut39", SDLK_QUOTE, strprintf(_("Emote Shortcut %d"), 39),
+ {"keyEmoteShortcut39", SDLK_QUOTE, strprintf(N_("Emote Shortcut %d"), 39),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut40", SDLK_z, strprintf(_("Emote Shortcut %d"), 40),
+ {"keyEmoteShortcut40", SDLK_z, strprintf(N_("Emote Shortcut %d"), 40),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut41", SDLK_x, strprintf(_("Emote Shortcut %d"), 41),
+ {"keyEmoteShortcut41", SDLK_x, strprintf(N_("Emote Shortcut %d"), 41),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut42", SDLK_c, strprintf(_("Emote Shortcut %d"), 42),
+ {"keyEmoteShortcut42", SDLK_c, strprintf(N_("Emote Shortcut %d"), 42),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut43", SDLK_v, strprintf(_("Emote Shortcut %d"), 43),
+ {"keyEmoteShortcut43", SDLK_v, strprintf(N_("Emote Shortcut %d"), 43),
KeyboardConfig::GRP_EMOTION},
- {"keyEmoteShortcut44", SDLK_b, strprintf(_("Emote Shortcut %d"), 44),
+ {"keyEmoteShortcut44", SDLK_b, strprintf(N_("Emote Shortcut %d"), 44),
KeyboardConfig::GRP_EMOTION},
- {"keyWearOutfit", SDLK_RCTRL, _("Wear Outfit"),
+ {"keyWearOutfit", SDLK_RCTRL, N_("Wear Outfit"),
KeyboardConfig::GRP_DEFAULT},
- {"keyCopyOutfit", SDLK_RALT, _("Copy Outfit"),
+ {"keyCopyOutfit", SDLK_RALT, N_("Copy Outfit"),
KeyboardConfig::GRP_DEFAULT},
- {"keyCopyEquipedOutfit", SDLK_RIGHTBRACKET, _("Copy Equiped to Outfit"),
+ {"keyCopyEquipedOutfit", SDLK_RIGHTBRACKET, N_("Copy Equiped to Outfit"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChat", SDLK_RETURN, _("Toggle Chat"),
+ {"keyChat", SDLK_RETURN, N_("Toggle Chat"),
KeyboardConfig::GRP_DEFAULT | KeyboardConfig::GRP_CHAT},
- {"keyChatScrollUp", SDLK_PAGEUP, _("Scroll Chat Up"),
+ {"keyChatScrollUp", SDLK_PAGEUP, N_("Scroll Chat Up"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChatScrollDown", SDLK_PAGEDOWN, _("Scroll Chat Down"),
+ {"keyChatScrollDown", SDLK_PAGEDOWN, N_("Scroll Chat Down"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChatPrevTab", SDLK_KP7, _("Previous Chat Tab"),
+ {"keyChatPrevTab", SDLK_KP7, N_("Previous Chat Tab"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChatNextTab", SDLK_KP9, _("Next Chat Tab"),
+ {"keyChatNextTab", SDLK_KP9, N_("Next Chat Tab"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChatPrevHistory", SDLK_KP7, _("Previous chat tab line"),
+ {"keyChatPrevHistory", SDLK_KP7, N_("Previous chat tab line"),
KeyboardConfig::GRP_CHAT},
- {"keyChatNextHistory", SDLK_KP9, _("Next chat tab line"),
+ {"keyChatNextHistory", SDLK_KP9, N_("Next chat tab line"),
KeyboardConfig::GRP_CHAT},
- {"keyAutoCompleteChat", SDLK_TAB, _("Chat Auto Complete"),
+ {"keyAutoCompleteChat", SDLK_TAB, N_("Chat Auto Complete"),
KeyboardConfig::GRP_CHAT},
- {"keyDeActivateChat", SDLK_ESCAPE, _("Deactivate Chat Input"),
+ {"keyDeActivateChat", SDLK_ESCAPE, N_("Deactivate Chat Input"),
KeyboardConfig::GRP_CHAT},
- {"keyOK", SDLK_SPACE, _("Select OK"), KeyboardConfig::GRP_DEFAULT},
- {"keyQuit", SDLK_ESCAPE, _("Quit"), KeyboardConfig::GRP_DEFAULT},
- {"keyIgnoreInput1", SDLK_LSUPER, _("Ignore input 1"),
+ {"keyOK", SDLK_SPACE, N_("Select OK"), KeyboardConfig::GRP_DEFAULT},
+ {"keyQuit", SDLK_ESCAPE, N_("Quit"), KeyboardConfig::GRP_DEFAULT},
+ {"keyIgnoreInput1", SDLK_LSUPER, N_("Ignore input 1"),
KeyboardConfig::GRP_DEFAULT},
- {"keyIgnoreInput2", SDLK_RSUPER, _("Ignore input 2"),
+ {"keyIgnoreInput2", SDLK_RSUPER, N_("Ignore input 2"),
KeyboardConfig::GRP_DEFAULT},
- {"keyDirectUp", SDLK_l, _("Direct Up"), KeyboardConfig::GRP_DEFAULT},
- {"keyDirectDown", SDLK_SEMICOLON, _("Direct Down"),
+ {"keyDirectUp", SDLK_l, N_("Direct Up"), KeyboardConfig::GRP_DEFAULT},
+ {"keyDirectDown", SDLK_SEMICOLON, N_("Direct Down"),
KeyboardConfig::GRP_DEFAULT},
- {"keyDirectLeft", SDLK_k, _("Direct Left"), KeyboardConfig::GRP_DEFAULT},
- {"keyDirectRight", SDLK_QUOTE, _("Direct Right"),
+ {"keyDirectLeft", SDLK_k, N_("Direct Left"), KeyboardConfig::GRP_DEFAULT},
+ {"keyDirectRight", SDLK_QUOTE, N_("Direct Right"),
KeyboardConfig::GRP_DEFAULT},
- {"keyCrazyMoves", SDLK_SLASH, _("Crazy moves"),
+ {"keyCrazyMoves", SDLK_SLASH, N_("Crazy moves"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChangeCrazyMoveType", SDLK_BACKSLASH, _("Change Crazy Move mode"),
+ {"keyChangeCrazyMoveType", SDLK_BACKSLASH, N_("Change Crazy Move mode"),
KeyboardConfig::GRP_DEFAULT},
- {"keyQuickDrop", SDLK_y, _("Quick Drop N Items from 0 slot"),
+ {"keyQuickDrop", SDLK_y, N_("Quick Drop N Items from 0 slot"),
KeyboardConfig::GRP_DEFAULT},
- {"keyQuickDropN", SDLK_u, _("Quick Drop N Items"),
+ {"keyQuickDropN", SDLK_u, N_("Quick Drop N Items"),
KeyboardConfig::GRP_DEFAULT},
- {"keySwitchQuickDrop", SDLK_i, _("Switch Quick Drop Counter"),
+ {"keySwitchQuickDrop", SDLK_i, N_("Switch Quick Drop Counter"),
KeyboardConfig::GRP_DEFAULT},
- {"keyMagicInma1", SDLK_c, _("Quick heal target or self"),
+ {"keyMagicInma1", SDLK_c, N_("Quick heal target or self"),
KeyboardConfig::GRP_DEFAULT},
- {"keyMagicItenplz", SDLK_m, _("Use #itenplz spell"),
+ {"keyMagicItenplz", SDLK_m, N_("Use #itenplz spell"),
KeyboardConfig::GRP_DEFAULT},
- {"keyMagicAttack", SDLK_b, _("Use magic attack"),
+ {"keyMagicAttack", SDLK_b, N_("Use magic attack"),
KeyboardConfig::GRP_DEFAULT},
- {"keySwitchMagicAttack", SDLK_COMMA, _("Switch magic attack"),
+ {"keySwitchMagicAttack", SDLK_COMMA, N_("Switch magic attack"),
KeyboardConfig::GRP_DEFAULT},
- {"keyInvertDirection", SDLK_KP0, _("Change move type"),
+ {"keyInvertDirection", SDLK_KP0, N_("Change move type"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChangeAttackWeaponType", SDLK_g, _("Change Attack Weapon Type"),
+ {"keyChangeAttackWeaponType", SDLK_g, N_("Change Attack Weapon Type"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChangeAttackType", SDLK_END, _("Change Attack Type"),
+ {"keyChangeAttackType", SDLK_END, N_("Change Attack Type"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChangeFollowMode", SDLK_KP1, _("Change Follow mode"),
+ {"keyChangeFollowMode", SDLK_KP1, N_("Change Follow mode"),
KeyboardConfig::GRP_DEFAULT},
- {"keyChangeImitationMode", SDLK_KP4, _("Change Imitation mode"),
+ {"keyChangeImitationMode", SDLK_KP4, N_("Change Imitation mode"),
KeyboardConfig::GRP_DEFAULT},
{"keyDisableGameModifiers", SDLK_KP8,
_("Disbale / Enable Game modifier keys"), KeyboardConfig::GRP_DEFAULT},
- {"keyChangeAudio", SDLK_KP3, _("On / Off audio"),
+ {"keyChangeAudio", SDLK_KP3, N_("On / Off audio"),
KeyboardConfig::GRP_DEFAULT},
- {"keyAway", SDLK_KP2, _("Enable / Disable away mode"),
+ {"keyAway", SDLK_KP2, N_("Enable / Disable away mode"),
KeyboardConfig::GRP_DEFAULT},
- {"keyRightClick", SDLK_TAB, _("Emulate right click from keyboard"),
+ {"keyRightClick", SDLK_TAB, N_("Emulate right click from keyboard"),
KeyboardConfig::GRP_DEFAULT},
- {"keyCameraMode", SDLK_KP_PLUS, _("Toggle camera mode"),
+ {"keyCameraMode", SDLK_KP_PLUS, N_("Toggle camera mode"),
KeyboardConfig::GRP_DEFAULT}
};
@@ -329,10 +329,21 @@ void KeyboardConfig::init()
{
mKey[i].configField = keyData[i].configField;
mKey[i].defaultValue = keyData[i].defaultValue;
- mKey[i].caption = keyData[i].caption;
+ mKey[i].caption = gettext(keyData[i].caption.c_str());
mKey[i].value = KEY_NO_VALUE;
mKey[i].grp = keyData[i].grp;
}
+ for (int i = KEY_EMOTE_1; i <= KEY_EMOTE_44; i ++)
+ {
+ mKey[i].caption = strprintf(
+ _("Emote Shortcut %d"), i - KEY_EMOTE_1 + 1);
+ }
+ for (int i = KEY_SHORTCUT_1; i <= KEY_SHORTCUT_20; i ++)
+ {
+ mKey[i].caption = strprintf(
+ _("Item Shortcut %d"), i - KEY_SHORTCUT_1 + 1);
+ }
+
mNewKeyIndex = KEY_NO_VALUE;
mEnabled = true;