From fc51138a2961bdac6cae9d68cfde3ef860bdabb8 Mon Sep 17 00:00:00 2001 From: kibsgaard Date: Mon, 18 Aug 2014 19:45:02 +0200 Subject: [PATCH] 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 --- KibsItemLevel.lua | 2 +- KibsItemLevel.toc | 13 +++++++++++++ Localization/deDE.lua | 5 +++++ Localization/enUS.lua | 1 + Localization/esES.lua | 4 ++++ Localization/esMX.lua | 4 ++++ Localization/frFR.lua | 4 ++++ Localization/itIT.lua | 4 ++++ Localization/koKR.lua | 5 +++++ Localization/ptBR.lua | 5 +++++ Localization/ruRU.lua | 4 ++++ Localization/zhCN.lua | 5 +++++ Localization/zhTW.lua | 5 +++++ 13 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 Localization/deDE.lua create mode 100644 Localization/enUS.lua create mode 100644 Localization/esES.lua create mode 100644 Localization/esMX.lua create mode 100644 Localization/frFR.lua create mode 100644 Localization/itIT.lua create mode 100644 Localization/koKR.lua create mode 100644 Localization/ptBR.lua create mode 100644 Localization/ruRU.lua create mode 100644 Localization/zhCN.lua create mode 100644 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 -- 1.7.9.5