From 6eb484913a6689d0f966b524d57dd44b9dd96bf0 Mon Sep 17 00:00:00 2001 From: Niels Date: Fri, 30 May 2025 06:45:29 +0200 Subject: [PATCH] Working on translation --- qml/pages/AllRadio.qml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/qml/pages/AllRadio.qml b/qml/pages/AllRadio.qml index 5684759..49fadde 100644 --- a/qml/pages/AllRadio.qml +++ b/qml/pages/AllRadio.qml @@ -44,15 +44,15 @@ Page { PullDownMenu { MenuItem { - text: "About" + text: qsTr("About") onClicked: pageStack.push("AboutPage.qml") } MenuItem { - text: "Settings" + text: qsTr("Settings") onClicked: pageStack.push("SettingsPage.qml") } MenuItem { - text: "Sleep timer" + text: qsTr("Sleep timer") onClicked: { pageStack.push("SleepTimerPage.qml") } @@ -122,7 +122,7 @@ Page { Label { anchors.verticalCenter: parent.verticalCenter - text: "Search" + text: qsTr("Search") font.pixelSize: Theme.fontSizeLarge } } @@ -144,7 +144,7 @@ Page { Item {height: Theme.paddingLarge;width: parent.width} HeaderButton { - headerText: "Countries" + headerText: qsTr("Countries") onClicked: pageStack.push("CountryListPage.qml") } @@ -167,7 +167,7 @@ Page { HeaderButton { visible: favorites.count > 0 - headerText: "My Favorites" + headerText: qsTr("My Favorites") onClicked: pageStack.push("FavoritesPage.qml") } @@ -211,7 +211,7 @@ Page { HeaderButton { visible: radioPlayer.playHistory.count > 0 - headerText: "Play history"//playedCountries.count > 0 ? "Trending in " + radioBrowser.getCountryName(playedCountries.get(0).alpha_2) : "Trending in " + radioBrowser.getCountryName(_country) + headerText: qsTr("Play history")//playedCountries.count > 0 ? "Trending in " + radioBrowser.getCountryName(playedCountries.get(0).alpha_2) : "Trending in " + radioBrowser.getCountryName(_country) onClicked: pageStack.push("HistoryPage.qml") } @@ -253,7 +253,7 @@ Page { HeaderButton { visible: radioPlayer.playHistory.count > 0 - headerText: "My most played Tags"//playedCountries.count > 0 ? "Trending in " + radioBrowser.getCountryName(playedCountries.get(0).alpha_2) : "Trending in " + radioBrowser.getCountryName(_country) + headerText: qsTr("My most played Tags")//playedCountries.count > 0 ? "Trending in " + radioBrowser.getCountryName(playedCountries.get(0).alpha_2) : "Trending in " + radioBrowser.getCountryName(_country) onClicked: pageStack.push("TagListPage.qml",{}) } @@ -277,7 +277,7 @@ Page { HeaderButton { visible: radioBrowser.getCountryName(_country) || playedCountries.count > 0 ? true : false - headerText: playedCountries.count > 0 ? "Trending in " + radioBrowser.getCountryName(playedCountries.get(0).alpha_2) : "Trending in " + radioBrowser.getCountryName(_country) + headerText: playedCountries.count > 0 ? qsTr("Trending in")+ " " + radioBrowser.getCountryName(playedCountries.get(0).alpha_2) : qsTr("Trending in") + " " + radioBrowser.getCountryName(_country) onClicked: pageStack.push("CountryStationsPage.qml",{searchby:"clicktrend",_countrycode: playedCountries.get(0).alpha_2}) }