1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-06-07 13:47:45 +00:00

Improve wording in some labels

This commit is contained in:
Joshua Goins 2024-05-25 10:26:26 -04:00
parent 2720e5fd7a
commit 04aab49f34
4 changed files with 26 additions and 24 deletions

View file

@ -5,6 +5,7 @@
#include <KConfig>
#include <KConfigGroup>
#include <KLocalizedString>
#include <QFileDialog>
#include <QFormLayout>
#include <QGroupBox>
@ -14,12 +15,12 @@
SettingsWindow::SettingsWindow(QWidget *parent)
: QWidget(parent)
{
setWindowTitle(QStringLiteral("Settings"));
setWindowTitle(i18n("Settings"));
auto layout = new QVBoxLayout();
setLayout(layout);
auto sourcesBox = new QGroupBox(QStringLiteral("Sources Output"));
auto sourcesBox = new QGroupBox(i18n("Sources Output"));
layout->addWidget(sourcesBox);
auto sourcesLayout = new QFormLayout();
@ -46,9 +47,9 @@ SettingsWindow::SettingsWindow(QWidget *parent)
});
sourcesBoxLayout->addWidget(selectSourceUrlButton);
sourcesLayout->addRow(QStringLiteral("Sources Directory"), sourcesBoxLayoutContainer);
sourcesLayout->addRow(i18n("Sources directory:"), sourcesBoxLayoutContainer);
auto penumbraBox = new QGroupBox(QStringLiteral("Penumbra Output"));
auto penumbraBox = new QGroupBox(i18n("Penumbra Output"));
layout->addWidget(penumbraBox);
auto penumbraLayout = new QFormLayout();
@ -72,9 +73,9 @@ SettingsWindow::SettingsWindow(QWidget *parent)
});
outputBoxLayout->addWidget(selectHomeUrlButton);
penumbraLayout->addRow(QStringLiteral("Output Directory"), outputBoxLayoutContainer);
penumbraLayout->addRow(i18n("Output directory:"), outputBoxLayoutContainer);
auto blenderBox = new QGroupBox(QStringLiteral("Blender"));
auto blenderBox = new QGroupBox(i18n("Blender"));
layout->addWidget(blenderBox);
auto blenderLayout = new QFormLayout();
@ -98,17 +99,17 @@ SettingsWindow::SettingsWindow(QWidget *parent)
});
blenderBoxLayout->addWidget(selectBlenderButton);
blenderLayout->addRow(QStringLiteral("Blender Path"), blenderBoxLayoutContainer);
blenderLayout->addRow(i18n("Blender path:"), blenderBoxLayoutContainer);
auto bottomButtonLayout = new QHBoxLayout();
layout->addLayout(bottomButtonLayout);
auto cancelButton = new QPushButton(QIcon::fromTheme(QStringLiteral("dialog-close")), QStringLiteral("Cancel"));
auto cancelButton = new QPushButton(QIcon::fromTheme(QStringLiteral("dialog-close")), i18n("Cancel"));
connect(cancelButton, &QPushButton::clicked, this, &QWidget::close);
bottomButtonLayout->addWidget(cancelButton);
bottomButtonLayout->addStretch(1);
auto saveButton = new QPushButton(QIcon::fromTheme(QStringLiteral("dialog-ok")), QStringLiteral("Apply"));
auto saveButton = new QPushButton(QIcon::fromTheme(QStringLiteral("dialog-ok")), i18n("Apply"));
connect(saveButton, &QPushButton::clicked, this, [this] {
applySettings();
close();

View file

@ -104,13 +104,13 @@ void MainWindow::setupFileMenu(QMenu *menu)
auto downloadList = menu->addAction(i18nc("@action:inmenu", "Download Definitions…"));
downloadList->setIcon(QIcon::fromTheme(QStringLiteral("download-symbolic")));
connect(downloadList, &QAction::triggered, [this] {
const int ret =
QMessageBox::information(this,
i18nc("@title:window", "Download Confirmation"),
i18n("This will download the definitions from the <a "
"href=\"https://github.com/xivapi/SaintCoinach\">SaintCoinach repository on GitHub</a>.<br><br>Continue?"),
QMessageBox::Ok | QMessageBox::Cancel,
QMessageBox::Ok);
const int ret = QMessageBox::information(
this,
i18nc("@title:window", "Download Confirmation"),
i18n("Novus will download the definitions from the <a "
"href=\"https://github.com/xivapi/SaintCoinach\">SaintCoinach repository on GitHub</a>.<br><br>Would you still like to continue?"),
QMessageBox::Ok | QMessageBox::Cancel,
QMessageBox::Ok);
if (ret != QMessageBox::Ok) {
return;

View file

@ -178,13 +178,14 @@ void MainWindow::setupFileMenu(QMenu *menu)
auto downloadList = menu->addAction(i18nc("@action:inmenu", "Download Path List…"));
downloadList->setIcon(QIcon::fromTheme(QStringLiteral("download-symbolic")));
connect(downloadList, &QAction::triggered, [this] {
const int ret = QMessageBox::information(this,
i18nc("@title:window", "Download Confirmation"),
i18n("This will download the path list from <a "
"href=\"https://rl2.perchbird.dev/\">ResLogger</a>.this process usually takes a few minutes. The program "
"may freeze. Please keep it open until the operation is finished.<br><br>Continue?"),
QMessageBox::Ok | QMessageBox::Cancel,
QMessageBox::Ok);
const int ret =
QMessageBox::information(this,
i18nc("@title:window", "Download Confirmation"),
i18n("Novus will download the path list from <a "
"href=\"https://rl2.perchbird.dev/\">ResLogger</a>.this process usually takes a few minutes. The program "
"may freeze. Please keep it open until the operation is finished.<br><br>Would you still like to continue?"),
QMessageBox::Ok | QMessageBox::Cancel,
QMessageBox::Ok);
if (ret != QMessageBox::Ok) {
return;

View file

@ -92,7 +92,7 @@ MainWindow::MainWindow()
auto gameCombo = new QComboBox();
gameCombo->setMaximumWidth(175);
formLayout->addRow(i18n("Current Game"), gameCombo);
formLayout->addRow(i18n("Current game"), gameCombo);
formLayout->setFieldGrowthPolicy(QFormLayout::FieldsStayAtSizeHint);
gameCombo->addItem(game.readEntry("GameDir"));