Skip to content

Review the Simplified Chinese (zh-Hans) Rectangle Pro strings - #282

Merged
rxhanson merged 3 commits into
rxhanson:mainfrom
AkiyamaKunka:zh-Hans-rectangle-pro
Nov 13, 2026
Merged

rxhanson merged 3 commits into
rxhanson:mainfrom
AkiyamaKunka:zh-Hans-rectangle-pro

Conversation

@AkiyamaKunka

@AkiyamaKunka AkiyamaKunka commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to rxhanson/Rectangle#1929. This reviews every Rectangle Pro string in zh-Hans.xliff: the Rectangle Pro/ and RectangleProLauncher/ files plus the shared AccessibilityAuth and KeyBind packages, 761 strings in all.

  • 447 of your first-cut strings were already right and are kept as written.
  • 310 are changed and 1 that had no translation is filled.
  • 3 stay untranslated on purpose: the empty string, -, and the bundle name Rectangle Pro.
  • Reviewed strings are marked translated. Two stay needs-review-l10n because I couldn't confirm their meaning (see below).

Only <target> text and state change. <source>, Source Contents and the translate="no" units are untouched. A script checked every target for the same format specifiers as the source, \n, edge spaces, …, the key symbols and app names.

How it reads

  • Same names as Rectangle. Where Rectangle's zh-Hans already has the identical English (window actions, shared settings), Pro uses the same Chinese, so people coming from Rectangle see the same names. Fractions in action names use Rectangle's full-width style (左首1/3, 左上1/6, 下排左1/8); the Pro-only fifths follow the same pattern (左首1/5 … 右首1/5).
  • Pro feature names match the Chinese site (rectangleapp.com/zh-CN/pro): 窗口投掷 (Window Throw), 长投掷, 快速投掷, 收起 (Stash), 固定 (Pin), 吸附目标, 吸附面板. The first cut mixed 抛掷 and 贴边 for these.
  • Apple's current macOS wording for system names and standard menu items (系统设置, 隐私与安全性, 辅助功能, 程序坞, 调度中心, 台前调度, 关于, 退出, 全部显示…), with each System Settings path element quoted: 前往“系统设置”→“隐私与安全性”→“辅助功能”.
  • No pronoun where Chinese doesn't need one, and 您 where it does, as Rectangle's zh-Hans does (the first cut used 你 in 21 strings).
  • Consistency: identical English now has identical Chinese everywhere, including the storyboard and Localizable copies.

Notes and questions

  1. The English hint "Select Custom in the dropdown…" (Welcome oRJ-Dg-xRi, p9j-pp-GAN) is out of date: the Position popup item is now Custom Origin. The Chinese names the real item, 自定义原点.
  2. %@ Execution → %@次执行 assumes %@ comes from an ordinal NumberFormatter, which gives 第2 in zh-Hans, so the result reads 第2次执行. If it's a bare number instead, it should be 第 %@ 次执行. The ja first cut %@回目の実行 has the same question.
  3. I couldn't find these in the docs and translated them from context; happy to change any:
    • App Collate Left/Right → 应用窗口向左/向右聚拢 (left as needs-review-l10n)
    • Last → 上一个位置
    • Specified → 指定大小
    • Upper Center → 上部居中
    • Center Prominently → 居中偏上
    • Reverse All → 全部反转
    • Selector → 选择器
  4. The shared KeyBind and AccessibilityAuth strings were reviewed too. For example, 授权“%@” is now 授权 %@, to match 退出 %@ and Rectangle's 退出 Rectangle.
  5. The bare Left / Right / Top / Bottom / Center keys: in Rectangle these exact keys are the half-action names (WindowAction.displayName), and Pro's catalog has no separate "Left Half" key. RectanglePro-Community #934 lists a layout's repetitions as "Left / Restore / Right / Restore", which suggests the Preset picker shows these keys for the halves. But Pro's Center has the comment "Display string for the center location", so the keys also look like position labels. One translation can't serve both. I used the position words (左侧/右侧/顶部/底部/居中). If they only name the halves, they should be Rectangle's 左半屏/右半屏/上半屏/下半屏/中间半屏, and if they're shared, separate keys would fix it for every language. Rectangle has the same problem with its Todo side picker.
  6. "Hold any modifier key or use the window menu for default macOS behavior" (under the green-button option): is that the menu that appears when hovering the green button, or the Window menu in the menu bar? I kept “窗口”菜单 (the menu-bar Window menu); if it's the button's menu it should be 绿色按钮的菜单. Rectangle has the identical string.

The Multitouch strings are in #283.

