Skip to content

Commit d5dcd94

Browse files
committed
fix(i18n): Add key binding translations
1 parent 87f10dc commit d5dcd94

3 files changed

Lines changed: 8 additions & 4 deletions

File tree

src/main/java/cn/msdnicrosoft/commandbuttons/CommandButtons.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ public void onInitialize() {
6868
private void assignGuiToKey() {
6969
// Currently, assigns to the G key
7070
KeyMapping keyBinding = KeyBindingHelper.registerKeyBinding(new KeyMapping(
71-
"key.commandbuttons.opengui", // The translation key of the keybinding's name
71+
"mgbuttons.key.opengui", // The translation key of the keybinding's name
7272
InputConstants.Type.KEYSYM, // The type of the keybinding, KEYSYM for keyboard, MOUSE for mouse.
7373
GLFW.GLFW_KEY_G, // The keycode of the key
74-
"gui.commandbuttons.mgbuttons" // The translation key of the keybinding's category.
74+
"mgbuttons.key.category" // The translation key of the keybinding's category.
7575
));
7676

7777
ClientTickEvents.END_CLIENT_TICK.register(client -> {
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"mgbuttons.gui.command": "Command",
33
"mgbuttons.gui.delete": "Delete",
4-
"mgbuttons.gui.name": "Name"
4+
"mgbuttons.gui.name": "Name",
5+
"mgbuttons.key.category": "Command GUI Buttons",
6+
"mgbuttons.key.opengui": "Open GUI"
57
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"mgbuttons.gui.command": "命令",
33
"mgbuttons.gui.delete": "删除",
4-
"mgbuttons.gui.name": "名称"
4+
"mgbuttons.gui.name": "名称",
5+
"mgbuttons.key.category": "Command GUI Buttons",
6+
"mgbuttons.key.opengui": "打开 GUI"
57
}

0 commit comments

Comments
 (0)