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:
@@ -10,7 +10,7 @@ Page {
|
||||
SilicaListView {
|
||||
id: listView
|
||||
anchors.fill: parent
|
||||
header: PageHeader { title: "Calibre Web" }
|
||||
header: PageHeader { title: qsTr("Calibre Web") }
|
||||
model: sectionModel
|
||||
|
||||
delegate: ListItem {
|
||||
@@ -40,15 +40,15 @@ Page {
|
||||
|
||||
PullDownMenu {
|
||||
MenuItem {
|
||||
text: "Cerca"
|
||||
text: qsTr("Search")
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("SearchPage.qml"))
|
||||
}
|
||||
MenuItem {
|
||||
text: "Impostazioni"
|
||||
text: qsTr("Settings")
|
||||
onClicked: pageStack.push(Qt.resolvedUrl("SettingsPage.qml"))
|
||||
}
|
||||
MenuItem {
|
||||
text: "Aggiorna"
|
||||
text: qsTr("Refresh")
|
||||
onClicked: loadIndex()
|
||||
}
|
||||
}
|
||||
@@ -57,7 +57,7 @@ Page {
|
||||
enabled: sectionModel.count === 0 && !page.loading
|
||||
text: page.errorMessage.length > 0
|
||||
? page.errorMessage
|
||||
: "Apri le impostazioni e inserisci l'indirizzo del tuo Calibre Web"
|
||||
: qsTr("Open the settings and enter your Calibre Web address")
|
||||
}
|
||||
|
||||
BusyIndicator {
|
||||
@@ -74,7 +74,7 @@ Page {
|
||||
function loadIndex() {
|
||||
var base = appSettings.baseUrl
|
||||
if (base.length === 0) {
|
||||
page.errorMessage = "Server non configurato"
|
||||
page.errorMessage = qsTr("Server not configured")
|
||||
return
|
||||
}
|
||||
page.loading = true
|
||||
@@ -97,7 +97,7 @@ Page {
|
||||
sectionModel.append({ title: e.title, linkUrl: e.linkUrl })
|
||||
}
|
||||
if (sectionModel.count === 0)
|
||||
page.errorMessage = "Nessuna sezione trovata nel feed OPDS"
|
||||
page.errorMessage = qsTr("No sections found in the OPDS feed")
|
||||
}
|
||||
onFeedError: {
|
||||
page.loading = false
|
||||
|
||||
Reference in New Issue
Block a user