i18n: wrap hardcoded Slint labels and plural concatenations

Wrap remaining user-facing literals in @tr across discover (RADIO,
TOP TRACKS), DiscographyBuilder (release-type/order-by labels), the
OfflineManager hero, ExpandableSearch placeholder default, and the
appearance option arrays in state.slint (displayed as-is, no Rust
re-seed). Replace string concatenation with positional @tr plus
ngettext plurals for the DiscographyBuilder footer and OfflineManager
track counts so word order is locale-stable. Language endonyms and the
macOS/Adwaita/quality-tier brand names stay literal.

cc
This commit is contained in:
vicrodh committed 2026-06-23 14:13:40 -06:00
1 parent 8243f2a856
commit 171b175b4f
7 files changed
+33 -34

No files matched your search

@@ -11,7 +11,7 @@ import { Typography } from "../foundation/typography.slint";
import { QbzIcon } from "QbzIcon.slint";
export component ExpandableSearch inherits Rectangle {
in property <string> placeholder: "Search…";
in property <string> placeholder: @tr("Search…");
// Trimmed 20px so the open field doesn't ride over the controls to its
// left on small screens.
in property <length> max-open-width: 196px;