diff --git a/src/sakia/gui/navigation/txhistory/table_model.py b/src/sakia/gui/navigation/txhistory/table_model.py index bec63c2afe71fe270d1c34a8a03c25f25d161d64..95af6f85fb140878f43640d1bd91e0838d0b5639 100644 --- a/src/sakia/gui/navigation/txhistory/table_model.py +++ b/src/sakia/gui/navigation/txhistory/table_model.py @@ -10,7 +10,7 @@ from PyQt5.QtCore import ( QLocale, QModelIndex, QT_TRANSLATE_NOOP, -) + QCoreApplication) from PyQt5.QtGui import QFont, QColor from sakia.data.entities import Transaction from sakia.constants import MAX_CONFIRMATIONS @@ -342,11 +342,11 @@ class HistoryTableModel(QAbstractTableModel): if orientation == Qt.Horizontal and role == Qt.DisplayRole: if HistoryTableModel.columns_types[section] == "amount": dividend, base = self.blockchain_processor.last_ud(self.app.currency) - header = "{:}".format(HistoryTableModel.columns_headers[section]) + header = "{:}".format(QCoreApplication.translate("HistoryTableModel", HistoryTableModel.columns_headers[section])) if self.app.current_ref.base_str(base): header += " ({:})".format(self.app.current_ref.base_str(base)) return header - return HistoryTableModel.columns_headers[section] + return QCoreApplication.translate("HistoryTableModel", HistoryTableModel.columns_headers[section]) def data(self, index, role): row = index.row()