Repository navigation
Localize the remaining Settings labels for zh-Hans - #1939
Merged
Merged
Conversation
Mirrors the developer note rxhanson#1927 added to README.md, so both READMEs describe com.knollsoft.Rectangle.debug the same way. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reported on rxhanson#1916 after 2.0.4: the "Extra" group heading and the "Ninths (3x3)", "Twelfths (3x4)" and "Sixteenths (4x4)" rows in the Shortcuts tab were still English. The 2.0 Settings rewrite made them plain string literals, so they could not be translated in any language. - Wrap them in String(localized:); the English text is unchanged. - Add zh-Hans translations for the four new keys. - Write the vertical sixths as 竖向1/6(第1列), like every other fraction in the catalog (they were the only half-width ones). - README.zh-Hans.md now calls the section 额外快捷键, as the UI does. - Test that the compiled zh-Hans strings contain the four labels. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
|
Thanks!! |
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.
Follow-up to #1916, addressing the report there after 2.0.4: in the Shortcuts tab, the Extra group heading and the Ninths (3x3), Twelfths (3x4) and Sixteenths (4x4) rows were still English in Chinese.
The cause is in code, not the catalog: since the 2.0 Settings rewrite (#1866) those four labels are plain string literals (
settingsDisplayNameinWindowAction.swiftand theCategoryGrouptitle inShortcutsViewController.swift), so they can't be translated in any language. This wraps them inString(localized:); the English text is unchanged.Also in here:
README.zh-Hans.md: the section is called 额外快捷键, as in the UI, and it gains the Debug bundle identifier note that Give Debug builds their own bundle identifier #1927 added toREADME.md.The catalog still has the pre-2.0 keys
Ninths (3×3),Twelfths (4×3)andSixteenths (4×4), which no code uses any more; they carry fa, ko, pt-BR, uk and vi translations if you want to move those over to the new keys.Full test suite passes (625 tests). Checked on screen with a Debug build in Chinese.