Skip to content

ru: translate types-and-values segment#3185

Open
yabanci wants to merge 1 commit into
google:mainfrom
yabanci:chore/ru-translate-types-and-values
Open

ru: translate types-and-values segment#3185
yabanci wants to merge 1 commit into
google:mainfrom
yabanci:chore/ru-translate-types-and-values

Conversation

@yabanci
Copy link
Copy Markdown

@yabanci yabanci commented May 21, 2026

Translates the remaining 19 untranslated entries in src/types-and-values/, closing this chapter to 100% in Russian.

Scope

All untranslated entries in:

  • hello-world.md (intro slide + multi-paradigm note)
  • variables.md (let bindings, mut, i32 / type inference explanation)
  • values.md (built-in types intro + underscore-in-numbers note)
  • arithmetic.md (function-takes-three-ints explanation, integer overflow C/C++ vs Rust, change-to-i16 exercise, constant-expression overflow note)
  • exercise.md (Fibonacci prompt + code-comment hints + "Implement this" literal)

No existing translations were modified. Fuzzy entries in this chapter are left as-is for the original translator (@baltuky) to revisit.

Translation choices

  • Followed the existing glossary in ru.po for established terms (Function → Функция, Type → Тип, etc.).
  • Kept Rust API method names (overflowing_*, saturating_*, carrying_*, wrapping_*, checked_*) in English with backticks — these are identifiers, not concepts.
  • For integer overflow vocabulary, used the canonical RU Rust translation: wrap-around → обёртывание (matching the Rust Book RU at doc.rust-lang.ru/book/ch03-02).
  • Format-string and code-comment literals translated ("Hello 🌍!""Привет, 🌍!", // The base case.// Базовый случай.); technical identifier placeholders like "x: {x}" left alone.

Verification

$ msgfmt --statistics -o /dev/null po/ru.po
571 translated messages, 72 fuzzy translations, 3117 untranslated messages.

Before: 552 translated, 72 fuzzy, 3136 untranslated. Δ = +19 translated, -19 untranslated. Fuzzy count unchanged.

Closes the src/types-and-values/ chapter to 100% by translating the
19 remaining untranslated entries: slide bodies, speaker notes, and
exercise text across hello-world.md, variables.md, values.md,
arithmetic.md, and exercise.md.

Code identifiers and Rust API method names (overflowing/saturating/
carrying/wrapping/checked) kept in English. Format-string and code-
comment literals translated to Russian. Terminology follows the
established ru.po glossary (Type → Тип, Variable → Переменная,
Function → Функция) and the canonical RU Rust translations
(overflow wrap-around → обёртывание).

Verification:
$ msgfmt --statistics -o /dev/null po/ru.po
571 translated messages, 72 fuzzy translations, 3117 untranslated messages.

(Before: 552 translated, 72 fuzzy, 3136 untranslated. Delta: +19 translated, -19 untranslated.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant