Plural variations and separate keys for ambiguous strings !365

merged merged by cmc on 2026-10-17 20:30 UTC · krz/orgstar:l10n-plurals-split-keys into main

Discussion

cmc

Based on !364; merge that first.

  • Archive %lld entries? and %lld lines, %lld words, %lld chars (mode line) replace keys that interpolated untranslated English words. The mode line uses per-count substitutions.
  • Own keys: agenda.later (chevron, Mac and iOS), agenda.mark-done (swipe action), none.state, none.priority, none.tags, none.date, none.folder. Bare None remains for backlinks.
  • iOS agenda bar labels (barButton took a String) and the None values passed to LabeledContent(_:value:) were shown verbatim; now localized.
  • Plural variations (en included where English varies): %lld selected, %lld overdue, %lld minutes before, Agenda shows %lld days, %lld Days, After %lld minutes without keyboard or mouse input. pt-BR uses zero where 0 is possible.
  • Done %lld of %lld days left as is: the day total is never 1 and the done count reads correctly at 1 in all six languages.

swift test, scripts/build-ios-app.sh and xcstringstool compile pass; compiled strings checked per language at counts 0, 1 and n.