# HG changeset patch # User Torsten Lilge # Date 1669544860 -3600 # Node ID 9d9b31c8458b01bac05a92510ecde28575c380f2 # Parent 26f1ef8fa1ceb43644ca4f90175fd3c96554fa80 fix missing translations of workspace header * workspace-model.cc (headerData): use tr() here again diff -r 26f1ef8fa1ce -r 9d9b31c8458b libgui/src/workspace-model.cc --- a/libgui/src/workspace-model.cc Sun Nov 27 11:27:32 2022 +0100 +++ b/libgui/src/workspace-model.cc Sun Nov 27 11:27:40 2022 +0100 @@ -44,6 +44,8 @@ workspace_model::workspace_model (QObject *p) : QAbstractTableModel (p) { + // The header names. Use tr () again when accessing them since + // the translator si not yet initialized when this ctor is called m_columnNames.append (tr ("Name")); m_columnNames.append (tr ("Class")); m_columnNames.append (tr ("Dimension")); @@ -92,7 +94,7 @@ int role) const { if (orientation == Qt::Horizontal && role == Qt::DisplayRole) - return m_columnNames[section]; + return tr (m_columnNames[section].toStdString ().data ()); else return QVariant (); }