Mercurial > wow > cyborg-mmo7
comparison Localisation.lua @ 29:e8a004a4177b
Merged the ProfileKeyBindings and WowCommands variables (they were pointing at the same value).
author | madcatzinc@35b17cf1-18cd-47ff-9ca3-31d6b526ef09 |
---|---|
date | Thu, 25 Apr 2013 01:31:06 +0000 |
parents | da9c4373da48 |
children | c9706291c141 |
comparison
equal
deleted
inserted
replaced
28:d18ce89b6d09 | 29:e8a004a4177b |
---|---|
54 "ALT-CTRL-F", | 54 "ALT-CTRL-F", |
55 "ALT-CTRL-'", | 55 "ALT-CTRL-'", |
56 }, | 56 }, |
57 } | 57 } |
58 | 58 |
59 local DefaultWowCommands = { | 59 local DefaultKeyBindings = { |
60 ["enUS"] = { | 60 ["enUS"] = { |
61 "ALT-CTRL-NUMPAD1", | 61 "ALT-CTRL-NUMPAD1", |
62 "ALT-CTRL-NUMPAD2", | 62 "ALT-CTRL-NUMPAD2", |
63 "ALT-CTRL-NUMPAD3", | 63 "ALT-CTRL-NUMPAD3", |
64 "ALT-CTRL-NUMPAD4", | 64 "ALT-CTRL-NUMPAD4", |
438 local locale = GetLocale() | 438 local locale = GetLocale() |
439 -- fall back to english for missing translations | 439 -- fall back to english for missing translations |
440 local default_locale = 'enUS' | 440 local default_locale = 'enUS' |
441 | 441 |
442 CyborgMMO_Mode = Modes[locale] or Modes[default_locale] | 442 CyborgMMO_Mode = Modes[locale] or Modes[default_locale] |
443 CyborgMMO_DefaultWowCommands = DefaultWowCommands[locale] or DefaultWowCommands[default_locale] | |
444 CyborgMMO_StringTable = StringTables[locale] or StringTables[default_locale] | 443 CyborgMMO_StringTable = StringTables[locale] or StringTables[default_locale] |
444 | |
445 -- key bindings are saved and will be replaced by SavedVariables | |
446 CyborgMMO_ProfileKeyBindings = DefaultKeyBindings[locale] or DefaultKeyBindings[default_locale] | |
445 | 447 |
446 if locale ~= default_locale then | 448 if locale ~= default_locale then |
447 setmetatable(CyborgMMO_StringTable, {__index=StringTables[default_locale]}) | 449 setmetatable(CyborgMMO_StringTable, {__index=StringTables[default_locale]}) |
448 end | 450 end |
449 | 451 |