ptBR localization
Sidoine De Wispelaere [11-12-11 - 18:49]
ptBR localization
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@425 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/Condition.lua b/Condition.lua
index 5030548..64bf768 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -859,20 +859,22 @@ Ovale.conditions=
for i=1,6 do
local rune = Ovale.state.rune[i]
- if runes[rune.type] > 0 then
- runes[rune.type] = runes[rune.type] - 1
- if rune.cd > runesCD[rune.type] then
+ if rune then
+ if runes[rune.type] > 0 then
+ runes[rune.type] = runes[rune.type] - 1
+ if rune.cd > runesCD[rune.type] then
+ runesCD[rune.type] = rune.cd
+ end
+ elseif rune.cd < runesCD[rune.type] then
runesCD[rune.type] = rune.cd
end
- elseif rune.cd < runesCD[rune.type] then
- runesCD[rune.type] = rune.cd
end
end
if not condition.nodeath then
for i=1,6 do
local rune = Ovale.state.rune[i]
- if rune.type == 4 then
+ if rune and rune.type == 4 then
for j=1,3 do
if runes[j]>0 then
runes[j] = runes[j] - 1
diff --git a/Locale-btBR.lua b/Locale-btBR.lua
new file mode 100644
index 0000000..78f3bc1
--- /dev/null
+++ b/Locale-btBR.lua
@@ -0,0 +1,4 @@
+local L = LibStub:GetLibrary("AceLocale-3.0"):NewLocale("Ovale", "ptBR", false)
+if not L then return end
+
+--@localization(locale="ptBR", format="lua_additive_table", same-key-is-true=true, handle-subnamespaces="concat")@
\ No newline at end of file
diff --git a/Ovale.toc b/Ovale.toc
index 3cca10c..2869909 100644
--- a/Ovale.toc
+++ b/Ovale.toc
@@ -15,8 +15,9 @@ embeds.xml
Locale-frFR.lua
Locale-deDE.lua
Locale-enUS.lua
-Locale-zhTW.lua
+Locale-ptBR.lua
Locale-ruRU.lua
+Locale-zhTW.lua
Ovale.lua
Condition.lua
OvaleEquipement.lua