Skip to content

Give the Todo side its own strings - #1966

Merged
rxhanson merged 1 commit into
rxhanson:mainfrom
AkiyamaKunka:fix/todo-side-strings
Nov 16, 2026
Merged

rxhanson merged 1 commit into
rxhanson:mainfrom
AkiyamaKunka:fix/todo-side-strings

Conversation

@AkiyamaKunka

Copy link
Copy Markdown
Contributor

Fixes #1965 in code; the translations follow from translators.

The Todo side picker and TodoSidebarSide.title used the same Left / Right keys as the Left/Right Half action names, so each language could only translate them one way. This gives the Todo side its own keys and keeps the English text:

  • TodoSidebarSide.title → String(localized: "Todo Side Left", defaultValue: "Left", comment: …) (and Right).
  • The picker in Settings ▸ Behavior shows TodoSidebarSide.title instead of Text("Left") / Text("Right").
  • Localizable.xcstrings: the two new keys, in the form Xcode's extraction writes them.

Only Simplified Chinese is translated here (左侧/右侧). Every other language that already had a value for Left / Right gets that same value copied into the new keys, marked Needs Review. So their picker looks exactly as it does today, still mismatched in most of them (e.g. de "Links" / "Rechte Hälfte"), until their translators review it. Once they do, the new keys get the side words, and Left / Right / Top / Bottom / Center can use the "half" wording, since only the half actions use them now. The table in #1965 shows which languages need which.

Tests: TodoSideLocalizationTests checks the English titles (skipped when the test host isn't in English, see #1958), and that zh-Hans resolves the new keys to 左侧/右侧 while Left / Right stay 左半屏/右半屏. Full suite passes.

The Todo side picker and TodoSidebarSide.title used the "Left"/"Right" keys that also name the Left/Right Half actions, so each language could only translate them one way (rxhanson#1965). The Todo side now uses "Todo Side Left"/"Todo Side Right" with the same English text. zh-Hans gets 左侧/右侧; other languages keep their current text, marked needs review.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rxhanson
rxhanson merged commit 8ab33d0 into rxhanson:main Nov 16, 2026
1 check passed
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.

The Todo side picker and the Left/Right Half actions share the "Left"/"Right" strings, so most translations are wrong in one place

2 participants