--- a/src/InventoryMiscs.cpp Sun Jun 19 19:42:29 2022 +0200 +++ b/src/InventoryMiscs.cpp Mon Jun 20 19:55:23 2022 +0200 @@ -109,21 +109,21 @@ query.first(); for (int ridx = 0 ; ridx < query.size() ; ridx++ ) { this->tableMiscs->setItem(ridx, 0, new QTableWidgetItem(query.value(1).toString())); /* Name */ - this->tableMiscs->setItem(ridx, 1, new QTableWidgetItem(misc_types[query.value(2).toInt()])); /* Type */ - this->tableMiscs->setItem(ridx, 2, new QTableWidgetItem(misc_uses[query.value(3).toInt()])); /* Use */ + this->tableMiscs->setItem(ridx, 1, new QTableWidgetItem(QCoreApplication::translate("MiscType", g_misc_types[query.value(2).toInt()])));/* Type */ + this->tableMiscs->setItem(ridx, 2, new QTableWidgetItem(QCoreApplication::translate("MiscUse", g_misc_uses[query.value(3).toInt()]))); /* Use */ w = QString(""); /* Use time */ if (query.value(4).toInt() > 0) { if (query.value(4).toInt() == 1) - w = QString("1 minute"); + w = QString(tr("1 minute")); else if (query.value(4).toInt() < 180) - w = QString("%1 minutes").arg(query.value(4).toInt()); + w = QString(tr("%1 minutes")).arg(query.value(4).toInt()); else if (query.value(4).toInt() < 1440) - w = QString("%1 hours").arg(query.value(4).toInt() / 60); + w = QString(tr("%1 hours")).arg(query.value(4).toInt() / 60); else if (query.value(4).toInt() == 1440) - w = QString("1 day"); + w = QString(tr("1 day")); else - w = QString("%1 days").arg(query.value(4).toInt() / 1440); + w = QString(tr("%1 days")).arg(query.value(4).toInt() / 1440); } QTableWidgetItem *item = new QTableWidgetItem(w); item->setTextAlignment(Qt::AlignRight|Qt::AlignVCenter);