Skip to content

Belarusian: a space between a number and its hour/minute unit - #1192

Merged
GLinnik21 merged 1 commit into
mainfrom
be-unit-spacing
Nov 1, 2026
Merged

GLinnik21 merged 1 commit into
mainfrom
be-unit-spacing

Conversation

@GLinnik21

Copy link
Copy Markdown
Collaborator

What

Belarusian sets an abbreviated unit off from its number with a space; our catalog wrote the hour and minute units flush against it ("2г 14хв"). Seven Belarusian strings get a plain space; the abbreviations "г" and "хв" are unchanged.

key before after
core.duration_hours {hours}г {minutes}хв {hours} г {minutes} хв
core.duration_minutes {minutes}хв {minutes} хв
core.time_left_hours Засталося {hours}г {minutes}хв Засталося {hours} г {minutes} хв
core.time_left_minutes Засталося {minutes}хв Засталося {minutes} хв
library_rail.hours {hours}г {hours} г
library_rail.hours_or_more {hours}г+ {hours} г+
under_posters.details_copy (the example) 2019 · 2г 14хв 2019 · 2 г 14 хв

Why: a Belarusian reviewer (the owner) asked why Russian had the space and Belarusian did not, and confirmed the space. The usage is attested: the journal "Роднае слова" 2020/6 writes "140 км", "207,6 тыс. км²" and "1943 г." (the issue text was extracted and searched; it never abbreviates an hour or a minute), and Belarusian Wikipedia's hour article writes "3 г. 5 хв.". The rail's hour was documented as "spaced as core.duration_hours spaces it", which was false for Belarusian and is true again; the four core strings and the Under posters example move with it so the catalog agrees with itself (the rail test a_duration_band_wears_the_languages_own_short_hour_unit ties the rail to core.duration_hours).

Language-review result for the other two keys checked in the same pass: the Belarusian decade label "{decade}-я" stands (the same issue writes "1960-я гг.", "1900–1920-я гады"); the hour abbreviation "г" is kept because no authoritative source for another one was found (not determined: "гадз." was a guess and found no support).

Gates

Crate-level, on the worker's tree (one commit, locale files only): plx_screens 1879 pass (includes the rail fit test over every shipped language, the Under posters copy-height and string-fit tests, the sort-value and Also available fit tests), plx_ui 1487 pass, plx_platform 354 pass; ci/check-localization.py, ci/check-language-lists.py and their unit tests green. One pr-reviewer pass: no findings (it listed every renderer of the changed keys and which ones an every-language test covers; the others elide, marquee or drop a chip).

Limits

  • Not measured on the TV or in the simulator; the strings were checked by the host fit tests only. The Continue Watching / Under posters captions have no every-language width test; they elide or marquee on overflow.
  • A plain U+0020 is used, like every other language's duration strings; a line break between the number and the unit can occur only in the details_copy paragraph (the sort-value line already makes its spaces non-breaking in code).
  • The hour abbreviation itself is not independently confirmed (see above).

No issue to close.

🤖 Generated with Claude Code

https://claude.ai/code/session_01P6ZnFcEf1mdNNPRWAbfSaU

Belarusian sets an abbreviated unit off from its number with a space. The
owner, a Belarusian speaker, confirmed it, and the usage is attested: the
journal "Роднае слова" 2020/6 writes "140 км", "207,6 тыс. км²" and "1943 г.",
and Belarusian Wikipedia's hour article writes "3 г. 5 хв.". Our Belarusian
catalog wrote the hour and minute units flush against the number ("2г 14хв").

Keep the abbreviations "г" and "хв" as they are and add only the space, so the
Library rail's hour bands (library_rail.hours, hours_or_more), the duration
captions (core.duration_*), the time-left captions (core.time_left_*) and the
Under posters example (under_posters.details_copy) agree with the usual
Belarusian spacing and with each other.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01P6ZnFcEf1mdNNPRWAbfSaU
@GLinnik21
GLinnik21 merged commit b24e0a3 into main Nov 1, 2026
16 checks passed
@GLinnik21
GLinnik21 deleted the be-unit-spacing branch November 1, 2026 01:32
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.

1 participant