Skip to content

Commit

Permalink
add some missing locales for modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
Repooc committed Aug 4, 2024
1 parent da138b4 commit d964688
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions ElvUI_KeybindDisplay/Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand All @@ -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
Expand Down

0 comments on commit d964688

Please sign in to comment.