diff ui/Ui.lua @ 73:304d7ebb8e30 v29

small bug fixes for item upgrades, gear swapping
author yellowfive
date Tue, 17 Nov 2015 20:52:06 -0800
parents 932885bb1a6f
children 0515882856f1
line wrap: on
line diff
--- a/ui/Ui.lua	Sat Jul 18 01:05:00 2015 -0700
+++ b/ui/Ui.lua	Tue Nov 17 20:52:06 2015 -0800
@@ -60,9 +60,15 @@
 end
 
 local function getFontPath(style)
-	local region = Amr.RegionNames[GetCurrentRegion()]
-	if region == "KR" or region == "CN" or region == "TW" then
-		return "Fonts\\FRIZQT__.TTF"
+	local locale = GetLocale()
+	if locale == "koKR" then
+		return "Fonts\\2002.TTF"
+	elseif locale == "zhCN" then
+		return "Fonts\\ARKai_T.ttf"
+	elseif locale == "zhTW" then
+		return "Fonts\\bLEI00D.ttf"
+	elseif locale == "ruRU" then
+		return "Fonts\\FRIZQT___CYR.TTF"
 	else
 		return "Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\Ubuntu-" .. style .. ".ttf"
 	end