mirror of
https://github.com/redstrate/Novus.git
synced 2025-06-08 14:17:45 +00:00
exlpart: Support localization
This commit is contained in:
parent
d3dfb9bcc0
commit
e49ebcea33
2 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,7 @@ add_library(exlpart STATIC)
|
|||
target_sources(exlpart PRIVATE exlpart.cpp)
|
||||
target_link_libraries(exlpart
|
||||
PUBLIC
|
||||
KF6::I18n
|
||||
Physis::Physis
|
||||
Qt6::Core
|
||||
Qt6::Widgets)
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include "exlpart.h"
|
||||
|
||||
#include <KLocalizedString>
|
||||
#include <QFile>
|
||||
#include <QJsonArray>
|
||||
#include <QJsonDocument>
|
||||
|
@ -31,7 +32,7 @@ void EXLPart::load(physis_Buffer file)
|
|||
m_tableWidget->setColumnCount(2);
|
||||
m_tableWidget->setRowCount(exl.entry_count);
|
||||
|
||||
m_tableWidget->setHorizontalHeaderLabels({QStringLiteral("Key"), QStringLiteral("Value")});
|
||||
m_tableWidget->setHorizontalHeaderLabels({i18nc("@title:column", "Key"), i18nc("@title:column", "Value")});
|
||||
|
||||
for (int i = 0; i < exl.entry_count; i++) {
|
||||
auto keyItem = new QTableWidgetItem(QLatin1String(exl.entry_keys[i]));
|
||||
|
|
Loading…
Add table
Reference in a new issue