Cleaning, fixing and translation

This commit is contained in:
Niels
2025-06-09 16:24:42 +02:00
parent 61b8e89c31
commit 7113a16dd6
12 changed files with 85 additions and 168 deletions
+2 -2
View File
@@ -33,8 +33,8 @@ Page {
on_LoadingChanged: {
if (!_loading) {
appAutoPlay()
console.log(" *** AUTOPLAY")
} else console.log(" *** INTE AUTOPLAY")
//console.log(" *** AUTOPLAY")
} //else console.log(" *** INTE AUTOPLAY")
}
Splash {
+1 -1
View File
@@ -20,7 +20,7 @@ Page {
header: Column {
width: parent.width
PageHeader {title: "Community Radio Browser";description: qsTr("Found ")+view.count + qsTr(" countries")}
PageHeader {title: "Community Radio Browser";description: qsTr("Found")+" "+view.count + " " +qsTr("countries")}
SearchField {
id: sfield
+4 -4
View File
@@ -21,10 +21,10 @@ Page {
onSearchbyChanged: {
switch (searchby){
case "name": sortedby = "Sorted by Name";break;
case "votes": sortedby = "Most likes";break;
case "clicktrend": sortedby = "Trending right now";break;
case "clickcount": sortedby = "Most played";
case "name": sortedby = qsTr("Sorted by Name");break;
case "votes": sortedby = qsTr("Most likes");break;
case "clicktrend": sortedby = qsTr("Trending right now");break;
case "clickcount": sortedby = qsTr("Most played");
}
}
+5 -5
View File
@@ -21,10 +21,10 @@ Page {
onSearchbyChanged: {
// console.log("SEARCHBY: "+searchby)
switch (searchby){
case "name": sortedby = "Sorted by Name";break;
case "votes": sortedby = "Most likes";break;
case "clicktrend": sortedby = "Trending right now";break;
case "clickcount": sortedby = "Most played";
case "name": sortedby = qsTr("By Name");break;
case "votes": sortedby = qsTr("Most likes");break;
case "clicktrend": sortedby = qsTr("Trending right now");break;
case "clickcount": sortedby = qsTr("Most played");
}
}
@@ -114,7 +114,7 @@ Page {
width: parent.width
SearchField {
id: sfield
placeholderText: "Search"
placeholderText: qsTr("Search")
inputMethodHints: Qt.ImhNoAutoUppercase //| Qt.ImhNoPredictiveText
EnterKey.iconSource: "image://theme/icon-m-enter-close"
EnterKey.onClicked: focus = false
-30
View File
@@ -1,30 +0,0 @@
import QtQuick 2.0
import Sailfish.Silica 1.0
Page {
id: page
// The effective value will be restricted by ApplicationWindow.allowedOrientations
allowedOrientations: Orientation.All
SilicaListView {
id: listView
model: 20
anchors.fill: parent
header: PageHeader {
title: qsTr("Nested Page")
}
delegate: BackgroundItem {
id: delegate
Label {
x: Theme.horizontalPageMargin
text: qsTr("Item") + " " + index
anchors.verticalCenter: parent.verticalCenter
color: delegate.highlighted ? Theme.highlightColor : Theme.primaryColor
}
onClicked: console.log("Clicked " + index)
}
VerticalScrollDecorator {}
}
}
-59
View File
@@ -1,59 +0,0 @@
import QtQuick 2.0
import Sailfish.Silica 1.0
import QtQuick.LocalStorage 2.0
import QtGraphicalEffects 1.0
import "../helpers/db.js" as Favorites
Page {
PageHeader {
id: pheader
title: "Settings"
}
Flickable {
id: flick
width:parent.width
height: parent.height - Theme.paddingLarge * 3
anchors.fill: parent
anchors.leftMargin: Theme.paddingLarge
anchors.rightMargin: Theme.paddingLarge
anchors.topMargin: pheader.height + Theme.paddingLarge
//contentHeight: column1.height
TextSwitch {
id: activationSwitch
text: "Auto play"
description: "Play radio station on start"
onCheckedChanged: {
device.setStatus(checked ? DeviceState.Armed : DeviceState.Disarmed)
}
}
ComboBox {
width: parent.widht
label: "What to play"
menu: ContextMenu {
MenuItem { text: "Last played" }
MenuItem { text: "Random favorite" }
}
}
/* Label {
width: parent.width-70
font.pixelSize: Theme.fontSizeLarge
text: qsTr("WARNING! THis is for debugging or corrupt database. Only delete db if it is not working!!!")
anchors.horizontalCenter: parent.horizontalCenter
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
}
Button {
text: qsTr("Delete DB")
onClicked: Favorites.dropTable()
anchors.horizontalCenter: parent.horizontalCenter
} */
}
}