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
this code only work for English client, Chinese client need localization.