1. André Sintzoff
  2. thg-sintzoff

Commits

Peer Sommerlund  committed d1210e0

pbranch: make column headers translatable

  • Participants
  • Parent commits 75b2340
  • Branches stable

Comments (0)

Files changed (1)

File tortoisehg/hgqt/pbranch.py

View file
     TODO: Should be extended to list all branches
     """
     _columns = ['Graph', 'Name', 'Status', 'Title', 'Message',]
+    _headers = (_('Graph'), _('Name'), _('Status'), _('Title'), _('Message'))
 
     def __init__(self, model, wd_branch="", parent=None):
         QAbstractTableModel.__init__(self, parent)
     def headerData(self, section, orientation, role):
         if orientation == Qt.Horizontal:
             if role == Qt.DisplayRole:
-                return QVariant(self._columns[section])
+                return QVariant(self._headers[section])
             if role == Qt.TextAlignmentRole:
                 return QVariant(Qt.AlignLeft)
         return nullvariant