From 669833f02f8206f34633ee557ecaf87304e01a59 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Wed, 24 Dec 2014 18:51:28 +0100 Subject: [PATCH] RU,KR and CH locale were not working Signed-off-by: Alar of Daggerspine --- CHANGELOG.txt | 2 ++ GarrisonCommander.lua | 3 +++ RelNotes.lua | 3 +++ 3 files changed, 8 insertions(+) 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 -- 1.7.9.5