Haleth / FreeUI

A World of Warcraft user interface
http://www.wowinterface.com/downloads/info17892-FreeUI.html
54 stars 29 forks source link

Chinese client need some tweak about actionbar button's hotkey text #83

Closed fafaraway closed 8 years ago

fafaraway commented 9 years ago
text = text:gsub("Mouse Button", "M")
text = text:gsub("Middle Mouse", "M3")
text = text:gsub("Mouse Wheel Up", "MU")
text = text:gsub("Mouse Wheel Down", "MD")

this code only work for English client, Chinese client need localization.

local locale = GetLocale()
if locale == "zhCN" then
    text = text:gsub("鼠标按键", "M")
    text = text:gsub("鼠标中键", "M3")
    text = text:gsub("鼠标滚轮向上滑动", "MU")
    text = text:gsub("鼠标滚轮向下滑动", "MD")
end