Commits

Yuya Nishihara  committed ae5dd4b

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

Also removes ellipsis from "Settings" according to UX guideline.

  • Participants
  • Parent commits c63ec65
  • Branches stable

Comments (0)

Files changed (2)

File tortoisehg/hgqt/reporegistry.py

         self.tview.model().write(sfile)
 
     def _action_defs(self):
-        a = [("reloadRegistry", _("Refresh repository list"), 'view-refresh',
+        a = [("reloadRegistry", _("&Refresh Repository List"), 'view-refresh',
                 _("Refresh the Repository Registry list"), self.reloadModel),
-             ("open", _("Open"), 'thg-repository-open',
+             ("open", _("&Open"), 'thg-repository-open',
                 _("Open the repository in a new tab"), self.open),
-             ("openAll", _("Open All"), 'thg-repository-open',
+             ("openAll", _("&Open All"), 'thg-repository-open',
                 _("Open all repositories in new tabs"), self.openAll),
-             ("newGroup", _("New Group"), 'new-group',
+             ("newGroup", _("New &Group"), 'new-group',
                 _("Create a new group"), self.newGroup),
-             ("rename", _("Rename"), None,
+             ("rename", _("Re&name"), None,
                 _("Rename the entry"), self.startRename),
-             ("settings", _("Settings..."), 'settings_user',
+             ("settings", _("Settin&gs"), 'settings_user',
                 _("View the repository's settings"), self.startSettings),
-             ("remove", _("Remove from registry"), 'menudelete',
+             ("remove", _("Re&move from Registry"), 'menudelete',
                 _("Remove the node and all its subnodes."
                   " Repositories are not deleted from disk."),
                   self.removeSelected),
-             ("clone", _("Clone..."), 'hg-clone',
+             ("clone", _("Clon&e..."), 'hg-clone',
                 _("Clone Repository"), self.cloneRepo),
-             ("explore", _("Explore"), 'system-file-manager',
+             ("explore", _("E&xplore"), 'system-file-manager',
                 _("Open the repository in a file browser"), self.explore),
-             ("terminal", _("Terminal"), 'utilities-terminal',
+             ("terminal", _("&Terminal"), 'utilities-terminal',
                 _("Open a shell terminal in the repository root"), self.terminal),
-             ("add", _("Add repository..."), 'hg',
+             ("add", _("&Add Repository..."), 'hg',
                 _("Add a repository to this group"), self.addNewRepo),
-             ("addsubrepo", _("Add a subrepository..."), 'thg-add-subrepo',
+             ("addsubrepo", _("A&dd Subrepository..."), 'thg-add-subrepo',
                 _("Convert an existing repository into a subrepository"),
                 self.addSubrepo),
-             ("copypath", _("Copy path"), '',
+             ("copypath", _("Copy &Path"), '',
                 _("Copy the root path of the repository to the clipboard"),
                 self.copyPath),
-             ("sortbyname", _("Sort by name"), '',
+             ("sortbyname", _("Sort by &Name"), '',
                 _("Sort the group by short name"), self.sortbyname),
-             ("sortbypath", _("Sort by path"), '',
+             ("sortbypath", _("Sort by &Path"), '',
                 _("Sort the group by full path"), self.sortbypath),
-             ("sortbyhgsub", _("Sort by .hgsub"), '',
+             ("sortbyhgsub", _("&Sort by .hgsub"), '',
                 _("Order the subrepos as in .hgsub"), self.sortbyhgsub),
              ]
         return a

File tortoisehg/hgqt/repotreeitem.py

         acts = ['open', 'clone', 'addsubrepo', None, 'explore',
                 'terminal', 'copypath', None, 'rename', 'remove']
         if self.childCount() > 0:
-            acts.extend([None, (_('Sort'), ['sortbyname', 'sortbyhgsub'])])
+            acts.extend([None, (_('&Sort'), ['sortbyname', 'sortbyhgsub'])])
         acts.extend([None, 'settings'])
         return acts
 
             acts = ['open', 'clone', 'addsubrepo', None, 'explore',
                     'terminal', 'copypath']
             if self.childCount() > 0:
-                acts.extend([None, (_('Sort'), ['sortbyname', 'sortbyhgsub'])])
+                acts.extend([None, (_('&Sort'), ['sortbyname', 'sortbyhgsub'])])
             acts.extend([None, 'settings'])
             return acts
 
 
     def menulist(self):
         return ['openAll', 'add', None, 'newGroup', None, 'rename', 'remove',
-            None, (_('Sort'), ['sortbyname', 'sortbypath']), None,
+            None, (_('&Sort'), ['sortbyname', 'sortbypath']), None,
             'reloadRegistry']
 
     def flags(self):
 
     def menulist(self):
         return ['openAll', 'add', None, 'newGroup', None, 'rename',
-            None, (_('Sort'), ['sortbyname', 'sortbypath']), None,
+            None, (_('&Sort'), ['sortbyname', 'sortbypath']), None,
             'reloadRegistry']
 
     def undump(self, xr):