Close #2780 add CMD localization for Mac key bindings (#2792)

This commit is contained in:
mezz 2016-04-29 12:04:48 -07:00 committed by LexManos
parent 84bfeddc1c
commit 9c9107c434
2 changed files with 3 additions and 1 deletions

View file

@ -31,7 +31,8 @@ public enum KeyModifier {
public String getLocalizedComboName(int keyCode) public String getLocalizedComboName(int keyCode)
{ {
String keyName = GameSettings.getKeyDisplayString(keyCode); String keyName = GameSettings.getKeyDisplayString(keyCode);
return I18n.format("forge.controlsgui.control", keyName); String localizationFormatKey = Minecraft.isRunningOnMac ? "forge.controlsgui.control.mac" : "forge.controlsgui.control";
return I18n.format(localizationFormatKey, keyName);
} }
}, },
SHIFT { SHIFT {

View file

@ -145,6 +145,7 @@ fml.configgui.tooltip.defaultNumeric=[range: %s ~ %s, default: %s]
forge.controlsgui.shift=SHIFT + %s forge.controlsgui.shift=SHIFT + %s
forge.controlsgui.control=CTRL + %s forge.controlsgui.control=CTRL + %s
forge.controlsgui.control.mac=CMD + %s
forge.controlsgui.alt=ALT + %s forge.controlsgui.alt=ALT + %s
fml.menu.mods=Mods fml.menu.mods=Mods