Commits

Yuya Nishihara committed 3c9d393

filedialogs: title-caps context menu strings and add access keys

Also removes ellipsis from direct actions.

  • Participants
  • Parent commits d3376e9
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/filedialogs.py

         if len(selection) == 2:
             if self.dualmenu is None:
                 self.dualmenu = menu = QMenu(self)
-                a = menu.addAction(_('Diff selected changesets...'))
+                a = menu.addAction(_('&Diff Selected Changesets'))
                 a.triggered.connect(self.onVisualDiffRevs)
-                a = menu.addAction(_('Diff selected file revisions...'))
+                a = menu.addAction(_('Diff Selected &File Revisions'))
                 a.setIcon(qtlib.getmenuicon('visualdiff'))
                 a.triggered.connect(self.onVisualDiffFileRevs)
             else:
                 menu = self.dualmenu
         elif self.menu is None:
             self.menu = menu = QMenu(self)
-            a = menu.addAction(_('Diff changeset to parent...'))
+            a = menu.addAction(_('&Diff Changeset to Parent'))
             a.setIcon(qtlib.getmenuicon('visualdiff'))
             a.triggered.connect(self.onVisualDiff)
-            a = menu.addAction(_('Diff changeset to local...'))
+            a = menu.addAction(_('Diff Changeset to &Local'))
             a.setIcon(qtlib.getmenuicon('ldiff'))
             a.triggered.connect(self.onVisualDiffToLocal)
             menu.addSeparator()
-            a = menu.addAction(_('Diff file to parent...'))
+            a = menu.addAction(_('Diff &File to Parent'))
             a.setIcon(qtlib.getmenuicon('visualdiff'))
             a.triggered.connect(self.onVisualDiffFile)
-            a = menu.addAction(_('Diff file to local...'))
+            a = menu.addAction(_('Diff File to Lo&cal'))
             a.setIcon(qtlib.getmenuicon('ldiff'))
             a.triggered.connect(self.onVisualDiffFileToLocal)
             menu.addSeparator()
-            a = menu.addAction(_('View at revision...'))
+            a = menu.addAction(_('&View at Revision'))
             a.setIcon(qtlib.getmenuicon('view-at-revision'))
             a.triggered.connect(self.onViewFileAtRevision)
-            a = menu.addAction(_('Save at revision...'))
+            a = menu.addAction(_('&Save at Revision...'))
             a.triggered.connect(self.onSaveFileAtRevision)
-            a = menu.addAction(_('Edit local'))
+            a = menu.addAction(_('&Edit Local'))
             a.setIcon(qtlib.getmenuicon('edit-file'))
             a.triggered.connect(self.onEditLocal)
-            a = menu.addAction(_('Revert to revision...'))
+            a = menu.addAction(_('&Revert to Revision...'))
             a.setIcon(qtlib.getmenuicon('hg-revert'))
             a.triggered.connect(self.onRevertFileToRevision)
         else:
             a.setIcon(qtlib.getmenuicon('ldiff'))
             a.triggered.connect(self.onVisualDiffToLocal)
             menu.addSeparator()
-            a = menu.addAction(_('Diff file to parent...'))
+            a = menu.addAction(_('Diff &File to Parent'))
             a.setIcon(qtlib.getmenuicon('visualdiff'))
             a.triggered.connect(self.onVisualDiffFile)
-            a = menu.addAction(_('Diff file to local...'))
+            a = menu.addAction(_('Diff File to Lo&cal'))
             a.setIcon(qtlib.getmenuicon('ldiff'))
             a.triggered.connect(self.onVisualDiffFileToLocal)
             menu.addSeparator()
-            a = menu.addAction(_('View at revision...'))
+            a = menu.addAction(_('&View at Revision'))
             a.setIcon(qtlib.getmenuicon('view-at-revision'))
             a.triggered.connect(self.onViewFileAtRevision)
-            a = menu.addAction(_('Save at revision...'))
+            a = menu.addAction(_('&Save at Revision'))
             a.triggered.connect(self.onSaveFileAtRevision)
-            a = menu.addAction(_('Edit local'))
+            a = menu.addAction(_('&Edit Local'))
             a.setIcon(qtlib.getmenuicon('edit-file'))
             a.triggered.connect(self.onEditLocal)
-            a = menu.addAction(_('Revert to revision...'))
+            a = menu.addAction(_('&Revert to Revision...'))
             a.setIcon(qtlib.getmenuicon('hg-revert'))
             a.triggered.connect(self.onRevertFileToRevision)
         self.selection = selection