Quantcast

Fix specification to be multilingual

BillLive [02-09-16 - 10:16]
Fix specification to be multilingual
Signed-off-by: BillLive
Filename
Elementarist.lua
Localization_enUS.lua
Localization_frFR.lua
Localization_zhCN.lua
diff --git a/Elementarist.lua b/Elementarist.lua
index 1a13b21..d35801a 100755
--- a/Elementarist.lua
+++ b/Elementarist.lua
@@ -422,9 +422,17 @@ function Elementarist:detectTalent()

 	-- get the class and specialization infomration for current player
 	local spec = GetSpecialization() --saves the number of the Specialisation active
-	if spec then
-		_,talent = GetSpecializationInfo(spec) --saves the Name of the Specialisation active
-		if talent then talent=string.lower(talent) end
+	if (spec == 1) then
+		-- for first spec use elemental file
+		talent = "elemental"
+	end
+	if (spec == 2) then
+		-- for first spec use enhancement file
+		talent = "enhancement"
+	end
+	if (spec == 3) then
+		-- for first spec use restoration file
+		talent = "restoration"
 	end
 	_, Elementarist.tier4Talent = GetTalentRowSelectionInfo(4);
 	_, Elementarist.tier6Talent = GetTalentRowSelectionInfo(6);
diff --git a/Localization_enUS.lua b/Localization_enUS.lua
index 22046d7..ea22d6b 100755
--- a/Localization_enUS.lua
+++ b/Localization_enUS.lua
@@ -2,6 +2,7 @@

 -- This is the default locale.

+
 if GetLocale() then
 	local L = Elementarist.Locals
 	L.CONFIG_BEHAVIOR = "Flame Shock behavior:"
diff --git a/Localization_frFR.lua b/Localization_frFR.lua
index dd4764c..be16deb 100755
--- a/Localization_frFR.lua
+++ b/Localization_frFR.lua
@@ -5,41 +5,41 @@ end

 if GetLocale() then
 	local L = Elementarist.Locals
-	L["BEHAVIOR_FS_BEFORE_LVB"] = "Horion de flammes avant lave"
+	L["CONFIG_BEHAVIOR"] = "Horion de flammes comportemete:" -- Requires localization
 	L["BEHAVIOR_KEEP_FS_UP"] = "Gardez Horion de flammes Up !"
-	L["CONFIG_BEHAVIOR"] = "Flame Shock behavior:" -- Requires localization
-	L["CONFIG_ANNOUNCE_STORMLASH"] = "Announce Stormlash Totem in Raid/Party chat" -- Requires localization
-	L["CONFIG_BEHAVIOR"] = "Flame Shock behavior:" -- Requires localization
-	L["CONFIG_CLSTBEHAVIOR"] = "Chain Lightning single target behavior" -- Requires localization
-	L["CONFIG_DEBUFF_TRACKER_ALPHA"] = "Suivi des débuffs alpha"
-	L["CONFIG_DEBUFF_TRACKER_SCALE"] = "échelle du suivi des Debuff"
-	L["CONFIG_DISABLE_ADVISOR"] = "Disable spell advisor" -- Requires localization
-	L["CONFIG_DISABLE_DEBUFF_TRACKER"] = "Désactiver le suivi des débuffs"
-	L["CONFIG_DISABLE_MINI"] = "Désactiver les mini cadres"
-	L["CONFIG_DISABLE_SHIELD_TRACKER"] = "Désactiver le suivi du bouclier"
-	L["CONFIG_DISABLE_SHIELD_TRACKER_CD"] = "Disable shield cooldown tracker" -- Requires localization
-	L["CONFIG_DISABLE_DPSTXT"] = "Désactiver les nombers des blessures et menace"
+	L["BEHAVIOR_FS_BEFORE_LVB"] = "Horion de flammes avant lave"
+	L["THREAT_WARNING_PREFIX"] = "Général"
+	L["THREAT_WARNING_SUFFIX"] = "% de menace!"
 	L["CONFIG_ENABLED"] = "Activé"
-	L["CONFIG_ENABLE_EQ_SPELL"] = "Active Tremblement de terre en rotation"
-	L["CONFIG_ENABLE_HS_TOTEM"] = "Show Healing Stream Totem" -- Requires localization
-	L["CONFIG_ENABLE_SEARING_TOTEM"] = "Show Searing Totem" -- Requires localization
-	L["CONFIG_LAYOUT"] = "Layout:" -- Requires localization
+	L["CONFIG_ONLY_ON_ELE"] = "Désactive vous n'êtes pas sur le talent élémentaire"
 	L["CONFIG_LOCK_FRAMES"] = "Verrouiller les cadres"
