feat(qbz-qt): phase 20 — live i18n across the 8 bundled locales
tr() gained a revision parameter (trRev qproperty bumps on switch) so all ~465 QML call sites re-evaluate — the Qt equivalent of Slint's reseed after select_bundled_translation(). Rust-built documents (home/library/settings option labels, plural tf() strings, active album/artist docs via record-free republish paths) re-publish on switch. Settings > Appearance language selector applies live (Auto + 8 locales, native names, shared ui_prefs.language key); boot honors the persisted pref (was unconditional resolve_auto). Verified es/ru/ja/ de mid-run with zero tofu (fontconfig covers CJK/Cyrillic); restart persistence verified; owner's en pref restored. km
This commit is contained in:
24 files changed
+535
-452
No files matched your search
@@ -201,7 +201,7 @@ Item {
|
||||
Text {
|
||||
x: 14
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: QbzBridge.tr("No results for") + " “" + (root.doc.query || "") + "”"
|
||||
text: QbzBridge.tr("No results for", QbzBridge.trRev) + " “" + (root.doc.query || "") + "”"
|
||||
color: theme.textMuted
|
||||
font.pixelSize: 12
|
||||
}
|
||||
@@ -217,7 +217,7 @@ Item {
|
||||
Text {
|
||||
x: 10
|
||||
height: 22
|
||||
text: QbzBridge.tr("Top result")
|
||||
text: QbzBridge.tr("Top result", QbzBridge.trRev)
|
||||
color: theme.textMuted
|
||||
font.pixelSize: 11
|
||||
font.weight: theme.weightSemibold
|
||||
@@ -253,7 +253,7 @@ Item {
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: 10
|
||||
anchors.verticalCenter: parent.verticalCenter
|
||||
text: QbzBridge.tr("View more")
|
||||
text: QbzBridge.tr("View more", QbzBridge.trRev)
|
||||
color: vmArea.containsMouse ? theme.textPrimary : theme.accent
|
||||
font.pixelSize: 11
|
||||
font.weight: theme.weightMedium
|
||||
|
||||
Reference in new issue
Block a user