Localizzazione EN di default: qsTr() su tutte le stringhe QML, catalogo italiano translations/harbour-calibreweb_it.ts, lrelease+install .qm nello spec (pattern quill), .pro aggiornato

This commit is contained in:
2026-08-19 16:17:30 +02:00
parent 9758f2b528
commit e3ba9b5e87
12 changed files with 360 additions and 52 deletions
+15 -15
View File
@@ -16,15 +16,15 @@ Page {
id: column
width: parent.width
PageHeader { title: "Impostazioni" }
PageHeader { title: qsTr("Settings") }
SectionHeader { text: "Server" }
SectionHeader { text: qsTr("Server") }
TextField {
id: serverField
anchors.left: parent.left
anchors.right: parent.right
label: "Indirizzo Calibre Web"
label: qsTr("Calibre Web address")
placeholderText: "https://calibre.example.com"
text: appSettings.serverUrl
inputMethodHints: Qt.ImhUrlCharactersOnly
@@ -35,7 +35,7 @@ Page {
id: userField
anchors.left: parent.left
anchors.right: parent.right
label: "Utente (vuoto = accesso anonimo)"
label: qsTr("User (empty = anonymous access)")
text: appSettings.username
onTextChanged: appSettings.username = text
}
@@ -44,25 +44,25 @@ Page {
id: passField
anchors.left: parent.left
anchors.right: parent.right
label: "Password"
label: qsTr("Password")
text: appSettings.password
echoMode: TextInput.Password
onTextChanged: appSettings.password = text
}
TextSwitch {
text: "Ignora errori certificato SSL"
description: "Da attivare se il server usa un certificato autofirmato"
text: qsTr("Ignore SSL certificate errors")
description: qsTr("Enable if the server uses a self-signed certificate")
checked: appSettings.ignoreSslErrors
onCheckedChanged: appSettings.ignoreSslErrors = checked
}
SectionHeader { text: "Lettore" }
SectionHeader { text: qsTr("Reader") }
Slider {
id: marginSlider
width: parent.width
label: "Margini laterali"
label: qsTr("Side margins")
minimumValue: 0
maximumValue: 80
stepSize: 4
@@ -74,7 +74,7 @@ Page {
Slider {
id: marginVSlider
width: parent.width
label: "Margine alto e basso"
label: qsTr("Top and bottom margin")
minimumValue: 0
maximumValue: 80
stepSize: 4
@@ -83,11 +83,11 @@ Page {
onValueChanged: appSettings.readerMarginV = value
}
SectionHeader { text: "Connessione" }
SectionHeader { text: qsTr("Connection") }
Button {
anchors.horizontalCenter: parent.horizontalCenter
text: "Prova connessione"
text: qsTr("Test connection")
enabled: !page.testing
onClicked: testConnection()
}
@@ -118,7 +118,7 @@ Page {
function testConnection() {
var base = appSettings.serverUrl.trim()
if (base.length === 0) {
page.testResult = "Inserisci l'indirizzo del server"
page.testResult = qsTr("Enter the server address")
page.testOk = false
return
}
@@ -127,7 +127,7 @@ Page {
base = "https://" + base
appSettings.serverUrl = base
page.testing = true
page.testResult = "Verifica in corso…"
page.testResult = qsTr("Testing…")
apiClient.getFeed(base + "/opds")
}
@@ -138,7 +138,7 @@ Page {
return
page.testing = false
page.testOk = true
page.testResult = "Connessione OK: " + entries.length + " sezioni trovate"
page.testResult = qsTr("Connection OK: %1 sections found").arg(entries.length)
}
onFeedError: {
if (pageStack.currentPage !== page)