localization added
Alex Shubert [03-22-12 - 12:16]
diff --git a/AutoTurnIn.lua b/AutoTurnIn.lua
index 719c925..657f85c 100644
--- a/AutoTurnIn.lua
+++ b/AutoTurnIn.lua
@@ -12,9 +12,14 @@ function AutoTurnIn:OnEnable()
_G.AutoTurnInDB = {version = vers}
self:Print(L["reset"])
end
+
if not AutoTurnInCharacterDB then
_G.AutoTurnInCharacterDB = CopyTable(AutoTurnIn.defaults)
- end
+ end
+ if (AutoTurnInCharacterDB.togglekey == nil) then
+ AutoTurnInCharacterDB.togglekey = 1
+ end
+
self:RegisterGossipEvents()
end
diff --git a/AutoTurnIn.toc b/AutoTurnIn.toc
index 1cfd0e8..1aa0707 100644
--- a/AutoTurnIn.toc
+++ b/AutoTurnIn.toc
@@ -1,6 +1,6 @@
## Interface: 40300
## Title: AutoTurnIn
-## Version: 2.2
+## Version: 2.1
## Author: Lur
## Notes: Auto accept and complete daily or any quests
## Notes-ruRU: Автоматически принимает и сдает ежедневные либо все задания
diff --git a/localization_DE.lua b/localization_DE.lua
index ec21c9c..f8cd1fb 100644
--- a/localization_DE.lua
+++ b/localization_DE.lua
@@ -26,7 +26,8 @@ privateTable.L = setmetatable({
["DarkmoonTeleLabel"]="Dunkelmond-Jahrmarkt: Zurück zur Kanone!",
["Teleportologe Fosselbab"]="Teleportologist Fozlebub",
- ["rewardtext"]="Show quest reward text"},
+ ["rewardtext"]="Show quest reward text",
+ ["togglekey"]="aktivieren/deaktivieren Taste"},
{__index = function(table, index) return index end})
privateTable.L.quests = {
diff --git a/localization_EN.lua b/localization_EN.lua
index 24843bd..2413c42 100644
--- a/localization_EN.lua
+++ b/localization_EN.lua
@@ -24,7 +24,8 @@ privateTable.L = setmetatable({
["DarkmoonTeleLabel"]="Darkmoon: teleport to the cannon",
["DarkmoonFaireTeleport"]="Teleportologist Fozlebub",
- ["rewardtext"]="print quest reward text"},
+ ["rewardtext"]="print quest reward text",
+ ["togglekey"]="Enable/disable key"},
{__index = function(table, index) return index end})
privateTable.L.quests = {
diff --git a/localization_RU.lua b/localization_RU.lua
index 1d22176..748816a 100644
--- a/localization_RU.lua
+++ b/localization_RU.lua
@@ -27,7 +27,8 @@ privateTable.L = setmetatable({
["DarkmoonTeleLabel"]="Ярмарка Новолуния: телепортация к пушке", -- darkmoon
["DarkmoonFaireTeleport"]="Телепортолог Фоцлебульб",
- ["rewardtext"]="Показывать финальный текст задания"},
+ ["rewardtext"]="Показывать финальный текст задания",
+ ["togglekey"]="Клавиша разового включени/отключения"},
{__index = function(table, index) return index end})
privateTable.L.quests = {
diff --git a/options.lua b/options.lua
index 9b3aa26..ea0c8c0 100644
--- a/options.lua
+++ b/options.lua
@@ -99,7 +99,7 @@ end)
-- Auto toggle key
local ToggleKeyLabel = OptionsPanel:CreateFontString(nil, "ARTWORK", "GameFontNormal")
-ToggleKeyLabel:SetText("Toggle AutoTurnIn key")
+ToggleKeyLabel:SetText(L["togglekey"])
local ToggleKeyConst = {NONE_KEY, ALT_KEY, CTRL_KEY, SHIFT_KEY}
local ToggleKeyDropDown = CreateFrame("Frame", O.."ToggleKeyDropDown", OptionsPanel, "UIDropDownMenuTemplate")
UIDropDownMenu_Initialize(ToggleKeyDropDown, function (self, level)