Repository navigation
Give the Todo side its own strings - #1966
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1965 in code; the translations follow from translators.
The Todo side picker and
TodoSidebarSide.titleused the sameLeft/Rightkeys 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).TodoSidebarSide.titleinstead ofText("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/Rightgets 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, andLeft/Right/Top/Bottom/Centercan use the "half" wording, since only the half actions use them now. The table in #1965 shows which languages need which.Tests:
TodoSideLocalizationTestschecks the English titles (skipped when the test host isn't in English, see #1958), and that zh-Hans resolves the new keys to 左侧/右侧 whileLeft/Rightstay 左半屏/右半屏. Full suite passes.