From 49b4c339dcc18be815dd1e7a61330d56e110291f Mon Sep 17 00:00:00 2001 From: vtexier <vit@free.fr> Date: Thu, 5 Mar 2020 23:38:59 +0100 Subject: [PATCH] [fix] fix txhistory table model translation --- src/sakia/gui/navigation/txhistory/table_model.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sakia/gui/navigation/txhistory/table_model.py b/src/sakia/gui/navigation/txhistory/table_model.py index bec63c2a..95af6f85 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() -- GitLab