From 524ffc971239e4826a2ee8e3df1d9af800ed5bba Mon Sep 17 00:00:00 2001 From: Cong Date: Fri, 13 Oct 2017 20:12:58 +1100 Subject: Use "Command" for OSX in translation strings (#1619) --- editor/project_settings_editor.cpp | 4 ++-- editor/settings_config_dialog.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'editor') diff --git a/editor/project_settings_editor.cpp b/editor/project_settings_editor.cpp index 91ef9e36f3..0cc368b21f 100644 --- a/editor/project_settings_editor.cpp +++ b/editor/project_settings_editor.cpp @@ -358,7 +358,7 @@ void ProjectSettingsEditor::_wait_for_key(const Ref &p_event) { last_wait_for_key = p_event; String str = keycode_get_string(k->get_scancode()).capitalize(); if (k->get_metakey()) - str = TTR("Meta+") + str; + str = vformat("%s+", find_keycode_name(KEY_META)) + str; if (k->get_shift()) str = TTR("Shift+") + str; if (k->get_alt()) @@ -640,7 +640,7 @@ void ProjectSettingsEditor::_update_actions() { String str = keycode_get_string(k->get_scancode()).capitalize(); if (k->get_metakey()) - str = TTR("Meta+") + str; + str = vformat("%s+", find_keycode_name(KEY_META)) + str; if (k->get_shift()) str = TTR("Shift+") + str; if (k->get_alt()) diff --git a/editor/settings_config_dialog.cpp b/editor/settings_config_dialog.cpp index 86979a1174..2f3da487d2 100644 --- a/editor/settings_config_dialog.cpp +++ b/editor/settings_config_dialog.cpp @@ -248,7 +248,7 @@ void EditorSettingsDialog::_wait_for_key(const Ref &p_event) { last_wait_for_key = k; String str = keycode_get_string(k->get_scancode()).capitalize(); if (k->get_metakey()) - str = TTR("Meta+") + str; + str = vformat("%s+", find_keycode_name(KEY_META)) + str; if (k->get_shift()) str = TTR("Shift+") + str; if (k->get_alt()) -- cgit v1.2.3