From 061ec1e72f03354d2e4565f905326518edc560e0 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 23 Aug 2018 22:13:30 +0200 Subject: [PATCH] translations: add new translation strings --- modules/addons.lua | 8 ++++---- modules/unlock.lua | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/addons.lua b/modules/addons.lua index 89287843..f7709845 100644 --- a/modules/addons.lua +++ b/modules/addons.lua @@ -116,8 +116,8 @@ pfUI:RegisterModule("addons", function () -- addon profiles pfUI.addons.profile = CreateFrame("Frame", "pfAddonListProfile", pfUI.addons) pfUI.addons.profile:SetScript("OnShow", function() - pfUI_addon_profiles["Current"] = GetSelectedAddonsList() - UIDropDownMenu_SetText("Current", pfUI.addons.profile.dropdown) + pfUI_addon_profiles[T["Current"]] = GetSelectedAddonsList() + UIDropDownMenu_SetText(T["Current"], pfUI.addons.profile.dropdown) end) pfUI.addons.profile:SetPoint("TOP", pfUI.addons, "TOP", 0, -34) @@ -190,7 +190,7 @@ pfUI:RegisterModule("addons", function () if profile_name then CreateQuestionDialog(T["Delete profile"] .. " '|cff33ffcc" .. profile_name .. "|r'?", function() pfUI_addon_profiles[profile_name] = nil - SetAddonProfile("Current") + SetAddonProfile(T["Current"]) end) end end) @@ -270,7 +270,7 @@ pfUI:RegisterModule("addons", function () DisableAddOn(this:GetID()) end pfUI.addons.hasChanged = true - local profile_name = UIDropDownMenu_GetText(pfUI.addons.profile.dropdown) or "Current" + local profile_name = UIDropDownMenu_GetText(pfUI.addons.profile.dropdown) or T["Current"] pfUI_addon_profiles[profile_name] = GetSelectedAddonsList() end) end diff --git a/modules/unlock.lua b/modules/unlock.lua index 741d0a63..ffc6c069 100644 --- a/modules/unlock.lua +++ b/modules/unlock.lua @@ -111,7 +111,7 @@ pfUI:RegisterModule("unlock", function () end C.position[frame:GetName()]["scale"] = scale - frame.drag.text:SetText("Scale: " .. scale) + frame.drag.text:SetText(T["Scale"] .. ": " .. scale) frame.drag.text:SetAlpha(1) frame.drag:SetScript("OnUpdate", function()