From 409f245f60b173a3a44cc3b591aa34f7cc9f77da Mon Sep 17 00:00:00 2001 From: Peter Gantner Date: Mon, 20 Sep 2021 08:12:22 +0200 Subject: [PATCH] [ui] add descriptions in settings, rename developer mode (#53) see Issue #25 https://github.com/sailfishos-patches/patchmanager/issues/25 --- src/qml/SettingsPage.qml | 6 +- src/qml/settings-patchmanager.ts | 250 +++++++++++++---------- translations/settings-patchmanager-de.ts | 125 +++++------- translations/settings-patchmanager-en.ts | 123 +++++------ 4 files changed, 250 insertions(+), 254 deletions(-) diff --git a/src/qml/SettingsPage.qml b/src/qml/SettingsPage.qml index b4672d7a9..ee7341c39 100644 --- a/src/qml/SettingsPage.qml +++ b/src/qml/SettingsPage.qml @@ -10,19 +10,23 @@ Page { Column { width: parent.width + spacing: Theme.paddingMedium + PageHeader { title: qsTranslate("", "Settings") } TextSwitch { text: qsTranslate("", "Apply on boot") + description: qsTranslate("", "Apply all enabled patches when the system starts") checked: PatchManager.applyOnBoot onClicked: PatchManager.applyOnBoot = !PatchManager.applyOnBoot automaticCheck: false } TextSwitch { - text: qsTranslate("", "Developer mode") + text: qsTranslate("", "Allow incompatible patches") + description: qsTranslate("", "Apply patches which are not marked compatible with the installed Sailfish OS version. Note that this will not fix patches that are actually incompatible.") checked: PatchManager.developerMode onClicked: PatchManager.developerMode = !PatchManager.developerMode automaticCheck: false diff --git a/src/qml/settings-patchmanager.ts b/src/qml/settings-patchmanager.ts index 88b762554..0e2ebd0ca 100644 --- a/src/qml/settings-patchmanager.ts +++ b/src/qml/settings-patchmanager.ts @@ -4,316 +4,342 @@ - - + + About - + Patchmanager - + + Version: %1 + + + + Patchmanager allows system modification via patches. It provides a system daemon that is in charge of performing those patches, as well as a GUI, to control those operations and installation/removal of patches. - - + + Donate - - + + Developers - + %1's webpage - + %1's Twitter account - - + + Patch being applied - - + + Unapply patch - - + + Apply patch - - - Patch information + + + Load engine before applying patches - - - This patch is no available anymore. You won't be able to reinstall it. + + + Patch information - - Name + + + This patch is no available anymore. You won't be able to reinstall it. - - Maintainer + + Name - - - Description + + + Version - - Author + + Maintainer - - Compatible + + + Possible conflicts - - Browser + + + Description - - Camera + + + Patch log - - Calendar + + + No log yet - - Clock + + Author - - Contacts + + Compatible - - Email + + + Settings - - Gallery + + Unapply all patches - - Homescreen + + Load engine - - Media + + + Web catalog - - Messages + + Updates available - - Phone + + Restart preloaded services - - Silica + + Resolve failure - - Settings + + Installed patches - - Other + + This patch is not compatible with SailfishOS version! - - Disable developer mode + + Uninstalling patch %1 - - Enable developer mode + + Compatible with: - - - Web catalog + + Have possible conflicts - - Restart preloaded services + + Patch info - - Installed patches + + Unapply - - This patch is not compatible with SailfishOS version! + + Apply - - Uninstalling patch %1 - - - - + Uninstall - - + + No patches available - + Restart services - - Both preloaded services (dialer, messages) and the homescreen will now be restarted. Your device might be unusable for a short moment. - - - - - Preloaded services (dialer, messages) will now be restarted. These application might take time to load for a short moment. - - - - - The homescreen will now be restarted. Your device might be unusable for a short moment. + + Some services will now be restarted. Phone interface might take time to load for a short moment. - - + + Screenshots - + Hide search field - + Show search field - + %1 patches - + Tap to enter search query - + + Update available: %1 + + + + Problem in fetching patch data - + + Fetching patch information... + + + + Author: %1 - + Links - + Open discussion link - + Sources - + Files - + This file is not compatible with SailfishOS version! - + Install patch %1 - + [installed] - + [click to install] - + Compatible: %1 + + + Apply on boot + + + + + Apply all enabled patches when the system starts + + + + + Allow incompatible patches + + + + + Apply patches which are not marked compatible with the installed Sailfish OS version. Note that this will not fix patches that are actually incompatible. + + diff --git a/translations/settings-patchmanager-de.ts b/translations/settings-patchmanager-de.ts index c4a0091a9..8d3bade3a 100644 --- a/translations/settings-patchmanager-de.ts +++ b/translations/settings-patchmanager-de.ts @@ -1,6 +1,8 @@ - + + + - + @@ -8,39 +10,31 @@ Über Patchmanager - Apply patches - Patches anwenden + Patches anwenden - Patchmanager will automatically apply patches in 10 seconds. - Patchmanager wendet Patches automatisch in 10 Sekunden an. + Patchmanager wendet Patches automatisch in 10 Sekunden an. - Exit - Beenden + Beenden - Applying patches - Anwenden von Patches + Anwenden von Patches - Appled successfully! - Erfolgreich angewendet! + Erfolgreich angewendet! - Failed applying patches! - Fehler beim Anwenden von Patches! + Fehler beim Anwenden von Patches! - - Patchmanager Patchmanager @@ -98,7 +92,7 @@ Load engine before applying patches - + @@ -346,144 +340,133 @@ Kompatibel zu: %1 - Patch installed - Patch installiert + Patch installiert - Patch %1 installed - Patch %1 installiert + Patch %1 installiert - Patch removed - Patch entfernt + Patch entfernt - Patch %1 removed - Patch %1 entfernt + Patch %1 entfernt - Failed to install patch - Patch konnte nicht installiert werden + Patch konnte nicht installiert werden - Patch %1 installation failed - Patch %1 konnte nicht installiert werden + Patch %1 konnte nicht installiert werden - Failed to remove patch - Patch konnte nicht entfernt werden + Patch konnte nicht entfernt werden - Patch %1 removal failed - Patch %1 konnte nicht entfernt werden + Patch %1 konnte nicht entfernt werden - Update available - Aktualisierung verfügbar + Aktualisierung verfügbar - Patch %1 have update candidate - Aktualisierung für Patch %1 verfügbar + Aktualisierung für Patch %1 verfügbar - + Settings Einstellungen - + Apply on boot Beim Booten anwenden - + + Apply all enabled patches when the system starts + Wendet alle gewählten Patches beim Systemstart an + + + + Allow incompatible patches + Nicht kompatible Patches erlauben + + + + Apply patches which are not marked compatible with the installed Sailfish OS version. Note that this will not fix patches that are actually incompatible. + Patches andenden, die nicht als kompatibel mit der laufenden Sailfish OS-Version markiert sind. NB: Das behebt keine Fehler durch tatsächlich nichtkompatible patches. + + Developer mode - Entwickler-Modus + Entwickler-Modus Sections - browser - Browser + Browser - camera - Kamera + Kamera - calendar - Kalender + Kalender - clock - Uhr + Uhr - contacts - Kontakte + Kontakte - email - E-Mail + E-Mail - gallery - Gallerie + Gallerie - homescreen - Startbildschirm + Startbildschirm - media - Medien + Medien - messages - Nachrichten + Nachrichten - phone - Telefon + Telefon - silica - Silica + Silica - settings - Einstellungen + Einstellungen - - other - Andere + Andere - \ No newline at end of file + diff --git a/translations/settings-patchmanager-en.ts b/translations/settings-patchmanager-en.ts index f53142775..408c7b6c3 100644 --- a/translations/settings-patchmanager-en.ts +++ b/translations/settings-patchmanager-en.ts @@ -1,6 +1,8 @@ - + + + - + @@ -8,39 +10,31 @@ About - Apply patches - Apply patches + Apply patches - Patchmanager will automatically apply patches in 10 seconds. - Patchmanager will automatically apply patches in 10 seconds. + Patchmanager will automatically apply patches in 10 seconds. - Exit - Exit + Exit - Applying patches - Applying patches + Applying patches - Appled successfully! - Appled successfully! + Appled successfully! - Failed applying patches! - Failed applying patches! + Failed applying patches! - - Patchmanager Patchmanager @@ -346,144 +340,133 @@ Compatible: %1 - Patch installed - Patch installed + Patch installed - Patch %1 installed - Patch %1 installed + Patch %1 installed - Patch removed - Patch removed + Patch removed - Patch %1 removed - Patch %1 removed + Patch %1 removed - Failed to install patch - Failed to install patch + Failed to install patch - Patch %1 installation failed - Patch %1 installation failed + Patch %1 installation failed - Failed to remove patch - Failed to remove patch + Failed to remove patch - Patch %1 removal failed - Patch %1 removal failed + Patch %1 removal failed - Update available - Update available + Update available - Patch %1 have update candidate - Patch %1 have update candidate + Patch %1 have update candidate - + Settings Settings - + Apply on boot Apply on boot - + + Apply all enabled patches when the system starts + Apply all enabled patches when the system starts + + + + Allow incompatible patches + Allow incompatible patches + + + + Apply patches which are not marked compatible with the installed Sailfish OS version. Note that this will not fix patches that are actually incompatible. + Apply patches which are not marked compatible with the installed Sailfish OS version. Note that this will not fix patches that are actually incompatible. + + Developer mode - Developer mode + Developer mode Sections - browser - browser + browser - camera - camera + camera - calendar - calendar + calendar - clock - clock + clock - contacts - contacts + contacts - email - email + email - gallery - gallery + gallery - homescreen - homescreen + homescreen - media - media + media - messages - messages + messages - phone - phone + phone - silica - silica + silica - settings - settings + settings - - other - other + other - \ No newline at end of file +