feat: Russian interface language

Adds an i18n module: strings stay in English in the code and are looked
up as tr("…") or trf("… {} …", args), with Russian in i18n/ru.rs.
Includes Russian plurals, genitive month names, "4,1 млн"-style
compact numbers and localised durations. A test scans the sources and
fails on any string without a Russian entry.

A Language setting (match system, English, Русский) defaults to the
system's first preferred language. Yandex's own titles (genres, Home
blocks, station names) switch with it, through a client rebuilt in that
language. Long genre names now wrap instead of spilling over the next
tile. The app bundle declares en and ru localisations.
This commit is contained in:
Yuriy Panov committed 2026-10-15 21:49:01 +06:00
1 parent 52ad4a2e90
commit ff41887f30
35 files changed
+1073 -308

No files matched your search

+2
View File
@@ -37,6 +37,8 @@ cat > "$bundle/Contents/Info.plist" <<PLIST
<key>CFBundleName</key><string>Musyx</string>
<key>CFBundleDisplayName</key><string>Musyx</string>
<key>CFBundleIdentifier</key><string>dev.musyx.desktop</string>
<key>CFBundleDevelopmentRegion</key><string>en</string>
<key>CFBundleLocalizations</key><array><string>en</string><string>ru</string></array>
<key>CFBundleExecutable</key><string>Musyx</string>
<key>CFBundleIconFile</key><string>Musyx</string>
<key>CFBundlePackageType</key><string>APPL</string>