- translations/: harbour-hermes-it/fr/de.ts (78 stringhe ciascuna, 100% tradotte) + caricamento in main.cpp in base alla lingua di sistema - .pro: CONFIG += sailfishapp_i18n + TRANSLATIONS (pattern ufficiale Sailfish: .qm generati in build e installati in /usr/share/harbour-hermes/translations) - stringhe visibili del core in tr(): ApiClient, ChatModel, Recorder (VoiceRecorder era gia' ok); plurali dei messaggi corretti (1 message / %1 messages) in SessionsPage e CoverPage - spec: BuildRequires qt5-qttools-linguist + %files translations - README/BUILD: sezione Localization + workflow lupdate/lrelease Verificato: lupdate 78/78 per it/fr/de, lrelease OK, e test runtime di caricamento .qm (tutte le traduzioni risolte nei contesti corretti).
31 lines
892 B
QML
31 lines
892 B
QML
import QtQuick 2.0
|
|
import Sailfish.Silica 1.0
|
|
|
|
CoverBackground {
|
|
Label {
|
|
id: title
|
|
anchors.top: parent.top
|
|
anchors.topMargin: Theme.paddingLarge
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
text: "Hermes"
|
|
font.pixelSize: Theme.fontSizeLarge
|
|
color: Theme.highlightColor
|
|
}
|
|
|
|
Label {
|
|
anchors.centerIn: parent
|
|
text: chat.count === 1 ? qsTr("1 message") : qsTr("%1 messages").arg(chat.count)
|
|
color: Theme.primaryColor
|
|
}
|
|
|
|
Label {
|
|
anchors.bottom: parent.bottom
|
|
anchors.bottomMargin: Theme.paddingLarge
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
visible: chat.busy || recorder.recording
|
|
font.pixelSize: Theme.fontSizeExtraSmall
|
|
color: Theme.secondaryColor
|
|
text: recorder.recording ? qsTr("Recording…") : qsTr("Writing…")
|
|
}
|
|
}
|