mirror of
https://github.com/KDE/audiotube.git
synced 2025-12-24 00:18:04 -05:00
Display the string "favorite" (en_US), not "favourite" (en_GB)
This commit is contained in:
@@ -133,7 +133,7 @@ SPDX-License-Identifier: CC0-1.0
|
||||
<url>https://www.plasma-mobile.org/2022/06/28/plasma-mobile-gear-22-06/</url>
|
||||
<description>
|
||||
<ul>
|
||||
<li>Add library page which shows favourites and most played songs</li>
|
||||
<li>Add library page which shows favorites and most played songs</li>
|
||||
<li>Improve layout of the search popup</li>
|
||||
<li>General performance improvements including startup</li>
|
||||
</ul>
|
||||
|
||||
@@ -28,7 +28,7 @@ Kirigami.ScrollablePage {
|
||||
Layout.maximumWidth: libraryPage.width
|
||||
|
||||
Kirigami.Heading {
|
||||
text: i18n("Favourites")
|
||||
text: i18n("Favorites")
|
||||
Layout.alignment: Qt.AlignLeft
|
||||
leftPadding: 15
|
||||
}
|
||||
@@ -131,7 +131,7 @@ Kirigami.ScrollablePage {
|
||||
icon.name: "arrow-right"
|
||||
onClicked: {
|
||||
pageStack.push(pool.loadPageWithProperties("qrc:/qt/qml/org/kde/audiotube/contents/ui/PlaybackHistory.qml#favourites", {
|
||||
"title": i18n("Favourites"),
|
||||
"title": i18n("Favorites"),
|
||||
"objectName": "favourites"
|
||||
}))
|
||||
}
|
||||
@@ -156,7 +156,7 @@ Kirigami.ScrollablePage {
|
||||
Controls.Label {
|
||||
visible: favouriteRepeater.count === 0
|
||||
color: Kirigami.Theme.disabledTextColor
|
||||
text: i18n("No Favourites Yet")
|
||||
text: i18n("No Favorites Yet")
|
||||
|
||||
font {
|
||||
bold: true
|
||||
|
||||
@@ -535,7 +535,7 @@ Item {
|
||||
}
|
||||
}
|
||||
}
|
||||
text: favouriteWatcher ? (favouriteWatcher.isFavourite ? i18n("Remove from Favourites") : i18n("Add to Favourites")) : i18n("Add to Favourites")
|
||||
text: favouriteWatcher ? (favouriteWatcher.isFavourite ? i18n("Remove from Favorites") : i18n("Add to Favorites")) : i18n("Add to Favorites")
|
||||
icon.name: favouriteWatcher ? (favouriteWatcher.isFavourite ? "starred-symbolic" : "non-starred-symbolic") : "non-starred-symbolic"
|
||||
enabled: favouriteWatcher
|
||||
icon.color: "white"
|
||||
|
||||
@@ -44,13 +44,13 @@ Kirigami.NavigationTabBar {
|
||||
},
|
||||
Kirigami.Action {
|
||||
icon.name: "non-starred-symbolic"
|
||||
text: i18n("Favourites")
|
||||
text: i18n("Favorites")
|
||||
checked: pageStack.currentItem && pageStack.currentItem.objectName == "favourites"
|
||||
onTriggered: {
|
||||
pageStack.clear()
|
||||
pageStack.replace("qrc:/qt/qml/org/kde/audiotube/contents/ui/PlaybackHistory.qml", {
|
||||
"dataModel": Library.favourites,
|
||||
"title": i18n("Favourites"),
|
||||
"title": i18n("Favorites"),
|
||||
"objectName": "favourites"})
|
||||
applicationWindow().showSearch = false
|
||||
}
|
||||
|
||||
@@ -135,12 +135,12 @@ Rectangle {
|
||||
|
||||
action: Kirigami.PagePoolAction {
|
||||
pagePool: pool
|
||||
text: i18n("Favourites")
|
||||
text: i18n("Favorites")
|
||||
icon.name: "non-starred-symbolic"
|
||||
page: Qt.resolvedUrl("qrc:/qt/qml/org/kde/audiotube/contents/ui/PlaybackHistory.qml#favourites")
|
||||
initialProperties: {
|
||||
"dataModel": Library.favourites,
|
||||
"title": i18n("Favourites"),
|
||||
"title": i18n("Favorites"),
|
||||
"objectName": "favourites"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -125,7 +125,7 @@ Item {
|
||||
|
||||
readonly property QtObject favouriteWatcher: Library.favouriteWatcher(drawer.videoId)
|
||||
|
||||
text: favouriteWatcher ? (favouriteWatcher.isFavourite ? i18n("Remove Favourite"): i18n("Add Favourite")): ""
|
||||
text: favouriteWatcher ? (favouriteWatcher.isFavourite ? i18n("Remove Favorite"): i18n("Add Favorite")): ""
|
||||
icon.name: favouriteWatcher ? (favouriteWatcher.isFavourite ? "starred-symbolic" : "non-starred-symbolic") : ""
|
||||
onClicked: {
|
||||
if (favouriteWatcher) {
|
||||
@@ -228,7 +228,7 @@ Item {
|
||||
|
||||
Controls.MenuItem {
|
||||
readonly property QtObject favouriteWatcher: Library.favouriteWatcher(menu.videoId)
|
||||
text: favouriteWatcher ? (favouriteWatcher.isFavourite ? i18n("Remove Favourite"): i18n("Add Favourite")): ""
|
||||
text: favouriteWatcher ? (favouriteWatcher.isFavourite ? i18n("Remove Favorite"): i18n("Add Favorite")): ""
|
||||
icon.name: favouriteWatcher ? (favouriteWatcher.isFavourite ? "starred-symbolic" : "non-starred-symbolic") : ""
|
||||
onTriggered: {
|
||||
if (favouriteWatcher) {
|
||||
|
||||
Reference in New Issue
Block a user