Skip to content

Add Russian translation (l10n part 2/2) - #146

Merged
foureight84 merged 2 commits into
foureight84:fix/batch-2026-11-12from
g4st3r-d3v:l10n-russian
Nov 15, 2026
Merged

foureight84 merged 2 commits into
foureight84:fix/batch-2026-11-12from
g4st3r-d3v:l10n-russian

Conversation

@g4st3r-d3v

Copy link
Copy Markdown

Part 2 of 2, stacked on #145. Until #145 is merged, only the last commit ("Add Russian translation") is new here.

  • values-ru/strings.xml covers every string in values/strings.xml except app_name, with Russian plural forms (one/few/many/other) wherever a number precedes a noun.
  • coach_language = Russian, so the coach replies in Russian when the app shows Russian.
  • res/xml/locales_config.xml (en, ru) plus android:localeConfig for the Android 13+ per-app language picker.
  • README.ru.md, linked from one line at the top of README.md.
  • A small layout fix: the onboarding welcome tiles had a fixed height that clipped a two-line title, and they now grow to fit.

If you set up Weblate, this file can be imported as the first language as-is.

Tested with testDebugUnitTest and assembleDebug. I checked the Russian build on my phone.

🤖 Generated with Claude Code

Aleksandr Poryadin added 2 commits November 14, 2026 15:48
English output is unchanged: values/strings.xml carries the original copy
verbatim, and the existing unit tests pass without modification.

- Composables use stringResource / pluralStringResource. Code without a
  Context goes through util/L10n, which in JVM tests reads the default
  values/strings.xml directly.
- util/LocaleFormats picks date/time patterns from Android's best-pattern
  skeletons, falling back to the original pattern when java.time or
  SimpleDateFormat rejects the platform's one (zh-TW "Bh:mm" on Android
  12/13). Patterns and formatters are cached per (skeleton, locale).
- coach/context/CoachLanguage reads the coach_language resource, so the
  coach replies in the language the UI actually resolved. For English the
  directive is empty and prompts are byte-for-byte unchanged. Coach summary
  signatures carry the language, so a language switch regenerates cards.
- Strings that would otherwise stick after a per-app language switch
  (tool progress labels, threshold units, the sleep no-data card) are
  resolved on read.
- Coach chart colours also match a translation's own metric words.
- values-ru/strings.xml covers every string in values/strings.xml (except
  app_name), with Russian plural forms wherever a count precedes a noun.
- coach_language = "Russian", so the coach replies in Russian when the app
  shows Russian.
- res/xml/locales_config.xml enables the Android 13+ per-app language picker.
- README.ru.md, linked from README.md.
- Onboarding welcome tiles grow to fit a wrapped title instead of clipping
  it at a fixed height; the Russian titles surfaced this.
@foureight84
foureight84 changed the base branch from main to fix/batch-2026-11-12 November 15, 2026 06:12
@foureight84
foureight84 merged commit b29dad1 into foureight84:fix/batch-2026-11-12 Nov 15, 2026
@foureight84

Copy link
Copy Markdown
Owner

Thank you @g4st3r-d3v! Verified all 1,115 translated <string> entries and 28 <plurals> (all with one/few/many/other), matching format specifiers across values-ru/strings.xml, the OnboardingScreen AnnotatedString fix, and locales_config.xml. Merged into #144 (fix/batch-2026-11-12) with follow-up commit 1654ce6 adding Russian translations for #144's new Bluetooth-off / clock-stall UI strings so everything ships together in the upcoming v2.11.3 release.

@g4st3r-d3v
g4st3r-d3v deleted the l10n-russian branch November 15, 2026 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants