From 5a69783ffb90803ef4e48cc8f20b910da24d200b Mon Sep 17 00:00:00 2001 From: Emir SARI Date: Tue, 25 Jul 2023 17:06:52 +0000 Subject: [PATCH] Adopt string casings according to HIG --- src/error.cpp | 14 +++++++------- src/qml/Desktop/DesktopPlayerControls.qml | 2 +- src/qml/Desktop/HeaderBar.qml | 2 +- src/qml/DownloadListPage.qml | 2 +- src/qml/EpisodeListPage.qml | 2 +- src/qml/FeedDetailsPage.qml | 2 +- src/qml/GlobalSearchField.qml | 2 +- src/qml/Mobile/MobilePlayerControls.qml | 10 +++++----- 8 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/error.cpp b/src/error.cpp index e36aefef..ea347ff4 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -45,21 +45,21 @@ QString Error::description() const { switch (type) { case Error::Type::FeedUpdate: - return i18n("Podcast Update Error"); + return i18n("Podcast update error"); case Error::Type::MediaDownload: - return i18n("Media Download Error"); + return i18n("Media download error"); case Error::Type::MeteredNotAllowed: - return i18n("Update Not Allowed on Metered Connection"); + return i18n("Update not allowed on metered connection"); case Error::Type::InvalidMedia: - return i18n("Invalid Media File"); + return i18n("Invalid media file"); case Error::Type::DiscoverError: - return i18n("Nothing Found"); + return i18n("Nothing found"); case Error::Type::StorageMoveError: return i18n("Error moving storage path"); case Error::Type::SyncError: - return i18n("Error Syncing Feed and/or Episode Status"); + return i18n("Error syncing feed and/or episode status"); case Error::Type::MeteredStreamingNotAllowed: - return i18n("No Connection or Streaming Not Allowed on Metered Connection"); + return i18n("Connection or streaming not allowed on metered connection"); default: return QString(); } diff --git a/src/qml/Desktop/DesktopPlayerControls.qml b/src/qml/Desktop/DesktopPlayerControls.qml index 003e1176..51b6daeb 100644 --- a/src/qml/Desktop/DesktopPlayerControls.qml +++ b/src/qml/Desktop/DesktopPlayerControls.qml @@ -435,7 +435,7 @@ FocusScope { Controls.Label { id: text - text: AudioManager.entry ? AudioManager.entry.adjustedContent(width, font.pixelSize) : i18n("No Track Loaded") + text: AudioManager.entry ? AudioManager.entry.adjustedContent(width, font.pixelSize) : i18n("No track loaded") verticalAlignment: Text.AlignTop baseUrl: AudioManager.entry ? AudioManager.entry.baseUrl : "" textFormat: Text.RichText diff --git a/src/qml/Desktop/HeaderBar.qml b/src/qml/Desktop/HeaderBar.qml index 5c3ce9e1..7e01970e 100644 --- a/src/qml/Desktop/HeaderBar.qml +++ b/src/qml/Desktop/HeaderBar.qml @@ -117,7 +117,7 @@ FocusScope { property string image: AudioManager.entry ? ((desktopPlayerControls.chapterModel.currentChapter && desktopPlayerControls.chapterModel.currentChapter !== undefined) ? desktopPlayerControls.chapterModel.currentChapter.cachedImage : AudioManager.entry.cachedImage) : "no-image" property string blurredImage: AudioManager.entry ? AudioManager.entry.cachedImage : "no-image" property string title: AudioManager.entry ? AudioManager.entry.title : i18n("No Track Title") - property string feed: AudioManager.entry ? AudioManager.entry.feed.name : i18n("No Track Loaded") + property string feed: AudioManager.entry ? AudioManager.entry.feed.name : i18n("No track loaded") property string authors: AudioManager.entry ? (AudioManager.entry.feed.authors.length !== 0 ? AudioManager.entry.feed.authors[0].name : "") : "" implicitHeight: headerBar.handlePosition diff --git a/src/qml/DownloadListPage.qml b/src/qml/DownloadListPage.qml index 45e4cddc..c693c994 100644 --- a/src/qml/DownloadListPage.qml +++ b/src/qml/DownloadListPage.qml @@ -54,7 +54,7 @@ Kirigami.ScrollablePage { width: Kirigami.Units.gridUnit * 20 anchors.centerIn: parent - text: i18n("No Downloads") + text: i18n("No downloads") } model: DownloadModel diff --git a/src/qml/EpisodeListPage.qml b/src/qml/EpisodeListPage.qml index 80193f2d..9552c0d3 100644 --- a/src/qml/EpisodeListPage.qml +++ b/src/qml/EpisodeListPage.qml @@ -95,7 +95,7 @@ Kirigami.ScrollablePage { width: Kirigami.Units.gridUnit * 20 anchors.centerIn: parent - text: i18n("No Episodes Available") + text: i18n("No episodes available") } model: EpisodeProxyModel { diff --git a/src/qml/FeedDetailsPage.qml b/src/qml/FeedDetailsPage.qml index e6475634..dae2ef15 100644 --- a/src/qml/FeedDetailsPage.qml +++ b/src/qml/FeedDetailsPage.qml @@ -364,7 +364,7 @@ Kirigami.ScrollablePage { width: Kirigami.Units.gridUnit * 20 - text: feed.errorId === 0 ? i18n("No Episodes Available") : i18n("Error (%1): %2", feed.errorId, feed.errorString) + text: feed.errorId === 0 ? i18n("No episodes available") : i18n("Error (%1): %2", feed.errorId, feed.errorString) icon.name: feed.errorId === 0 ? "" : "data-error" } } diff --git a/src/qml/GlobalSearchField.qml b/src/qml/GlobalSearchField.qml index 8db7d09c..5c0f300b 100644 --- a/src/qml/GlobalSearchField.qml +++ b/src/qml/GlobalSearchField.qml @@ -93,7 +93,7 @@ Addons.SearchPopupField { anchors.fill: parent visible: searchListView.count === 0 - text: i18nc("@info Placeholder text in search box", "No Search Results") + text: i18nc("@info Placeholder text in search box", "No search results") } Kirigami.Action { diff --git a/src/qml/Mobile/MobilePlayerControls.qml b/src/qml/Mobile/MobilePlayerControls.qml index aa216f0a..5643436a 100644 --- a/src/qml/Mobile/MobilePlayerControls.qml +++ b/src/qml/Mobile/MobilePlayerControls.qml @@ -154,7 +154,7 @@ Kirigami.Page { } Controls.Label { - text: AudioManager.entry ? AudioManager.entry.feed.name : i18n("No Podcast Title") + text: AudioManager.entry ? AudioManager.entry.feed.name : i18n("No podcast title") elide: Text.ElideRight Layout.alignment: Qt.AlignHCenter Layout.maximumWidth: parent.width @@ -186,7 +186,7 @@ Kirigami.Page { Controls.Label { id: text Layout.fillWidth: true - text: AudioManager.entry ? AudioManager.entry.adjustedContent(width, font.pixelSize) : i18n("No Track Loaded") + text: AudioManager.entry ? AudioManager.entry.adjustedContent(width, font.pixelSize) : i18n("No track loaded") verticalAlignment: Text.AlignTop baseUrl: AudioManager.entry ? AudioManager.entry.baseUrl : "" textFormat: Text.RichText @@ -220,7 +220,7 @@ Kirigami.Page { width: parent.width anchors.centerIn: parent - text: i18n("No chapters found.") + text: i18n("No chapters found") } ListView { @@ -342,7 +342,7 @@ Kirigami.Page { Controls.ToolTip { visible: parent.hovered delay: Qt.styleHints.mousePressAndHoldInterval - text: i18nc("@action:button", "Open Volume Settings") + text: i18nc("@action:button", "Open volume settings") } onClicked: { if (volumePopup.visible) { @@ -372,7 +372,7 @@ Kirigami.Page { Controls.ToolTip { visible: parent.hovered delay: Qt.styleHints.mousePressAndHoldInterval - text: i18nc("@action:button", "Toggle Mute") + text: i18nc("@action:button", "Toggle mute") } }