Skip to content

Localize the remaining Settings labels for zh-Hans - #1939

Merged
rxhanson merged 2 commits into
rxhanson:mainfrom
AkiyamaKunka:l10n/zh-hans-followup
Oct 25, 2026
Merged

rxhanson merged 2 commits into
rxhanson:mainfrom
AkiyamaKunka:l10n/zh-hans-followup

Conversation

@AkiyamaKunka

@AkiyamaKunka AkiyamaKunka commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

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 (settingsDisplayName in WindowAction.swift and the CategoryGroup title in ShortcutsViewController.swift), so they can't be translated in any language. This wraps them in String(localized:); the English text is unchanged.

Also in here:

  • zh-Hans translations for the four new keys (额外快捷键, 九等分(3×3), 十二等分(3×4), 十六等分(4×4)).
  • The vertical sixths are now written 竖向1/6(第1列), like every other fraction in the catalog; they were the only half-width ones.
  • 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 to README.md.
  • A test that the compiled zh-Hans strings contain the four labels.

The catalog still has the pre-2.0 keys Ninths (3×3), Twelfths (4×3) and Sixteenths (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.

AkiyamaKunka and others added 2 commits October 22, 2026 21:54
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]>
@AkiyamaKunka
AkiyamaKunka marked this pull request as ready for review October 23, 2026 03:05
@rxhanson
rxhanson merged commit 5092255 into rxhanson:main Oct 25, 2026
1 check passed
@rxhanson

Copy link
Copy Markdown
Owner

Thanks!!

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.

2 participants