Quantcast

Now with localization for the Enchants (I hope)

kibsgaard [08-18-14 - 17:45]
Now with localization for the Enchants (I hope)
Please PM me on curse if it doesn't work in your language and state what "Enchanted:" is in your language (on the tooltips)

Signed-off-by: kibsgaard <kibsgaard@curseforge.com>
Filename
KibsItemLevel.lua
KibsItemLevel.toc
Localization/deDE.lua
Localization/enUS.lua
Localization/esES.lua
Localization/esMX.lua
Localization/frFR.lua
Localization/itIT.lua
Localization/koKR.lua
Localization/ptBR.lua
Localization/ruRU.lua
Localization/zhCN.lua
Localization/zhTW.lua
diff --git a/KibsItemLevel.lua b/KibsItemLevel.lua
index 9ccf694..dfb1736 100644
--- a/KibsItemLevel.lua
+++ b/KibsItemLevel.lua
@@ -262,7 +262,7 @@ function findItemInfo(who)
 					if (line) then
 						line = line:GetText();
 						if (line) then
-							if (line:find("Enchanted:")) then
+							if (line:find(ENCHANTED)) then
 								enchantInfo = line;
 							end
 						end
diff --git a/KibsItemLevel.toc b/KibsItemLevel.toc
index f0150cb..0eda572 100644
--- a/KibsItemLevel.toc
+++ b/KibsItemLevel.toc
@@ -3,6 +3,19 @@
 ## Title: KibsItemLevel
 ## Author: Kibs
 ## SavedVariables: KibsItemLevelConfig
+
+Localization\enUS.lua
+Localization\esES.lua
+Localization\esMX.lua
+Localization\deDE.lua
+Localization\ruRU.lua
+Localization\frFR.lua
+Localization\zhCN.lua
+Localization\zhTW.lua
+Localization\koKR.lua
+Localization\ptBR.lua
+Localization\itIT.lua
+
 libs\LibItemUpgradeInfo-1.0\LibItemUpgradeInfo-1.0.xml
 KibsItemLevel.lua
 KibsItemLevel.xml
\ No newline at end of file
diff --git a/Localization/deDE.lua b/Localization/deDE.lua
new file mode 100644
index 0000000..5b5edde
--- /dev/null
+++ b/Localization/deDE.lua
@@ -0,0 +1,5 @@
+if ( GetLocale() ~= "deDE" ) then
+  return ;
+end
+-- Missing translation
+ENCHANTED = "Enchanted:"
\ No newline at end of file
diff --git a/Localization/enUS.lua b/Localization/enUS.lua
new file mode 100644
index 0000000..0737403
--- /dev/null
+++ b/Localization/enUS.lua
@@ -0,0 +1 @@
+ENCHANTED = "Enchanted:"
\ No newline at end of file
diff --git a/Localization/esES.lua b/Localization/esES.lua
new file mode 100644
index 0000000..57508b9
--- /dev/null
+++ b/Localization/esES.lua
@@ -0,0 +1,4 @@
+if ( GetLocale() ~= "esES" ) then
+  return ;
+end
+ENCHANTED = "Encantado:"
\ No newline at end of file
diff --git a/Localization/esMX.lua b/Localization/esMX.lua
new file mode 100644
index 0000000..ad3e984
--- /dev/null
+++ b/Localization/esMX.lua
@@ -0,0 +1,4 @@
+if ( GetLocale() ~= "esMX" ) then
+  return ;
+end
+ENCHANTED = "Encantado:"
\ No newline at end of file
diff --git a/Localization/frFR.lua b/Localization/frFR.lua
new file mode 100644
index 0000000..bebdf5e
--- /dev/null
+++ b/Localization/frFR.lua
@@ -0,0 +1,4 @@
+if ( GetLocale() ~= "frFR" ) then
+  return ;
+end
+ENCHANTED = "Enchanté:"
\ No newline at end of file
diff --git a/Localization/itIT.lua b/Localization/itIT.lua
new file mode 100644
index 0000000..49d8a26
--- /dev/null
+++ b/Localization/itIT.lua
@@ -0,0 +1,4 @@
+if ( GetLocale() ~= "itIT" ) then
+  return ;
+end
+ENCHANTED = "Incantato:"
\ No newline at end of file
diff --git a/Localization/koKR.lua b/Localization/koKR.lua
new file mode 100644
index 0000000..b0e5088
--- /dev/null
+++ b/Localization/koKR.lua
@@ -0,0 +1,5 @@
+if ( GetLocale() ~= "itIT" ) then
+  return ;
+end
+-- Missing translation
+ENCHANTED = "Enchanted:"
\ No newline at end of file
diff --git a/Localization/ptBR.lua b/Localization/ptBR.lua
new file mode 100644
index 0000000..9241ee8
--- /dev/null
+++ b/Localization/ptBR.lua
@@ -0,0 +1,5 @@
+if ( GetLocale() ~= "ptBR" ) then
+  return ;
+end
+-- Missing translation
+ENCHANTED = "Enchanted:"
\ No newline at end of file
diff --git a/Localization/ruRU.lua b/Localization/ruRU.lua
new file mode 100644
index 0000000..80223b9
--- /dev/null
+++ b/Localization/ruRU.lua
@@ -0,0 +1,4 @@
+if ( GetLocale() ~= "ruRU" ) then
+  return ;
+end
+ENCHANTED = "Зачаровано:"
\ No newline at end of file
diff --git a/Localization/zhCN.lua b/Localization/zhCN.lua
new file mode 100644
index 0000000..bb9733a
--- /dev/null
+++ b/Localization/zhCN.lua
@@ -0,0 +1,5 @@
+if ( GetLocale() ~= "zhCN" ) then
+  return ;
+end
+-- Missing translation
+ENCHANTED = "Enchanted:"
\ No newline at end of file
diff --git a/Localization/zhTW.lua b/Localization/zhTW.lua
new file mode 100644
index 0000000..279dba6
--- /dev/null
+++ b/Localization/zhTW.lua
@@ -0,0 +1,5 @@
+if ( GetLocale() ~= "zhTW" ) then
+  return ;
+end
+-- Missing translation
+ENCHANTED = "Enchanted:"
\ No newline at end of file