diff --git a/widgets/settings/settingsdialog.cpp b/widgets/settings/settingsdialog.cpp
index 2cc4326..7d787b0 100644
--- a/widgets/settings/settingsdialog.cpp
+++ b/widgets/settings/settingsdialog.cpp
@@ -851,7 +851,7 @@ LauncherOptionPage::LauncherOptionPage(QWidget *parentWidget)
{
}
-LauncherOptionPage::LauncherOptionPage(const QString &tool, QWidget *parentWidget)
+LauncherOptionPage::LauncherOptionPage(const QString &tool, const QString &toolName, const QString &windowTitle, QWidget *parentWidget)
: QObject(parentWidget)
, LauncherOptionPageBase(parentWidget)
, m_process(&Launcher::toolProcess(tool))
@@ -859,6 +859,8 @@ LauncherOptionPage::LauncherOptionPage(const QString &tool, QWidget *parentWidge
, m_restoreArgsAction(nullptr)
, m_kill(false)
, m_tool(tool)
+ , m_toolName(toolName)
+ , m_windowTitle(windowTitle)
{
}
@@ -873,10 +875,12 @@ QWidget *LauncherOptionPage::setupWidget()
// adjust labels to use name of additional tool instead of "Syncthing"
const auto isSyncthing = m_tool.isEmpty();
if (!isSyncthing) {
- widget->setWindowTitle(tr("%1-launcher").arg(m_tool));
- ui()->enabledCheckBox->setText(tr("Launch %1 when starting the tray icon").arg(m_tool));
- ui()->syncthingPathLabel->setText(tr("%1 executable").arg(m_tool));
- ui()->logLabel->setText(tr("%1 log (interleaved stdout/stderr)").arg(m_tool));
+ widget->setWindowTitle(m_windowTitle.isEmpty() ? tr("%1-launcher").arg(m_tool) : m_windowTitle);
+ ui()->enabledCheckBox->setText(tr("Launch %1 when starting the tray icon").arg(m_toolName.isEmpty() ? m_tool : m_toolName));
+ auto toolNameStartingSentence = m_toolName.isEmpty() ? m_tool : m_toolName;
+ toolNameStartingSentence[0] = toolNameStartingSentence[0].toUpper();
+ ui()->syncthingPathLabel->setText(tr("%1 executable").arg(toolNameStartingSentence));
+ ui()->logLabel->setText(tr("%1 log (interleaved stdout/stderr)").arg(toolNameStartingSentence));
// hide "consider for reconnect" and "show start/stop button on tray" checkboxes for tools
ui()->considerForReconnectCheckBox->setVisible(false);
@@ -1341,9 +1345,10 @@ SettingsDialog::SettingsDialog(Data::SyncthingConnection *connection, QWidget *p
category = new OptionCategory(this);
category->setDisplayName(tr("Startup"));
- category->assignPages({ new AutostartOptionPage, new LauncherOptionPage, new LauncherOptionPage(QStringLiteral("Inotify"))
+ category->assignPages({ new AutostartOptionPage, new LauncherOptionPage,
+ new LauncherOptionPage(QStringLiteral("Inotify"), tr("additional tool"), tr("Extra launcher"))
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
- ,
+ ,
new SystemdOptionPage
#endif
});
diff --git a/widgets/settings/settingsdialog.h b/widgets/settings/settingsdialog.h
index fff4400..b81e9d7 100644
--- a/widgets/settings/settingsdialog.h
+++ b/widgets/settings/settingsdialog.h
@@ -105,7 +105,8 @@ class QT_UTILITIES_EXPORT LauncherOptionPage : public QObject, public ::QtUtilit
public:
LauncherOptionPage(QWidget *parentWidget = nullptr);
- LauncherOptionPage(const QString &tool, QWidget *parentWidget = nullptr);
+ LauncherOptionPage(
+ const QString &tool, const QString &toolName = QString(), const QString &windowTitle = QString(), QWidget *parentWidget = nullptr);
~LauncherOptionPage() override;
bool apply() override;
void reset() override;
@@ -129,7 +130,7 @@ private:
Data::SyncthingLauncher *const m_launcher;
QAction *m_restoreArgsAction;
bool m_kill;
- QString m_tool;
+ QString m_tool, m_toolName, m_windowTitle;
};
#ifdef LIB_SYNCTHING_CONNECTOR_SUPPORT_SYSTEMD
diff --git a/widgets/translations/syncthingwidgets_cs_CZ.ts b/widgets/translations/syncthingwidgets_cs_CZ.ts
index 2f10827..7bbda7e 100644
--- a/widgets/translations/syncthingwidgets_cs_CZ.ts
+++ b/widgets/translations/syncthingwidgets_cs_CZ.ts
@@ -684,7 +684,7 @@
-
+
@@ -699,77 +699,77 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -888,22 +888,32 @@
QtGui::SettingsDialog
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
@@ -1063,8 +1073,8 @@ This dialog closes automatically when the process finally terminates.
-
-
+
+
@@ -1104,22 +1114,22 @@ This dialog closes automatically when the process finally terminates.
-
+
-
+
-
+
-
+
@@ -1153,7 +1163,7 @@ This dialog closes automatically when the process finally terminates.
QtGui::WebViewOptionPage
-
+
@@ -1183,7 +1193,7 @@ This dialog closes automatically when the process finally terminates.
-
+
diff --git a/widgets/translations/syncthingwidgets_de_DE.ts b/widgets/translations/syncthingwidgets_de_DE.ts
index 1e1e315..f2b2c1c 100644
--- a/widgets/translations/syncthingwidgets_de_DE.ts
+++ b/widgets/translations/syncthingwidgets_de_DE.ts
@@ -684,7 +684,7 @@
-
+
Stoppen
@@ -699,77 +699,81 @@
Log folgen
-
+
%1-Starter
-
+
Starte %1 beim Starten des Tray-Icons
-
+
+ %1-Starter {1 ?}
+
+
+
Ausführbare Datei von %1
-
+
- %1-Log (stdout/stderr)
+ Log von %1 (stdout/stderr)
-
+
Auf Vorgabe zurücksetzen
-
+
%1 wurde mit dem Statuscode %2 beendet
-
+
%1 ist mit dem Statuscode %2 abgestürzt
-
+
Start fehlgeschlagen (z. B. weil Programmdatei nicht existiert oder nicht ausführbar ist)
-
+
Prozess ist abgestürzt
-
+
Time-out
-
+
Lesefehler
-
+
Schreibfehler
-
+
unbekannter Fehler
-
+
Beim Ausführen von %1 ist ein Fehler aufgetreten: %2
-
+
Töten
@@ -888,22 +892,36 @@
QtGui::SettingsDialog
-
+
-
+
Weboberfläche
-
+
Starten
-
+
+ Zusatztool
+
+
+
+
+ Extra-Starter
+
+
+
+
+ Zusatztool
+
+
+
Einstellungen
@@ -1069,8 +1087,8 @@ Dieser Dialog schließt sich automatisch, wenn der Prozess beendet wird.
-
-
+
+
unbekannt
@@ -1104,22 +1122,22 @@ Dieser Dialog schließt sich automatisch, wenn der Prozess beendet wird.Stoppen
-
+
Es ist nicht möglich, den Start-/Stop-Button für den Systemd-Dienst und den internen Starter gleichzeitig anzugeigen. Wenn verfügbar, wird der Button den Systemd-Dienst kontrollieren.
-
+
Es ist nicht möglich, den Status des Systemd-Dienstes und den des internen Starters gleichzeitig für Verbindungsveruche einzubeziehen. Wenn verfügbar, wird der Status des Systemd-Dienstes verwendet.
-
+
angegebene Unit entweder nicht geladen oder existiert nicht
-
+
seit
@@ -1153,7 +1171,7 @@ Dieser Dialog schließt sich automatisch, wenn der Prozess beendet wird.QtGui::WebViewOptionPage
-
+
Allgemein
@@ -1183,7 +1201,7 @@ Dieser Dialog schließt sich automatisch, wenn der Prozess beendet wird.Lasse Weboberfläche im Hintgergrund weiter offen, wenn Fenster nicht offen
-
+
Syncthing Tray wurde nicht mit Unterstützung für die eingebaute Anzeige der Weboberfläche unter Verwendung von Qt WebKit oder Qt WebEngine gebaut.
diff --git a/widgets/translations/syncthingwidgets_en_US.ts b/widgets/translations/syncthingwidgets_en_US.ts
index 387435f..c5435d7 100644
--- a/widgets/translations/syncthingwidgets_en_US.ts
+++ b/widgets/translations/syncthingwidgets_en_US.ts
@@ -682,7 +682,7 @@
-
+
@@ -697,77 +697,77 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
@@ -886,22 +886,32 @@
QtGui::SettingsDialog
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
@@ -1057,8 +1067,8 @@ This dialog closes automatically when the process finally terminates.
-
-
+
+
@@ -1098,22 +1108,22 @@ This dialog closes automatically when the process finally terminates.
-
+
-
+
-
+
-
+
@@ -1147,7 +1157,7 @@ This dialog closes automatically when the process finally terminates.
QtGui::WebViewOptionPage
-
+
@@ -1177,7 +1187,7 @@ This dialog closes automatically when the process finally terminates.
-
+