summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorCong <congusbongus@gmail.com>2017-10-13 20:12:58 +1100
committerCong <congusbongus@gmail.com>2017-10-13 20:12:58 +1100
commit524ffc971239e4826a2ee8e3df1d9af800ed5bba (patch)
tree983e565249c903bdc1148e4801d7dc5b695a599d /editor
parentdd684eaaa08e7c8f2f5902a3e65f244e0bec3ab9 (diff)
Use "Command" for OSX in translation strings (#1619)
Diffstat (limited to 'editor')
-rw-r--r--editor/project_settings_editor.cpp4
-rw-r--r--editor/settings_config_dialog.cpp2
2 files changed, 3 insertions, 3 deletions
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<InputEvent> &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<InputEvent> &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())