AkiyamaKunka and others added 2 commits November 12, 2026 23:19
Reviews all 761 Rectangle Pro strings in zh-Hans.xliff, including the shared AccessibilityAuth and KeyBind packages: 447 kept, 310 changed, 1 filled. Names match Rectangle's zh-Hans and the Chinese Pro page, system names follow Apple's current macOS wording, and identical English now has identical Chinese. Only <target> text and state change.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
聚焦 is Apple's Chinese name for Spotlight, which sits in the same action menus in Multitouch; Apple writes 将焦点移到… for focus shortcuts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sixths options apply when the drag comes in from a corner (Rectangle's compound snap calculations check the previous snap area), not when the pointer is near one: 从角落拖入则底部⅙;否则⅓, 从角落拖入则顶部⅙;否则最大化.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@rxhanson

Copy link
Copy Markdown
Owner

Awesome! I'm going to go ahead and merge both of these, adjust some of the questionable parts, and then any remaining changes can be done after if still necessary. Thanks! I emailed with a Multitouch license code, so let me know if for some reason you didn't get it.

@rxhanson
rxhanson merged commit 2c6a0dc into rxhanson:main Nov 13, 2026
@rxhanson

Copy link
Copy Markdown
Owner

Thanks again for #282 and #283! Your notes turned up several places where the English itself was ambiguous or out of date, so I fixed those in the apps and exported again. That changed the source strings for every language, not just zh-Hans. Here's how each question was resolved.

Rectangle Pro (#282)

  1. "Select Custom in the dropdown…" The English was out of date. It now says "Select Custom Origin in the dropdown…", which matches your 自定义原点.
  2. %@ Execution It's a bare number, not an ordinal. Ordinal.formatBeforeNoun deliberately passes a plain 2 for zh and ja. I changed it to 第 %@ 次执行, which follows your spacing elsewhere (第 N 次执行).
  3. Translated from context:
    • App Collate Left/Right: these actions aren't implemented or shown yet. I kept your 应用窗口向左/向右聚拢 and marked them translated.
    • Last, Specified, Upper Center, Center Prominently, Reverse All, Selector: all correct as written.
      • Last moves the window back to where it was before the last action.
      • Specified resizes to a set width and height, then centers.
  4. 授权 %@ 👍
  5. Bare Left / Right / Top / Bottom / Center:
    The half actions now have their own keys, Left Half, Right Half, Top Half, Bottom Half and Center Half, though the English still shows "Left" etc. Removing half for the window actions is actually my desired path since I'll be rolling in a change from Rectangle that allows custom half split percentages, but it is acceptable either way.
    • The zh-Hans for these comes from Rectangle: 左半屏/右半屏/上半屏/下半屏/中间半屏.
    • Your position words (左侧/右侧/顶部/底部/居中) are now correct for the bare keys.
  6. "use the window menu": this is the Window menu in the menu bar, so your 「窗口」菜单 is right.

Multitouch (#283)

  1. Left / Right: in Multitouch these only appear in the Dominant Hand picker, so 左手/右手 is correct. Xcode skipped them on import because they were marked needs-review-l10n, so I applied them by hand.

  2. Center on display with cursor / focus, Center on next / previous display: these are cursor actions that move the pointer, and the window doesn't move. The old auto-generated comments were misleading, so I rewrote them, and the zh-Hans now reads:

    • 将光标移到当前窗口所在显示器的中央
    • 将光标移到当前所在显示器的中央
    • 将光标移到上一个/下一个显示器的中央
  3. Relaunch versus restart: I made the English consistent first. Everything where the app restarts itself now says "relaunch":

    • "Restart on wake" → "Relaunch on wake" (both apps)
    • "This will restart Multitouch" → "This will relaunch Multitouch"
    • "Restarting the app on wake…" → "Relaunching the app on wake…"

    For Chinese I went with your suggestion, split by who does it:

    • 重新启动 when the app relaunches itself. This covers Relaunch, Delay Relaunch After Wake, Relaunch on wake, This will relaunch…, Reset permissions and relaunch, and Relaunching the app on wake…
    • 重新打开 when the user opens an app again. This covers relaunch from Finder…, Then relaunch Multitouch…, and "try relaunching that app" (which was 重新启动 before).
  4. Launchpad: the label now follows the system. macOS 26+ shows a new launchpad.apps key (English "Apps"), and earlier versions keep "Launchpad". The new key uses Apple's own name for the Apps app, which is App in zh-Hans and zh-Hant, so 启动台 stays for older systems.

  5. Send Window …: those actions (the SizeUp/Moom/iTunes integrations) were removed, so the strings are gone from this export.

Your Double tap, Force Touch Middle Click and Left/Middle/Right Click choices are all kept as written.

Shared strings

Your review also showed that many strings were duplicated between the two apps. In the next export, strings used by both apps live only in Rectangle Pro's Localizable table. That covers generic UI, license and update strings, and the window action names, and Multitouch now uses those shared translations. Since your zh-Hans was already identical in both places, nothing visible changes. "Activate Rectangle Pro" and "Activate Multitouch" are now a single Activate %@ (激活 %@). The Multitouch table now contains only Multitouch-specific strings.

Thanks again! I think we're all set now for this round.

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