diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-03-14 22:00:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-14 22:00:15 +0100 |
commit | b060ca680a640904af7fd25b5aaa9f30f1182319 (patch) | |
tree | 10f574579e55df4a2960dba6f1cfcedbea336b09 | |
parent | e726bf95e4e23acbaffc40b092b872c069b8b466 (diff) | |
parent | 79e31efd4081abdd207a2caf799cbb25d937280e (diff) |
Merge pull request #47004 from Calinou/editor-move-to-trash-windows
Use OS-specific terminology for "Move to Trash" in the editor filesystem
-rw-r--r-- | editor/filesystem_dock.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index ab5fd30998..43bfccc656 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -2718,7 +2718,22 @@ FileSystemDock::FileSystemDock(EditorNode *p_editor) { // `KEY_MASK_CMD | KEY_C` conflicts with other editor shortcuts. ED_SHORTCUT("filesystem_dock/copy_path", TTR("Copy Path"), KEY_MASK_CMD | KEY_MASK_SHIFT | KEY_C); ED_SHORTCUT("filesystem_dock/duplicate", TTR("Duplicate..."), KEY_MASK_CMD | KEY_D); + +#if defined(WINDOWS_ENABLED) + // TRANSLATORS: This string is only used on Windows, as it refers to the system trash + // as "Recycle Bin" instead of "Trash". Make sure to use the translation of "Recycle Bin" + // recommended by Microsoft for the target language. + ED_SHORTCUT("filesystem_dock/delete", TTR("Move to Recycle Bin"), KEY_DELETE); +#elif defined(OSX_ENABLED) + // TRANSLATORS: This string is only used on macOS, as it refers to the system trash + // as "Bin" instead of "Trash". Make sure to use the translation of "Bin" + // recommended by Apple for the target language. + ED_SHORTCUT("filesystem_dock/delete", TTR("Move to Bin"), KEY_DELETE); +#else + // TRANSLATORS: This string is only used on platforms other than Windows and macOS. ED_SHORTCUT("filesystem_dock/delete", TTR("Move to Trash"), KEY_DELETE); +#endif + ED_SHORTCUT("filesystem_dock/rename", TTR("Rename..."), KEY_F2); VBoxContainer *top_vbc = memnew(VBoxContainer); |