Quantcast

RU,KR and CH locale were not working

Alar of Daggerspine [12-24-14 - 17:51]
RU,KR and CH locale were not working

Signed-off-by: Alar of Daggerspine <alar@aspide.it>
Filename
CHANGELOG.txt
GarrisonCommander.lua
RelNotes.lua
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index eb170d1..021d1f8 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,4 +1,6 @@
 = GarrisonCommander helps you when choosing the right follower for the right mission =
+* 2.0.1
+Fixed: RU,KR,CH (both traditional and simplified) locales where broken
 * 2.0.0
 Gui totally redesigned, mission filling, mission sort, follower page enhancements
 * 1.1.7
diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index 1173dd4..ea7b9ab 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -193,6 +193,9 @@ local BUSY_MESSAGE=format(BUSY_MESSAGE_FORMAT,MAXMISSIONS,MINPERC)

 local function splitFormat(base)
 	local i,s=base:find("|4.*:.*;")
+	if (not i) then
+		return base,base
+	end
 	local m0,m1=base:match("|4(.*):(.*);")
 	local G=base
 	local G1=G:sub(1,i-1)..m0..G:sub(s+1)
diff --git a/RelNotes.lua b/RelNotes.lua
index 5407183..652046d 100644
--- a/RelNotes.lua
+++ b/RelNotes.lua
@@ -22,6 +22,9 @@ self:Wiki([[
 == Silent mode ==
 typing /gac silent in chat will eliminate every chat messag from GarrisonCommander
 ]])
+self:RelNotes(2,0,1)[[
+Fixed: RU,KR,CH (both traditional and simplified) locales where broken
+]]
 self:RelNotes(2,0,0,[[
 Gui totally redesigned, tons of feature added
 Check curse site for complete changelog