Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 2.0.4, 2.0.5, and 2.1

stable i18n: allow i18n of drop-down menu items for status filter

Changeset 1fe10617b393

Parent 5d2c42106ace

by André Sintzoff

Changes to one file · Browse files at 1fe10617b393 Showing diff from parent 5d2c42106ace Diff from another changeset...

 
734
735
736
737
 
738
739
740
741
 
742
743
744
745
 
746
747
 
748
749
 
750
751
 
752
753
 
754
755
 
756
757
 
758
759
 
760
761
762
 
782
783
784
785
 
786
787
788
 
734
735
736
 
737
738
739
740
741
742
743
744
745
 
746
747
 
748
749
 
750
751
 
752
753
 
754
755
 
756
757
 
758
759
 
760
761
762
763
 
783
784
785
 
786
787
788
789
@@ -734,29 +734,30 @@
   class StatusType(object):   preferredOrder = 'MAR!?ICS' - def __init__(self, name, icon, desc, uilabel): + def __init__(self, name, icon, desc, uilabel, trname):   self.name = name   self.icon = icon   self.desc = desc   self.uilabel = uilabel + self.trname = trname    statusTypes = {   'M' : StatusType('modified', 'menucommit.ico', _('%s is modified'), - 'status.modified'), + 'status.modified', _('modified')),   'A' : StatusType('added', 'fileadd.ico', _('%s is added'), - 'status.added'), + 'status.added', _('added')),   'R' : StatusType('removed', 'filedelete.ico', _('%s is removed'), - 'status.removed'), + 'status.removed', _('removed')),   '?' : StatusType('unknown', 'shelve.ico', _('%s is not tracked (unknown)'), - 'status.unknown'), + 'status.unknown', _('unknown')),   '!' : StatusType('deleted', 'menudelete.ico', _('%s is missing!'), - 'status.deleted'), + 'status.deleted', _('deleted')),   'I' : StatusType('ignored', 'ignore.ico', _('%s is ignored'), - 'status.ignored'), + 'status.ignored', _('ignored')),   'C' : StatusType('clean', '', _('%s is not modified (clean)'), - 'status.clean'), + 'status.clean', _('clean')),   'S' : StatusType('subrepo', 'hg.ico', _('%s is a dirty subrepo'), - 'status.subrepo'), + 'status.subrepo', _('subrepo')),  }     @@ -782,7 +783,7 @@
  menu = QMenu(self)   for c in self._TYPES:   st = statusTypes[c] - a = menu.addAction('%s %s' % (c, st.name)) + a = menu.addAction('%s %s' % (c, st.trname))   a.setCheckable(True)   a.setChecked(c in text)   a.toggled.connect(self._update)