-	L["CONFIG_ONLY_ON_ELE"] = "Désactive vous n'êtes pas sur le talent élémentaire"
-	L["CONFIG_RESET_POSITIONS"] = "Réinitialiser la position du cadre"
-	L["CONFIG_SHIELD_TRACKER_ALPHA"] = "suivi du bouclier alpha"
-	L["CONFIG_SHIELD_TRACKER_SCALE"] = "échelle du suivi du bouclier"
 	L["CONFIG_SPELL_ADV_ALPHA"] = "Sort conseiller alpha"
 	L["CONFIG_SPELL_ADV_SCALE"] = "échelle du sort conseiller"
+	L["CONFIG_DISABLE_DEBUFF_TRACKER"] = "Désactiver le suivi des débuffs"
+	L["CONFIG_DEBUFF_TRACKER_SCALE"] = "échelle du suivi des Debuff"
+	L["CONFIG_DEBUFF_TRACKER_ALPHA"] = "Suivi des débuffs alpha"
 	L["CONFIG_THREAT_WARNING"] = "Avertissement de menace"
-	L["LAYOUT_GROW"] = "Growing icons" -- Requires localization
-	L["LAYOUT_GROW_TOP"] = "Growing icons, misc. on top" -- Requires localization
-	L["LAYOUT_RIGHTTOLEFT"] = "Right to left" -- Requires localization
-	L["LAYOUT_RIGHTTOLEFT_WIDE"] = "Right to left, wide" -- Requires localization
-	L["LAYOUT_SINGLE"] = "Single spell" -- Requires localization
-	L["THREAT_WARNING_PREFIX"] = "Général"
-	L["THREAT_WARNING_SUFFIX"] = "% de menace!"
-	L["CONFIG_DISABLE_LM_SPELL"] = "Disable Liquid Magma in rotation" -- Requires localization
+	L["CONFIG_RESET_POSITIONS"] = "Réinitialiser la position du cadre"
+	L["CLSTBEHAVIOR_NONE"] = "None"
+	L["CONFIG_SHIELD_TRACKER_SCALE"] = "échelle du suivi du bouclier"
+	L["CONFIG_SHIELD_TRACKER_ALPHA"] = "suivi du bouclier alpha"
+	L["CONFIG_DISABLE_SHIELD_TRACKER"] = "Désactiver le suivi du bouclier"
+	L["CONFIG_ENABLE_EQ_SPELL"] = "Active Tremblement de terre en rotation"
+	L["CONFIG_DISABLE_MINI"] = "Désactiver les mini cadres"
+	L["CONFIG_LAYOUT"] = "Plan:"
+	L["LAYOUT_GROW"] = "Croissant d'icone"
+	L["CONFIG_ENABLE_HS_TOTEM"] = "montrez Totem guéisser"
+	L["CONFIG_ENABLE_SEARING_TOTEM"] = "montrez Totem incendiaire"
+	L["CONFIG_ANNOUNCE_STORMLASH"] = "Announce Stormlash Totem in Raid/Party chat" -- Requires localization
+	L["CONFIG_DISABLE_ADVISOR"] = "Désactiver la conseiller de sort"
+	L["CONFIG_DISABLE_SHIELD_TRACKER_CD"] = "Désactiver Bouclier de recharge"
+	L["CONFIG_DISABLE_DPSTXT"] = "Désactiver les nombers des blessures et menace"
+	L["LAYOUT_RIGHTTOLEFT"] = "de droite a la gauche"
+	L["LAYOUT_GROW_TOP"] = "Croissant d'icone, divers sur l'haut"
+	L["LAYOUT_RIGHTTOLEFT_WIDE"] = "de droite a la gauche, large"
+	L["LAYOUT_SINGLE"] = "Single spell"
+	L["LAYOUT_UPSIDE_DOWN"] = "A l'envers"
+	L["CONFIG_DISABLE_LM_SPELL"] = "Désactiver la Magma liquide" -- Requires localization
 	L["CONFIG_DOFS_THRESHOLD"] = "Donnez la priorité à améliorer Flameshock\r avec les seconds restants sur le DOT"
 	L["CONFIG_DOFS"] = "Donnez la priorité à améliorer Flameshock quand \r le DOT actuel n’est pas améliorer au maximum"
 	L["CONFIG_DEBUFF_TRACKER_SHOW_BUFFS"] = "Suivi des débuffs montre buffs"
diff --git a/Localization_zhCN.lua b/Localization_zhCN.lua
index 61cefcb..f42988b 100755
--- a/Localization_zhCN.lua
+++ b/Localization_zhCN.lua
@@ -46,10 +46,6 @@ if GetLocale() then
 	L["CONFIG_DOFS_THRESHOLD"] = "优先抛光烈焰震击剩余的法术秒"
 	L["CONFIG_DOFS"] = "优先抛光火焰冲击电流时,法术不充分授权"
 	L["CONFIG_DEBUFF_TRACKER_SHOW_BUFFS"] = "火焰冲击跟踪显示爱好者"
-
-
-
-
-
+	L["LAYOUT_UPSIDE_DOWN"] = "转位"

 end
\ No newline at end of file