core: add translations to all texts

This commit is contained in:
shikulja
2024-01-25 23:20:32 +01:00
committed by shagu
parent a07351c4ea
commit fd56ed9192
40 changed files with 340 additions and 112 deletions
+3
View File
@@ -2,6 +2,7 @@
## Title: |cffffcc00Shagu|cffffffffTweaks |cffff5555[BETA]
## Author: Shagu
## Notes: A collection of tweaks and enhancements to the Default UI
## Notes-ruRU: Коллекция настроек и улучшений для стандартного пользовательского интерфейса.
## Version: GIT
## SavedVariablesPerCharacter: ShaguTweaks_config, ShaguTweaks_cache
@@ -13,6 +14,8 @@ locales\locales_frFR.lua
locales\locales_koKR.lua
locales\locales_ruRU.lua
locales\locales_zhCN.lua
locales\translations_enUS.lua
locales\translations_ruRU.lua
# basic
main.lua
+3
View File
@@ -2,6 +2,7 @@
## Title: |cffffcc00Shagu|cffffffffTweaks
## Author: Shagu
## Notes: A collection of tweaks and enhancements to the Default UI
## Notes-ruRU: Коллекция настроек и улучшений для стандартного пользовательского интерфейса.
## Version: GIT
## SavedVariablesPerCharacter: ShaguTweaks_config, ShaguTweaks_cache
@@ -13,6 +14,8 @@ locales\locales_frFR.lua
locales\locales_koKR.lua
locales\locales_ruRU.lua
locales\locales_zhCN.lua
locales\translations_enUS.lua
locales\translations_ruRU.lua
# basic
main.lua
+4 -3
View File
@@ -1,4 +1,5 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local GetExpansion = ShaguTweaks.GetExpansion
local mod = math.mod or mod
@@ -47,7 +48,7 @@ settings.title.tex:SetTexture("Interface\\DialogFrame\\UI-DialogBox-Header")
settings.title.tex:SetAllPoints()
settings.title.text = settings.title:CreateFontString(nil, "HIGH", "GameFontNormal")
settings.title.text:SetText("Advanced Options")
settings.title.text:SetText(T["Advanced Options"])
settings.title.text:SetPoint("TOP", 0, -14)
settings.cancel = CreateFrame("Button", "AdvancedSettingsGUICancel", settings, "GameMenuButtonTemplate")
@@ -102,7 +103,7 @@ settings.load = function(self)
local gui = {}
for title, module in pairs(ShaguTweaks.mods) do
if module.expansions[expansion] then
local category = module.category or "General"
local category = module.category or T["General"]
gui[category] = gui[category] or {}
gui[category][title] = module
end
@@ -228,7 +229,7 @@ end
local advanced = CreateFrame("Button", "GameMenuButtonAdvancedOptions", GameMenuFrame, "GameMenuButtonTemplate")
advanced:SetPoint("TOP", GameMenuButtonUIOptions, "BOTTOM", 0, -1)
advanced:SetText("Advanced Options|cffffff00*")
advanced:SetText(T["Advanced Options"] .. "|cffffff00*")
advanced:SetScript("OnClick", function()
HideUIPanel(GameMenuFrame)
settings:Show()
+88
View File
@@ -0,0 +1,88 @@
ShaguTweaks_translation = ShaguTweaks_translation or {}
ShaguTweaks_translation["enUS"] = {
["General"] = nil,
["Tooltip & Items"] = nil,
["World & MiniMap"] = nil,
["Social & Chat"] = nil,
["Unit Frames"] = nil,
["Graphics"] = nil,
["Action Bar"] = nil,
["Advanced Options"] = nil,
["Auto Dismount"] = nil,
["Automatically dismounts whenever a spell is casted."] = nil,
["Auto Stance"] = nil,
["Automatically switch to the required warrior or druid stance on spell cast."] = nil,
["Blue Shaman Class Colors"] = nil,
["Changes the class color code of shamans to blue, as known from TBC+."] = nil,
["Chat Hyperlinks"] = nil,
["Copy website URLs from the chat, transforms CLINKs into real items and handles quest and player links."] = nil,
["Chat Tweaks"] = nil,
["Allows to scroll using the mouse wheel, enables sticky chat channels and repeats message on arrow up."] = nil,
["Cooldown Numbers"] = nil,
["Display the remaining duration as text on every cooldown."] = nil,
["Darkened UI"] = nil,
["Turns the entire interface into darker colors."] = nil,
["Equip Compare"] = nil,
["Shows currently equipped items on tooltips while the shift key is pressed."] = nil,
["Unit Frame Health Colors"] = nil,
["Change health text color based on its value."] = nil,
["Real Health Numbers"] = nil,
["Estimates health numbers, and shows numbers on player, pet and target unit frames."] = nil,
["Hide Errors"] = nil,
["Hides and ignores all Lua errors produced by broken addons."] = nil,
["Hide Gryphons"] = nil,
["Hides the gryphons left and right of the action bar."] = nil,
["Item Rarity Borders"] = nil,
["Show item rarity as the border color on bags, bank, character and inspect frames."] = nil,
["MiniMap Clock"] = nil,
["Adds a small 24h clock to the mini map."] = nil,
["Clock"] = nil,
["Localtime"] = nil,
["Servertime"] = nil,
["MiniMap Square"] = nil,
["Draw the mini map in a squared shape instead of a round one."] = nil,
["MiniMap Tweaks"] = nil,
["Hides unnecessary mini map buttons and allows to zoom using the mouse wheel."] = nil,
["Movable Unit Frames"] = nil,
["Player and Target unit frames can be moved while <Shift> and <Ctrl> are pressed together."] = nil,
["Nameplate Castbar"] = nil,
["Adds a castbar to the nameplate based on combat log estimations."] = nil,
["Nameplate Class Colors"] = nil,
["Changes the nameplate health bar color to the class color."] = nil,
["Nameplate Scale"] = nil,
["Makes all nameplates honor the UI-Scale setting."] = nil,
["Reduced Actionbar Size"] = nil,
["Reduces the actionbar size by removing several items such as the bag panel and microbar"] = nil,
["Sell Junk"] = nil,
["Adds a “Sell Junk” button to every merchant window, that sells all grey items."] = nil,
["Your vendor trash has been sold and you earned "] = nil,
["Sell Grey Items"] = nil,
["Social Colors"] = nil,
["Show class colors in Who, Guild, Friends and Chat."] = nil,
["Enemy Castbars"] = nil,
["Shows an enemy castbar on target unit frame."] = nil,
["Debuff Timer"] = nil,
["Show debuff durations on the target unit frame."] = nil,
["Tooltip Details"] = nil,
["Display health, class color, guild name, guild rank and current target on unit tooltips."] = nil,
["Turtle WoW Compatibility"] = nil,
["Adds compatibility to Turtle WoW's custom changes."] = nil,
["Unit Frame Big Health"] = nil,
["Increases the healthbar of the player and target unitframe."] = nil,
["Unit Frame Class Colors"] = nil,
["Adds class colors to the player, target and party unit frames."] = nil,
["Unit Frame Class Portraits"] = nil,
["Replace unitframe portraits with class icons."] = nil,
["Vendor Values"] = nil,
["Shows the vendor sell values on all item tooltips."] = nil,
["WorldMap Class Colors"] = nil,
["Show class colored circles on world and battlefield map."] = nil,
["WorldMap Coordinates"] = nil,
["Adds coordinates to the bottom of the World Map."] = nil,
['Player:'] = nil,
['Cursor:'] = nil,
['N/A'] = nil,
["WorldMap Window"] = nil,
["Turns the world map into a movable window. The map can be scaled with <Ctrl> + Mousewheel."] = nil,
}
+89
View File
@@ -0,0 +1,89 @@
ShaguTweaks_translation = ShaguTweaks_translation or {}
ShaguTweaks_translation["ruRU"] = {
["General"] = "Общие",
["Tooltip & Items"] = "Подсказки и предметы",
["World & MiniMap"] = "Карта мира и мини-карта",
["Social & Chat"] = "Общение и чат",
["Unit Frames"] = "Окна юнитов",
["Graphics"] = "Графика",
["Action Bar"] = "Панель действий",
["Advanced Options"] = "Расширенные настройки",
["Auto Dismount"] = "Авто-спешивание",
["Automatically dismounts whenever a spell is casted."] = "Автоматическое спешивание при каждом произнесении заклинания.",
["Auto Stance"] = "Авто-стойка",
["Automatically switch to the required warrior or druid stance on spell cast."] = "Автоматически переключаться на нужную стойку воина или друида при произнесении заклинания.",
["Blue Shaman Class Colors"] = "Синий класс шамана",
["Changes the class color code of shamans to blue, as known from TBC+."] = "Изменяет цветовой код класса шаманов на синий, как известно из TBC+.",
["Chat Hyperlinks"] = "Гиперссылки чата",
["Copy website URLs from the chat, transforms CLINKs into real items and handles quest and player links."] = "Копирование URL-адреса веб-сайтов из чата, преобразование CLINKов в реальные предметы и обрабатывание ссылок на квесты и игроков.",
["Chat Tweaks"] = "Улучшения чата",
["Allows to scroll using the mouse wheel, enables sticky chat channels and repeats message on arrow up."] = "Позволяет прокручивать колесо мыши, включает закрепленные каналы чата и повторяет сообщение при нажатии стрелки вверх.",
["Cooldown Numbers"] = "Продолжительность перезарядки",
["Display the remaining duration as text on every cooldown."] = "Отображать оставшуюся продолжительность в виде текста при перезарядке.",
["Darkened UI"] = "Затемненный интерфейс",
["Turns the entire interface into darker colors."] = "Меняет весь интерфейс в более темные цвета.",
["Equip Compare"] = "Сравнение экипировки",
["Shows currently equipped items on tooltips while the shift key is pressed."] = "Показывает экипированные в данный момент предметы во всплывающих подсказках, пока нажата клавиша Shift.",
["Unit Frame Health Colors"] = "Цветное здоровье",
["Change health text color based on its value."] = "Изменить цвет текста о состоянии здоровья в зависимости от его значения.",
["Real Health Numbers"] = "Реальные цифры здоровья",
["Estimates health numbers, and shows numbers on player, pet and target unit frames."] = "Оценивает количество здоровья и показывает цифры на окнах игрока, питомца и цели.",
["Hide Errors"] = "Скрыть ошибки",
["Hides and ignores all Lua errors produced by broken addons."] = "Скрывает и игнорирует все ошибки Lua, вызванные неработающими аддонами.",
["Hide Gryphons"] = "Спрятать грифонов",
["Hides the gryphons left and right of the action bar."] = "Скрывает грифонов слева и справа от панели действий.",
["Item Rarity Borders"] = "Границы редкости предметов",
["Show item rarity as the border color on bags, bank, character and inspect frames."] = "Показать редкость предмета в качестве цвета рамки на сумках, банке, окне персонажа и осмотра.",
["MiniMap Clock"] = "Часы на мини-карте",
["Adds a small 24h clock to the mini map."] = "Добавляет небольшие 24-часовые часы на мини-карту.",
["Clock"] = "Часы",
["Localtime"] = "Местное время",
["Servertime"] = "Серверное время",
["MiniMap Square"] = "Квадратная мини-карта",
["Draw the mini map in a squared shape instead of a round one."] = "Мини-карта квадратной формы вместо круглой.",
["MiniMap Tweaks"] = "Улучшения мини-карты",
["Hides unnecessary mini map buttons and allows to zoom using the mouse wheel."] = "Скрывает ненужные кнопки мини-карты и позволяет масштабировать ее с помощью колеса мыши.",
["Movable Unit Frames"] = "Передвижные окна",
["Player and Target unit frames can be moved while <Shift> and <Ctrl> are pressed together."] = "Окна игрока и цели можно перемещать, удерживая клавиши <Shift> и <Ctrl> вместе.",
["Nameplate Castbar"] = "Панель применения индикатора здоровья",
["Adds a castbar to the nameplate based on combat log estimations."] = "Добавляет панель применения к индикатору здоровья на основе оценок журнала боя.",
["Nameplate Class Colors"] = "Классы индикатора здоровья",
["Changes the nameplate health bar color to the class color."] = "Изменяет цвет индикатора здоровья на цвет класса.",
["Nameplate Scale"] = "Масштаб индикаторов здоровья",
["Makes all nameplates honor the UI-Scale setting."] = "Все индикаторы здоровья будут соответствовать настройке UI-Scale.",
["Reduced Actionbar Size"] = "Уменьшить панель действий",
["Reduces the actionbar size by removing several items such as the bag panel and microbar"] = "Уменьшает размер панели действий за счет удаления нескольких элементов, таких как панель сумки и микропанель.",
["Sell Junk"] = "Продать серые предметы",
["Adds a “Sell Junk” button to every merchant window, that sells all grey items."] = "Добавляет кнопку «Продать серые предметы» в каждое окно торговца, в котором продаются все серые предметы.",
["Your vendor trash has been sold and you earned "] = "Ваш хлам продан, и вы заработали ",
["Sell Grey Items"] = "Продать серые предметы",
["Social Colors"] = "Социальные цвета",
["Show class colors in Who, Guild, Friends and Chat."] = "Показать цвета классов в разделах «Кто», «Гильдия», «Друзья» и «Чат».",
["Enemy Castbars"] = "Панель применения противника",
["Shows an enemy castbar on target unit frame."] = "Показать панель применения противника в окне юнита цели.",
["Debuff Timer"] = "Таймер дебаффов",
["Show debuff durations on the target unit frame."] = "Показать продолжительность дебаффов в окне цели.",
["Tooltip Details"] = "Подробные подсказки",
["Display health, class color, guild name, guild rank and current target on unit tooltips."] = "Отображение здоровья, цвета класса, названия гильдии, ранга гильдии и текущей цели во всплывающих подсказках юнитов.",
["Turtle WoW Compatibility"] = "Совместимость с Turtle WoW",
["Adds compatibility to Turtle WoW's custom changes."] = "Добавляет совместимость с пользовательскими изменениями Turtle WoW.",
["Unit Frame Big Health"] = "Большое здоровье",
["Increases the healthbar of the player and target unitframe."] = "Увеличивает полосу здоровья игрока и цели.",
["Unit Frame Class Colors"] = "Цветные классы",
["Adds class colors to the player, target and party unit frames."] = "Добавить цвета классов к окнам игрока, цели и отряда группы.",
["Unit Frame Class Portraits"] = "Классовые портреты",
["Replace unitframe portraits with class icons."] = "Заменить портреты окон юнитов значками классов.",
["Vendor Values"] = "Стоимость продажи",
["Shows the vendor sell values on all item tooltips."] = "Показывает стоимость продажи продавцу во всплывающих подсказках ко всем предметам.",
["WorldMap Class Colors"] = "Классы на карте мира",
["Show class colored circles on world and battlefield map."] = "Показать цветные круги классов на карте мира и поле боя.",
["WorldMap Coordinates"] = "Координаты на карте мира",
["Adds coordinates to the bottom of the World Map."] = "Добавляет координаты внизу карты мира.",
['Player:'] = "Игрок:",
['Cursor:'] = "Курсор:",
['N/A'] = "Н/Д",
["WorldMap Window"] = "Окно карты мира",
["Turns the world map into a movable window. The map can be scaled with <Ctrl> + Mousewheel."] = "Превращает карту мира в подвижное окно. Карту можно масштабировать с помощью <Ctrl> + Колесо мыши.",
}
+15 -5
View File
@@ -16,11 +16,21 @@ seterrorhandler(error)
ShaguTweaks = CreateFrame("Frame")
ShaguTweaks.mods = {}
-- load translation tables
ShaguTweaks.L = (ShaguTweaks_locale[GetLocale()] or ShaguTweaks_locale["enUS"])
ShaguTweaks:RegisterEvent("VARIABLES_LOADED")
ShaguTweaks:SetScript("OnEvent", function()
-- load current expansion
-- load translation tables
ShaguTweaks.L = (ShaguTweaks_locale[GetLocale()] or ShaguTweaks_locale["enUS"])
ShaguTweaks.T = (ShaguTweaks_translation[GetLocale()] or ShaguTweaks_translation["enUS"])
-- use table index key as translation fallback
ShaguTweaks.T = setmetatable(ShaguTweaks.T, { __index = function(tab,key)
local value = tostring(key)
rawset(tab, key, value)
return value
end})
ShaguTweaks:RegisterEvent("VARIABLES_LOADED")
ShaguTweaks:SetScript("OnEvent", function()
-- load current expansion
local expansion = ShaguTweaks:GetExpansion()
-- initialize empty config
+3 -2
View File
@@ -1,8 +1,9 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Auto Dismount",
description = "Automatically dismounts whenever a spell is casted.",
title = T["Auto Dismount"],
description = T["Automatically dismounts whenever a spell is casted."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
enabled = nil,
})
+3 -2
View File
@@ -1,9 +1,10 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local strsplit = ShaguTweaks.strsplit
local module = ShaguTweaks:register({
title = "Auto Stance",
description = "Automatically switch to the required warrior or druid stance on spell cast.",
title = T["Auto Stance"],
description = T["Automatically switch to the required warrior or druid stance on spell cast."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
enabled = nil,
})
+4 -3
View File
@@ -1,11 +1,12 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local GetExpansion = ShaguTweaks.GetExpansion
local module = ShaguTweaks:register({
title = "Blue Shaman Class Colors",
description = "Changes the class color code of shamans to blue, as known from TBC+.",
title = T["Blue Shaman Class Colors"],
description = T["Changes the class color code of shamans to blue, as known from TBC+."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
category = "Social & Chat",
category = T["Social & Chat"],
enabled = true,
})
+4 -3
View File
@@ -1,4 +1,5 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local gfind = string.gmatch or string.gfind
local GetUnitData = ShaguTweaks.GetUnitData
local hooksecurefunc = ShaguTweaks.hooksecurefunc
@@ -8,10 +9,10 @@ local rgbhex = ShaguTweaks.rgbhex
local strsplit = ShaguTweaks.strsplit
local module = ShaguTweaks:register({
title = "Chat Hyperlinks",
description = "Copy website URLs from the chat, transforms CLINKs into real items and handles quest and player links.",
title = T["Chat Hyperlinks"],
description = T["Copy website URLs from the chat, transforms CLINKs into real items and handles quest and player links."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Social & Chat",
category = T["Social & Chat"],
enabled = true,
})
+4 -3
View File
@@ -1,11 +1,12 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local scrollspeed = 1
local module = ShaguTweaks:register({
title = "Chat Tweaks",
description = "Allows to scroll using the mouse wheel, enables sticky chat channels and repeats message on arrow up.",
title = T["Chat Tweaks"],
description = T["Allows to scroll using the mouse wheel, enables sticky chat channels and repeats message on arrow up."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Social & Chat",
category = T["Social & Chat"],
enabled = true,
})
+3 -2
View File
@@ -1,12 +1,13 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local hooksecurefunc = hooksecurefunc or ShaguTweaks.hooksecurefunc
local GetExpansion = ShaguTweaks.GetExpansion
local AddBorder = ShaguTweaks.AddBorder
local TimeConvert = ShaguTweaks.TimeConvert
local module = ShaguTweaks:register({
title = "Cooldown Numbers",
description = "Display the remaining duration as text on every cooldown.",
title = T["Cooldown Numbers"],
description = T["Display the remaining duration as text on every cooldown."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
enabled = nil,
color = { r = .3, g = .3, b = .3, a = .9}
+3 -2
View File
@@ -1,11 +1,12 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local HookAddonOrVariable = ShaguTweaks.HookAddonOrVariable
local GetExpansion = ShaguTweaks.GetExpansion
local AddBorder = ShaguTweaks.AddBorder
local module = ShaguTweaks:register({
title = "Darkened UI",
description = "Turns the entire interface into darker colors.",
title = T["Darkened UI"],
description = T["Turns the entire interface into darker colors."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
enabled = nil,
color = { r = .3, g = .3, b = .3, a = .9}
+4 -3
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Equip Compare",
description = "Shows currently equipped items on tooltips while the shift key is pressed.",
title = T["Equip Compare"],
description = T["Shows currently equipped items on tooltips while the shift key is pressed."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
category = "Tooltip & Items",
category = T["Tooltip & Items"],
enabled = true,
})
+4 -3
View File
@@ -1,13 +1,14 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local Abbreviate = ShaguTweaks.Abbreviate
local GetColorGradient = ShaguTweaks.GetColorGradient
local vanilla = ShaguTweaks.GetExpansion() == "vanilla" or nil
local module = ShaguTweaks:register({
title = "Unit Frame Health Colors",
description = "Change health text color based on its value.",
title = T["Unit Frame Health Colors"],
description = T["Change health text color based on its value."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Unit Frames",
category = T["Unit Frames"],
enabled = nil,
})
+4 -3
View File
@@ -1,13 +1,14 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local Abbreviate = ShaguTweaks.Abbreviate
local GetColorGradient = ShaguTweaks.GetColorGradient
local vanilla = ShaguTweaks.GetExpansion() == "vanilla" or nil
local module = ShaguTweaks:register({
title = "Real Health Numbers",
description = "Estimates health numbers, and shows numbers on player, pet and target unit frames.",
title = T["Real Health Numbers"],
description = T["Estimates health numbers, and shows numbers on player, pet and target unit frames."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Unit Frames",
category = T["Unit Frames"],
enabled = true,
})
+3 -2
View File
@@ -1,8 +1,9 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Hide Errors",
description = "Hides and ignores all Lua errors produced by broken addons.",
title = T["Hide Errors"],
description = T["Hides and ignores all Lua errors produced by broken addons."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
enabled = nil,
})
+3 -2
View File
@@ -1,8 +1,9 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Hide Gryphons",
description = "Hides the gryphons left and right of the action bar.",
title = T["Hide Gryphons"],
description = T["Hides the gryphons left and right of the action bar."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
enabled = nil,
})
+4 -3
View File
@@ -1,13 +1,14 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local GetExpansion = ShaguTweaks.GetExpansion
local AddBorder = ShaguTweaks.AddBorder
local HookAddonOrVariable = ShaguTweaks.HookAddonOrVariable
local module = ShaguTweaks:register({
title = "Item Rarity Borders",
description = "Show item rarity as the border color on bags, bank, character and inspect frames.",
title = T["Item Rarity Borders"],
description = T["Show item rarity as the border color on bags, bank, character and inspect frames."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Tooltip & Items",
category = T["Tooltip & Items"],
enabled = true,
})
+7 -6
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "MiniMap Clock",
description = "Adds a small 24h clock to the mini map.",
title = T["MiniMap Clock"],
description = T["Adds a small 24h clock to the mini map."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
category = "World & MiniMap",
category = T["World & MiniMap"],
enabled = nil,
})
@@ -43,9 +44,9 @@ module.enable = function(self)
GameTooltip:ClearLines()
GameTooltip:SetOwner(this, ANCHOR_BOTTOMLEFT)
GameTooltip:AddLine("Clock")
GameTooltip:AddDoubleLine("Localtime", time, 1,1,1,1,1,1)
GameTooltip:AddDoubleLine("Servertime", servertime, 1,1,1,1,1,1)
GameTooltip:AddLine(T["Clock"])
GameTooltip:AddDoubleLine(T["Localtime"], time, 1,1,1,1,1,1)
GameTooltip:AddDoubleLine(T["Servertime"], servertime, 1,1,1,1,1,1)
GameTooltip:Show()
end)
+4 -3
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "MiniMap Square",
description = "Draw the mini map in a squared shape instead of a round one.",
title = T["MiniMap Square"],
description = T["Draw the mini map in a squared shape instead of a round one."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "World & MiniMap",
category = T["World & MiniMap"],
enabled = nil,
})
+4 -3
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "MiniMap Tweaks",
description = "Hides unnecessary mini map buttons and allows to zoom using the mouse wheel.",
title = T["MiniMap Tweaks"],
description = T["Hides unnecessary mini map buttons and allows to zoom using the mouse wheel."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "World & MiniMap",
category = T["World & MiniMap"],
enabled = nil,
})
+4 -3
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Movable Unit Frames",
description = "Player and Target unit frames can be moved while <Shift> and <Ctrl> are pressed together.",
title = T["Movable Unit Frames"],
description = T["Player and Target unit frames can be moved while <Shift> and <Ctrl> are pressed together."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Unit Frames",
category = T["Unit Frames"],
enabled = nil,
})
+3 -2
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local UnitCastingInfo = ShaguTweaks.UnitCastingInfo
local UnitChannelInfo = ShaguTweaks.UnitChannelInfo
local module = ShaguTweaks:register({
title = "Nameplate Castbar",
description = "Adds a castbar to the nameplate based on combat log estimations.",
title = T["Nameplate Castbar"],
description = T["Adds a castbar to the nameplate based on combat log estimations."],
expansions = { ["vanilla"] = true, ["tbc"] = false },
enabled = nil,
})
+3 -2
View File
@@ -1,9 +1,10 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local GetUnitData = ShaguTweaks.GetUnitData
local module = ShaguTweaks:register({
title = "Nameplate Class Colors",
description = "Changes the nameplate health bar color to the class color.",
title = T["Nameplate Class Colors"],
description = T["Changes the nameplate health bar color to the class color."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
enabled = nil,
})
+3 -2
View File
@@ -1,8 +1,9 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Nameplate Scale",
description = "Makes all nameplates honor the UI-Scale setting.",
title = T["Nameplate Scale"],
description = T["Makes all nameplates honor the UI-Scale setting."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
enabled = true,
})
+3 -2
View File
@@ -1,8 +1,9 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Reduced Actionbar Size",
description = "Reduces the actionbar size by removing several items such as the bag panel and microbar",
title = T["Reduced Actionbar Size"],
description = T["Reduces the actionbar size by removing several items such as the bag panel and microbar"],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
categpry = nil,
enabled = nil,
+6 -5
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Sell Junk",
description = "Adds a “Sell Junk” button to every merchant window, that sells all grey items.",
title = T["Sell Junk"],
description = T["Adds a “Sell Junk” button to every merchant window, that sells all grey items."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Tooltip & Items",
category = T["Tooltip & Items"],
enabled = true,
})
@@ -61,7 +62,7 @@ module.enable = function(self)
autovendor:SetScript("OnHide", function()
if this.count > 0 then
DEFAULT_CHAT_FRAME:AddMessage("Your vendor trash has been sold and you earned " .. CreateGoldString(this.price))
DEFAULT_CHAT_FRAME:AddMessage(T["Your vendor trash has been sold and you earned "] .. CreateGoldString(this.price))
end
end)
@@ -131,7 +132,7 @@ module.enable = function(self)
autovendor.button:SetNormalTexture("Interface\\Icons\\Spell_Shadow_SacrificialShield")
autovendor.button:SetScript("OnEnter", function()
GameTooltip:SetOwner(this, "ANCHOR_RIGHT")
GameTooltip:SetText("Sell Grey Items")
GameTooltip:SetText(T["Sell Grey Items"])
GameTooltip:Show()
end)
+4 -4
View File
@@ -1,5 +1,5 @@
local _G = ShaguTweaks.GetGlobalEnv()
local L = ShaguTweaks.L
local T = ShaguTweaks.T
local gfind = string.gmatch or string.gfind
local GetUnitData = ShaguTweaks.GetUnitData
local hooksecurefunc = ShaguTweaks.hooksecurefunc
@@ -10,10 +10,10 @@ local strsplit = ShaguTweaks.strsplit
local friendinfo = gsub(gsub(FRIENDS_LEVEL_TEMPLATE,"%%s","%%s %%s"),"%%d","%%s")
local module = ShaguTweaks:register({
title = "Social Colors",
description = "Show class colors in Who, Guild, Friends and Chat.",
title = T["Social Colors"],
description = T["Show class colors in Who, Guild, Friends and Chat."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Social & Chat",
category = T["Social & Chat"],
enabled = nil,
})
+4 -3
View File
@@ -1,13 +1,14 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local GetExpansion = ShaguTweaks.GetExpansion
local UnitCastingInfo = ShaguTweaks.UnitCastingInfo
local UnitChannelInfo = ShaguTweaks.UnitChannelInfo
local module = ShaguTweaks:register({
title = "Enemy Castbars",
description = "Shows an enemy castbar on target unit frame.",
title = T["Enemy Castbars"],
description = T["Shows an enemy castbar on target unit frame."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
category = "Unit Frames",
category = T["Unit Frames"],
enabled = true,
})
+4 -3
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Debuff Timer",
description = "Show debuff durations on the target unit frame.",
title = T["Debuff Timer"],
description = T["Show debuff durations on the target unit frame."],
expansions = { ["vanilla"] = true, ["tbc"] = nil },
category = "Unit Frames",
category = T["Unit Frames"],
enabled = true,
})
+4 -3
View File
@@ -1,13 +1,14 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local round = ShaguTweaks.round
local rgbhex = ShaguTweaks.rgbhex
local Abbreviate = ShaguTweaks.Abbreviate
local module = ShaguTweaks:register({
title = "Tooltip Details",
description = "Display health, class color, guild name, guild rank and current target on unit tooltips.",
title = T["Tooltip Details"],
description = T["Display health, class color, guild name, guild rank and current target on unit tooltips."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Tooltip & Items",
category = T["Tooltip & Items"],
enabled = nil,
})
+7 -5
View File
@@ -8,18 +8,20 @@
-- Skip module initialization on every other client than TurtleWoW.
if not TargetHPText or not TargetHPPercText then return end
local T = ShaguTweaks.T
local selldata
local module = ShaguTweaks:register({
title = "Turtle WoW Compatibility",
description = "Adds compatibility to Turtle WoW's custom changes",
title = T["Turtle WoW Compatibility"],
description = T["Adds compatibility to Turtle WoW's custom changes."],
expansions = { ["vanilla"] = true, ["tbc"] = false },
category = "General",
category = T["General"],
enabled = true,
})
module.enable = function(self)
-- hide turtle-wow's target status texts
if ShaguTweaks_config["Real Health Numbers"] == 1 then
if ShaguTweaks_config(T["Real Health Numbers"]) == 1 then
TargetHPText:Hide()
TargetHPText.Show = function() return end
@@ -34,7 +36,7 @@ module.enable = function(self)
HookWorldMapFrame_Maximize()
-- re-apply worldmap window
if ShaguTweaks_config["WorldMap Window"] == 1 then
if ShaguTweaks_config(T["WorldMap Window"]) == 1 then
WorldMapFrame:SetMovable(true)
WorldMapFrame:EnableMouse(true)
+4 -3
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Unit Frame Big Health",
description = "Increases the healthbar of the player and target unitframe.",
title = T["Unit Frame Big Health"],
description = T["Increases the healthbar of the player and target unitframe."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Unit Frames",
category = T["Unit Frames"],
enabled = nil,
})
+4 -3
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "Unit Frame Class Colors",
description = "Adds class colors to the player, target and party unit frames.",
title = T["Unit Frame Class Colors"],
description = T["Adds class colors to the player, target and party unit frames."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Unit Frames",
category = T["Unit Frames"],
enabled = nil,
})
+4 -3
View File
@@ -1,4 +1,5 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local addonpath
local tocs = { "", "-master", "-tbc", "-wotlk" }
@@ -25,10 +26,10 @@ local CLASS_ICON_TCOORDS = {
}
local module = ShaguTweaks:register({
title = "Unit Frame Class Portraits",
description = "Replace unitframe portraits with class icons.",
title = T["Unit Frame Class Portraits"],
description = T["Replace unitframe portraits with class icons."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Unit Frames",
category = T["Unit Frames"],
enabled = nil,
})
+4 -3
View File
@@ -1,11 +1,12 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local GetExpansion = ShaguTweaks.GetExpansion
local module = ShaguTweaks:register({
title = "Vendor Values",
description = "Shows the vendor sell values on all item tooltips.",
title = T["Vendor Values"],
description = T["Shows the vendor sell values on all item tooltips."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "Tooltip & Items",
category = T["Tooltip & Items"],
enabled = true,
})
+4 -3
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "WorldMap Class Colors",
description = "Show class colored circles on world and battlefield map.",
title = T["WorldMap Class Colors"],
description = T["Show class colored circles on world and battlefield map."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "World & MiniMap",
category = T["World & MiniMap"],
enabled = true,
})
+8 -7
View File
@@ -1,10 +1,11 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local module = ShaguTweaks:register({
title = "WorldMap Coordinates",
description = "Adds coordinates to the bottom of the World Map.",
title = T["WorldMap Coordinates"],
description = T["Adds coordinates to the bottom of the World Map."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "World & MiniMap",
category = T["World & MiniMap"],
enabled = nil,
})
@@ -49,15 +50,15 @@ module.enable = function(self)
local px, py = GetPlayerMapPosition("player")
if px > 0 and py > 0 then
WorldMapButton.player.text:SetText(string.format('|cffffcc00Player: |r%.1f / %.1f', px*100, py*100))
WorldMapButton.player.text:SetText(string.format('|cffffcc00' .. T['Player:'] .. ' |r%.1f / %.1f', px*100, py*100))
else
WorldMapButton.player.text:SetText(string.format('|cffffcc00Player: |rN/A'))
WorldMapButton.player.text:SetText(string.format('|cffffcc00' .. T['Player:'] .. ' |r' .. T['N/A']))
end
if MouseIsOver(WorldMapButton) then
WorldMapButton.coords.text:SetText(string.format('|cffffcc00Cursor: |r%.1f / %.1f', mx, my))
WorldMapButton.coords.text:SetText(string.format('|cffffcc00' .. T['Cursor:'] .. ' |r%.1f / %.1f', mx, my))
else
WorldMapButton.coords.text:SetText(string.format('|cffffcc00Cursor: |rN/A'))
WorldMapButton.coords.text:SetText(string.format('|cffffcc00' .. T['Cursor:'] .. ' |r' .. T['N/A']))
end
end)
end
+4 -3
View File
@@ -1,11 +1,12 @@
local _G = ShaguTweaks.GetGlobalEnv()
local T = ShaguTweaks.T
local HookScript = ShaguTweaks.HookScript
local module = ShaguTweaks:register({
title = "WorldMap Window",
description = "Turns the world map into a movable window. The map can be scaled with <Ctrl> + Mousewheel.",
title = T["WorldMap Window"],
description = T["Turns the world map into a movable window. The map can be scaled with <Ctrl> + Mousewheel."],
expansions = { ["vanilla"] = true, ["tbc"] = true },
category = "World & MiniMap",
category = T["World & MiniMap"],
enabled = true,
})