From d9646885ef44c6b35c9aa4b9d0503891bab4f1df Mon Sep 17 00:00:00 2001 From: Repooc Date: Sun, 4 Aug 2024 19:04:28 -0400 Subject: [PATCH] add some missing locales for modifiers --- ElvUI_KeybindDisplay/Core.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ElvUI_KeybindDisplay/Core.lua b/ElvUI_KeybindDisplay/Core.lua index 7a1c24d..21f9a6f 100644 --- a/ElvUI_KeybindDisplay/Core.lua +++ b/ElvUI_KeybindDisplay/Core.lua @@ -138,6 +138,7 @@ function KD:FixKeybindText(button) currentText = gsub(currentText, 'SHIFT%-', L["KEY_SHIFT"]) currentText = gsub(currentText, 'ALT%-', L["KEY_ALT"]) currentText = gsub(currentText, 'CTRL%-', L["KEY_CTRL"]) + currentText = gsub(currentText, 'META%-', L["KEY_META"]) currentText = gsub(currentText, 'BUTTON', L["KEY_MOUSEBUTTON"]) currentText = gsub(currentText, 'MOUSEWHEELUP', L["KEY_MOUSEWHEELUP"]) currentText = gsub(currentText, 'MOUSEWHEELDOWN', L["KEY_MOUSEWHEELDOWN"]) @@ -148,10 +149,11 @@ function KD:FixKeybindText(button) currentText = gsub(currentText, 'INSERT', L["KEY_INSERT"]) currentText = gsub(currentText, 'HOME', L["KEY_HOME"]) currentText = gsub(currentText, 'DELETE', L["KEY_DELETE"]) - currentText = gsub(currentText, 'NMULTIPLY', '*') - currentText = gsub(currentText, 'NMINUS', 'N-') - currentText = gsub(currentText, 'NPLUS', 'N+') - currentText = gsub(currentText, 'NEQUALS', 'N=') + currentText = gsub(currentText, 'NDIVIDE', L["KEY_NDIVIDE"]) + currentText = gsub(currentText, 'NMULTIPLY', L["KEY_NMULTIPLY"]) + currentText = gsub(currentText, 'NMINUS', L["KEY_NMINUS"]) + currentText = gsub(currentText, 'NPLUS', L["KEY_NPLUS"]) + currentText = gsub(currentText, 'NEQUALS', L["KEY_NEQUALS"]) end if E.db.kd.replacements[currentText] then