Quantcast

Added speculative localization

Jamie Schembri [02-06-14 - 18:40]
Added speculative localization
Filename
core.lua
diff --git a/core.lua b/core.lua
index ee46c8a..c764380 100644
--- a/core.lua
+++ b/core.lua
@@ -1,9 +1,16 @@
+local L = {
+  enUS = "Fishing Bobber",
+  deDE = "Angelschwimmer",
+  esES = "Corcho de pesca",
+  frFR = "Flotteur",
+  ruRU = "поплавок",
+  ptBR = "Flutador para Pesca"
+}

 GameTooltip:HookScript("OnShow", function()
   local tooltipText = GameTooltipTextLeft1
-  local bobberText = "Fishing Bobber"

-  if tooltipText and tooltipText:GetText() == bobberText then
+  if tooltipText and tooltipText:GetText() == L[GetLocale()] then
     GameTooltip:Hide()
   end
 end)