Skip to content

Commit 39a05bb

Browse files
authored
ConflictsManager: Add comments for translators (#541)
1 parent 19dd65b commit 39a05bb

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

src/Shortcuts/Backend/ConflictsManager.vala

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,30 +59,53 @@ class Keyboard.Shortcuts.ConflictsManager : GLib.Object {
5959
// putting this in standard_shortcuts initially doesn't work because we don't create an instance of ConflictsManager
6060
if (standard_shortcuts == null) {
6161
standard_shortcuts = {
62+
/// The name of Ctrl + C shortcut: "Edit -> Copy"
6263
{new Shortcut.parse ("<Ctrl>C"), _("Edit"), _("Copy")},
64+
/// The name of Ctrl + V shortcut: "Edit -> Paste"
6365
{new Shortcut.parse ("<Ctrl>V"), _("Edit"), _("Paste")},
66+
/// The name of Ctrl + X shortcut: "Edit -> Cut"
6467
{new Shortcut.parse ("<Ctrl>X"), _("Edit"), _("Cut")},
68+
/// The name of Ctrl + Z shortcut: "Edit -> Undo"
6569
{new Shortcut.parse ("<Ctrl>Z"), _("Edit"), _("Undo")},
70+
/// The name of Ctrl + Y shortcut: "Edit -> Redo"
6671
{new Shortcut.parse ("<Ctrl>Y"), _("Edit"), _("Redo")},
72+
/// The name of Ctrl + F shortcut: "Edit -> Find"
6773
{new Shortcut.parse ("<Ctrl>F"), _("Edit"), _("Find")},
6874

75+
/// The name of Ctrl + A shortcut: "Selection -> Select All"
6976
{new Shortcut.parse ("<Ctrl>A"), _("Selection"), _("Select All")},
77+
/// The name of Ctrl + Right shortcut: "Selection -> Move Right by Word"
7078
{new Shortcut.parse ("<Shift>Right"), _("Selection"), _("Move Right by Word")},
79+
/// The name of Ctrl + Left shortcut: "Selection -> Move Left by Word"
7180
{new Shortcut.parse ("<Ctrl>Left"), _("Selection"), _("Move Left by Word")},
81+
/// The name of Shift + Right shortcut: "Selection -> Expand Selection"
7282
{new Shortcut.parse ("<Shift>Right"), _("Selection"), _("Expand Selection")},
83+
/// The name of Shift + Left shortcut: "Selection -> Shrink Selection"
7384
{new Shortcut.parse ("<Shift>Left"), _("Selection"), _("Shrink Selection")},
85+
/// The name of Shift + Ctrl + Right shortcut: "Selection -> Expand Selection by Word"
7486
{new Shortcut.parse ("<Shift><Ctrl>Right"), _("Selection"), _("Expand Selection by Word")},
87+
/// The name of Shift + Ctrl + Left shortcut: "Selection -> Shrink Selection by Word"
7588
{new Shortcut.parse ("<Shift><Ctrl>Left"), _("Selection"), _("Shrink Selection by Word")},
89+
/// The name of Shift + Up shortcut: "Selection -> Expand Selection Up"
7690
{new Shortcut.parse ("<Shift>Up"), _("Selection"), _("Expand Selection Up")},
91+
/// The name of Shift + Down shortcut: "Selection -> Expand Selection Down"
7792
{new Shortcut.parse ("<Shift>Down"), _("Selection"), _("Expand Selection Down")},
7893

94+
/// The name of Ctrl + S shortcut: "File -> Save"
7995
{new Shortcut.parse ("<Ctrl>S"), _("File"), _("Save")},
96+
/// The name of Ctrl + Shift + S shortcut: "File -> Save As"
8097
{new Shortcut.parse ("<Ctrl><Shift>S"), _("File"), _("Save As")},
98+
/// The name of Ctrl + N shortcut: "File -> New"
8199
{new Shortcut.parse ("<Ctrl>N"), _("File"), _("New")},
100+
/// The name of Ctrl + W shortcut: "File -> Close"
82101
{new Shortcut.parse ("<Ctrl>W"), _("File"), _("Close")},
102+
/// The name of Ctrl + T shortcut: "File -> New Tab"
83103
{new Shortcut.parse ("<Ctrl>T"), _("File"), _("New Tab")},
104+
/// The name of Ctrl + Shift + T shortcut: "File -> Restore Closed Tab"
84105
{new Shortcut.parse ("<Ctrl><Shift>T"), _("File"), _("Restore Closed Tab")},
85-
{new Shortcut.parse ("<Ctrl>R"), _("File"), _("Refresh")},
106+
/// The name of Ctrl + R shortcut: "File -> Refresh"
107+
{new Shortcut.parse ("<Ctrl>R"), _("File"), C_("keyboard", "Refresh")},
108+
/// The name of Ctrl + Q shortcut: "File -> Quit"
86109
{new Shortcut.parse ("<Ctrl>Q"), _("File"), _("Quit")},
87110
};
88111
}

0 commit comments

Comments
 (0)