Skip to content

Commit

Permalink
Use globalstrings directly, cleanup localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
p3lim committed Dec 20, 2024
1 parent 0bf3f9b commit 7d3b382
Show file tree
Hide file tree
Showing 11 changed files with 9 additions and 60 deletions.
3 changes: 0 additions & 3 deletions locale/deDE.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
local L = select(2, ...).L('deDE')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
L['Modifier to activate %s'] = 'Modifikator zum aktivieren von %s'
8 changes: 1 addition & 7 deletions locale/esES.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
local L = select(2, ...).L('esES')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
-- L['Modifier to activate %s'] -- MISSING! %s = "Molinari"
local L = select(2, ...).L('esES') -- luacheck: ignore
8 changes: 1 addition & 7 deletions locale/esMX.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
local L = select(2, ...).L('esMX')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
-- L['Modifier to activate %s'] -- MISSING! %s = "Molinari"
local L = select(2, ...).L('esMX') -- luacheck: ignore
8 changes: 1 addition & 7 deletions locale/frFR.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
local L = select(2, ...).L('frFR')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
-- L['Modifier to activate %s'] -- MISSING! %s = "Molinari"
local L = select(2, ...).L('frFR') -- luacheck: ignore
8 changes: 1 addition & 7 deletions locale/itIT.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
local L = select(2, ...).L('itIT')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
-- L['Modifier to activate %s'] -- MISSING! %s = "Molinari"
local L = select(2, ...).L('itIT') -- luacheck: ignore
4 changes: 0 additions & 4 deletions locale/koKR.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
local L = select(2, ...).L('koKR')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
L['Modifier to activate %s'] = '몰리나리를 작동시키는 수식어'
8 changes: 1 addition & 7 deletions locale/ptBR.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
local L = select(2, ...).L('ptBR')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
-- L['Modifier to activate %s'] -- MISSING! %s = "Molinari"
local L = select(2, ...).L('ptBR') -- luacheck: ignore
8 changes: 1 addition & 7 deletions locale/ruRU.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
local L = select(2, ...).L('ruRU')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
-- L['Modifier to activate %s'] -- MISSING! %s = "Molinari"
local L = select(2, ...).L('ruRU') -- luacheck: ignore
4 changes: 0 additions & 4 deletions locale/zhCN.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
local L = select(2, ...).L('zhCN')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
L['Modifier to activate %s'] = '按键激活 %s'
4 changes: 0 additions & 4 deletions locale/zhTW.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
local L = select(2, ...).L('zhTW')

-- config
L['ALT key'] = ALT_KEY
L['ALT + CTRL key'] = ALT_KEY_TEXT .. ' + ' .. CTRL_KEY
L['ALT + SHIFT key'] = ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY
L['Modifier to activate %s'] = '啟用%s的設置選項'
6 changes: 3 additions & 3 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ addon:RegisterSettings('MolinariDB3', {
title = string.format(L['Modifier to activate %s'], addonName),
default = 'ALT',
options = {
{value='ALT', label=L['Alt key']},
{value='CTRL', label=L['ALT + CTRL key']},
{value='SHIFT', label=L['ALT + SHIFT key']},
{value='ALT', label=ALT_KEY},
{value='CTRL', label=ALT_KEY_TEXT .. ' + ' .. CTRL_KEY},
{value='SHIFT', label=ALT_KEY_TEXT .. ' + ' .. SHIFT_KEY},
}
}
})
Expand Down

0 comments on commit 7d3b382

Please sign in to comment.