From 42c4386ba2f6c037147ef43104d6cd371c8c0ada Mon Sep 17 00:00:00 2001 From: Kevin Lyles Date: Tue, 25 May 2010 14:20:07 -0500 Subject: [PATCH] Localized config.xml --- Locales/enUS/base.lua | 39 +++++++++++++++++++ config.xml | 102 +++++++++++++++++++++++++++++-------------------- 2 files changed, 99 insertions(+), 42 deletions(-) diff --git a/Locales/enUS/base.lua b/Locales/enUS/base.lua index f6ac7d2..3e65396 100644 --- a/Locales/enUS/base.lua +++ b/Locales/enUS/base.lua @@ -18,3 +18,42 @@ L["config"] = "config" L["version"] = "version" L["weights"] = "weights" L["DECIMAL_SEPARATOR"] = "." + +-- Strings in config.xml +L["CALC_OPTS"] = "Calculation Options" +L["USE_UE_GEMS_TT"] = "Consider gems that are Unique-Equipped" +L["USE_UE_GEMS"] = "Use Unique-Equipped Gems" +L["USE_JC_GEMS_TT"] = "Consider gems that are Jewelcrafter-Only" +L["USE_JC_GEMS"] = "Use Jewelcrafter-Only Gems" +L["USE_VP_GEMS_TT"] = "Consider gems that are purchasable with gold" +L["USE_VP_GEMS"] = "Use Vendor-Purchasable Gems" +L["USE_PVPVP_GEMS_TT"] = "Consider gems that are purchasable with PVP tokens" +L["USE_PVPVP_GEMS"] = "Use PVP Vendor-Purchasable Gems" +L["USE_PC_GEMS_TT"] = "Consider gems that are player crafted (usually but not always through Jewelcrafting)" +L["USE_PC_GEMS"] = "Use Crafted Gems" +L["USE_P_GEMS_TT"] = "Consider gems that are created by a proc (i.e. Wrath \"Perfect\" gems)" +L["USE_P_GEMS"] = "Use Procced Gems" +L["USE_D_GEMS_TT"] = "Consider gems that are dropped by a mob/zone" +L["USE_D_GEMS"] = "Use Dropped Gems" +L["USE_QR_GEMS_TT"] = "Consider gems that are quest rewards" +L["USE_QR_GEMS"] = "Use Quest Reward Gems" +L["MAX_GEM_QUAL"] = "Maximum Ideal Gem Quality:" +L["MATCH_SOCKET"] = "Obey socket colors" +L["MATCH_SOCKET_TT"] = "Chooses ideal gems that obey their socket color (even if that gives a lower overall score)" +L["ALWAYS_MATCH_SOCKET"] = "Even if the socket bonus is worthless" +L["ALWAYS_MATCH_SOCKET_TT"] = "Forces ideal gems to obey their socket color (even if the socket bonus has a 0 or negative score for that weight)" +L["NORMALIZE"] = "Normalize weights" +L["NORMALIZE_TT"] = "Divides item scores by the total of all stats' values in that weight" +L["IDEAL_USE_UPTIME"] = "Percent of ideal use effect uptime:" +L["DISPLAY_OPTS"] = "Display Options" +L["SHOW_WTS"] = "Show weights:" +L["SHOW_IDEAL_WTS"] = "Show ideally-gemmed weights:" +L["SHOW_IDEAL_GEMS"] = "Show ideal gems:" +L["SHOW_ALT_IDEAL_GEMS"] = "Show alternate ideal gems:" +L["SHOW_IDEAL_GEM_STATS"] = "Show ideal gem stats:" +L["SHOW_DEBUG"] = "Show parser debug information:" +L["HIDE_HINTS_TT"] = "Hides modifier key hints in tooltips" +L["HIDE_HINTS"] = "Hide tooltip hints" +L["SHOW_CLASS"] = "Show class names:" +L["SHOW_DIFF"] = "Show differences to current gear" +L["SHOW_DIFF_TT"] = "Shows the change in score compared to the currently equipped gear" diff --git a/config.xml b/config.xml index 4f06421..3463b2f 100644 --- a/config.xml +++ b/config.xml @@ -151,7 +151,7 @@ - + @@ -185,11 +185,11 @@ - self.label:SetText("Maximum Ideal Gem Quality:") + self.label:SetText(ww_localization["MAX_GEM_QUAL"]) - + @@ -204,11 +204,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.types["Unique-Equipped"] end - self.ttText = "Consider gems that are Unique-Equipped" + self.ttText = ww_localization["USE_UE_GEMS_TT"] + self:SetText(ww_localization["USE_UE_GEMS"]) - + @@ -223,11 +224,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.types["Jewelcrafter-Only"] end - self.ttText = "Consider gems that are Jewelcrafter-Only" + self.ttText = ww_localization["USE_JC_GEMS_TT"] + self:SetText(ww_localization["USE_JC_GEMS"]) - + @@ -242,11 +244,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.sources["Vendor"] end - self.ttText = "Consider gems that are purchasable with gold" + self.ttText = ww_localization["USE_VP_GEMS_TT"] + self:SetText(ww_localization["USE_VP_GEMS"]) - + @@ -261,11 +264,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.sources["PVP-Vendor"] end - self.ttText = "Consider gems that are purchasable with PVP tokens" + self.ttText = ww_localization["USE_PVPVP_GEMS_TT"] + self:SetText(ww_localization["USE_PVPVP_GEMS"]) - + @@ -282,11 +286,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.sources["Crafted"] end - self.ttText = "Consider gems that are player crafted (usually but not always through Jewelcrafting)" + self.ttText = ww_localization["USE_PC_GEMS_TT"] + self:SetText(ww_localization["USE_PC_GEMS"]) - + @@ -306,11 +311,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.sources["Procced"] end self.shouldBeEnabled = function() return ww_vars.options.gems.sources["Crafted"] end - self.ttText = "Consider gems that are created by a proc (i.e. Wrath \"Perfect\" gems)" + self.ttText = ww_localization["USE_P_GEMS_TT"] + self:SetText(ww_localization["USE_P_GEMS"]) - + @@ -325,11 +331,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.sources["Drop"] end - self.ttText = "Consider gems that are dropped by a mob/zone" + self.ttText = ww_localization["USE_D_GEMS_TT"] + self:SetText(ww_localization["USE_D_GEMS"]) - + @@ -344,11 +351,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.sources["Quest"] end - self.ttText = "Consider gems that are quest rewards" + self.ttText = ww_localization["USE_QR_GEMS_TT"] + self:SetText(ww_localization["USE_QR_GEMS"]) - + @@ -365,11 +373,12 @@ self.shouldBeChecked = function() return not ww_vars.options.gems.breakSocketColors end - self.ttText = "Chooses ideal gems that obey their socket color (even if that gives a lower overall score)" + self.ttText = ww_localization["MATCH_SOCKET_TT"] + self:SetText(ww_localization["MATCH_SOCKET"]) - + @@ -389,11 +398,12 @@ self.shouldBeChecked = function() return ww_vars.options.gems.neverBreakSocketColors end self.shouldBeEnabled = function() return not ww_vars.options.gems.breakSocketColors end - self.ttText = "Forces ideal gems to obey their socket color (even if the socket bonus has a 0 or negative score for that weight)" + self.ttText = ww_localization["ALWAYS_MATCH_SOCKET_TT"] + self:SetText(ww_localization["ALWAYS_MATCH_SOCKET"]) - + @@ -409,11 +419,12 @@ self.shouldBeChecked = function() return ww_vars.options.tooltip.normalizeWeights end - self.ttText = "Divides item scores by the total of all stats' values in that weight" + self.ttText = ww_localization["NORMALIZE_TT"] + self:SetText(ww_localization["NORMALIZE"]) - + @@ -480,11 +491,16 @@ - self.label:SetText("Percent of ideal use effect uptime:") + self.label:SetText(ww_localization["IDEAL_USE_UPTIME"]) + + + self.header:SetText(ww_localization["CALC_OPTS"]) + + @@ -493,7 +509,7 @@ - + @@ -503,7 +519,7 @@ - self.label:SetText("Show weights:") + self.label:SetText(ww_localization["SHOW_WTS"]) self.dropdown:SetText("showWeights") @@ -519,7 +535,7 @@ - self.label:SetText("Show ideally-gemmed weights:") + self.label:SetText(ww_localization["SHOW_IDEAL_WTS"]) self.dropdown:SetText("showIdealWeights") @@ -535,7 +551,7 @@ - self.label:SetText("Show ideal gems:") + self.label:SetText(ww_localization["SHOW_IDEAL_GEMS"]) self.dropdown:SetText("showIdealGems") @@ -551,7 +567,7 @@ - self.label:SetText("Show alternate ideal gems:") + self.label:SetText(ww_localization["SHOW_ALT_IDEAL_GEMS"]) self.dropdown:SetText("showAlternateGems") @@ -567,7 +583,7 @@ - self.label:SetText("Show ideal gem stats:") + self.label:SetText(ww_localization["SHOW_IDEAL_GEM_STATS"]) self.dropdown:SetText("showIdealGemStats") @@ -575,20 +591,15 @@ - - self.label:SetText("Show parser debug information:") + self.label:SetText(ww_localization["SHOW_DEBUG"]) self.dropdown:SetText("showDebugInfo") - + @@ -602,7 +613,8 @@ self.shouldBeChecked = function() return ww_vars.options.tooltip.hideHints end - self.ttText = "Hides modifier key hints in tooltips" + self.ttText = ww_localization["HIDE_HINTS_TT"] + self:SetText(ww_localization["HIDE_HINTS"]) @@ -635,11 +647,11 @@ - self.label:SetText("Show class names:") + self.label:SetText(ww_localization["SHOW_CLASS"]) - + @@ -654,10 +666,16 @@ self.shouldBeChecked = function() return ww_vars.options.tooltip.showDifferences end self.ttText = "Shows the change in score compared to the currently equipped gear" + self:SetText(ww_localization["SHOW_DIFF"]) + + + self.header:SetText(ww_localization["DISPLAY_OPTS"]) + + -- 1.7.9.5