Skip to content

Complete the Japanese (ja) localization - #1970

Merged
rxhanson merged 1 commit into
rxhanson:mainfrom
poife:update-japanese-localization
Nov 19, 2026
Merged

rxhanson merged 1 commit into
rxhanson:mainfrom
poife:update-japanese-localization

Conversation

@poife

@poife poife commented Nov 19, 2026 •

Copy link
Copy Markdown

What

Completes the Japanese (ja) localization across both string catalogs (Rectangle/Localizable.xcstrings and Rectangle/mul.lproj/Main.xcstrings), which has not been updated since #1470.

Catalog Added needs_review resolved
Localizable.xcstrings 179 16
Main.xcstrings 16 2

All translatable strings in ja are now translated with 0 entries left to review (leaving only the 6 symbol keys %, ½, ⅓, ¼, ⅔, ¾ and the empty key untranslated, matching zh-Hans, zh-Hant, and hi).

Translation Principles

  1. Faithful to the English source: Avoid over-interpreting or strengthening nuances (e.g. similar to Windows → Windows風 rather than Windows 互換).
  2. Aligned with actual runtime behavior: Check each setting and action against the implementation so labels accurately describe what Rectangle does.
  3. Official macOS Japanese UI conventions: Follow standard macOS terms and formatting (ウインドウ, システム設定, デスクトップとDock, ステージマネージャ, full-width Japanese parentheses (…)).
  4. Clear, natural Japanese: Prefer plain Japanese over unnecessary katakana or technical jargon (四隅 / 角 instead of コーナー, 一覧 instead of リスト, もう一方の軸 instead of 直交軸).

Translation Intent & Rationale by Category

Side actions vs. Half actions

Following #1957, side actions no longer say "half" (半分) in their names, since repeating them cycles through 1/2, 2/3, and 1/3. Existing ja strings updated from main:

English Before After
Right 右半分 右
Top 上半分 上
Bottom 下半分 下
Center 半分にして中央に表示 中央
Sides (Localizable & Main) 半分 サイド
Left or right side 左半分または右半分 左側または右側
Left side, top/bottom side near corners 左半分、画面端付近の上半分・下半分 左側、角付近の上・下
Right side, top/bottom side near corners 右半分、画面端付近の上半分・下半分 右側、角付近の上・下
Thirds, top/bottom side near corners 3分割、画面端付近の上半分・下半分 3分割、角付近の上・下
cycle sizes on side actions サイズを半分にするのを繰り返す サイド操作でサイズを繰り返し変更
If you repeat move or side actions… (Localizable & Main) …半分のサイズに変更する動作… …サイド動作…
Cycle across displays on repeated left or right commands (SXx-HZ-GkB.title) 左半分/左半分にサイズ変更するコマンドを繰り返したら… 左または右コマンドを繰り返したら…
  • Left was already 左 on main, and the newly added Top/bottom sides (上側・下側) and Top/bottoms (上・下) follow the same plain-name convention.
  • Strings whose English source explicitly says "half actions" and whose default behavior operates on halves (Switch to the opposite side on half actions → 半分操作で反対側に切り替え, Preserve side axis size for half actions, similar to Windows → 半分操作時にもう一方の軸のサイズを維持(Windows風)) keep 半分操作 to match both the source text and actual behavior, as in Complete the Italian, Brazilian Portuguese and Spanish translations #1957.

Corners (四隅 / 角) & Side Split Ratio

  • Corners (Localizable & Main) was previously translated as 画面端 ("screen edge"), which blurred the distinction between screen edges and corners. Updated Corners to 四隅, unified corner/quadrant shortcut settings (cycle positions on quadrants…, Cyclic corner shortcuts expand, Resize adjacent windows…) to 四隅, and updated compound Snap Area strings (near corners → 角付近, Top/Bottom sixths & eighths from corners → 角からドラッグで…) to match the actual corner-triggered snap behavior.
  • Side Split Ratio (左右・上下の分割比率) caption Configure the divide between side and corner actions is translated as サイド・四隅操作の分割位置を設定 so it clearly describes the layout split position rather than a drag-zone boundary.

Stacked Windows (重なったウインドウ)

  • Only stack windows of the same size is translated as 同じサイズのウインドウのみを重なりとして扱う so it accurately reflects StackBadgeManager (controlling which windows are grouped/counted for the window list and cycle shortcuts, rather than preventing windows of different sizes from overlapping).
  • Unified "window list" phrasing across the section to ウインドウ一覧 / 一覧.

Grid & Subdivision Actions

  • Ninths (3×3): Uses directional Japanese (左上 1/9, 中央 1/9, 右下 1/9) since 3×3 positions are immediately intuitive.
  • Eighths (2×4), Twelfths (3×4), Sixteenths (4×4): Uses row/column coordinates (1行1列 1/8–2行4列 1/8, 1行1列 1/12–3行4列 1/12, 1行1列 1/16–4行4列 1/16) matching the landscape grid layout, as 4-column/4-row directional terms become verbose and hard to scan in Japanese.
  • Vertical Sixths & Eighths: Uses 縦 1/6(左から1番目) / 縦 1/8(左から1番目), consistent with the existing Fourth translations (左から1番目–左から4番目).

Extra vs. Extras

  • The collapsible group heading Extra in Shortcuts is 追加ショートカット, and the corresponding Behavior toggle Show *Extra* shortcuts in menu is メニューに「追加ショートカット」を表示, using Japanese brackets 「…」 for a direct 1:1 reference instead of italic markdown *…*.
  • The Behavior disclosure section Extras is translated as その他 to distinguish it from Extra shortcuts.

Across Display Settings

  • When off, window-to-screen edges are preserved where applicable. is translated as オフの場合、該当する箇所ではウインドウが画面端に接している位置関係が維持されます。 to reflect DisplayTransfer's edge-preserving behavior.
  • Cursor screen detection labels reflect targeting the display containing the cursor.

Todo Mode, Settings Actions, Tiling & Other Fixes

  • Normalized ToDo → Todo across existing entries; updated Todo Side Left / Todo Side Right (左 / 右, fixing Todo Side Right from 右半分) and Keep a chosen application visible… (右側に → 指定した側に) for Give the Todo side its own strings #1966.
  • Translated Export / Import as 設定をエクスポート / 設定をインポート so their purpose is clear without a surrounding "Config" heading in AppSettingsView.
  • Kept Check for Updates… as the existing アップデートを確認…, and translated Update Available… as アップデート可能….
  • Fixed the Ractangle → Rectangle typo in both catalogs and aligned Center Two Thirds / Center Three Fourths to 〜にして中央に表示.
  • Standardized macOS System Settings paths to official Japanese システム設定 → デスクトップとDock → ウインドウ and used full-width parentheses for Width Step (px) (幅の変更単位(px)).

Tests

  • RectangleTests/RectangleTests.swift: added Japanese coverage to SettingsLabelLocalizationTests and TodoSideLocalizationTests.

Verification

  • Both .xcstrings catalogs compile cleanly via xcrun xcstringstool compile.
  • SettingsLabelLocalizationTests and TodoSideLocalizationTests pass via xcodebuild test on xcode-27 (GitHub Actions).
  • Build workflow (xcode-27) builds Rectangle.dmg cleanly on the fork.

@poife
poife force-pushed the update-japanese-localization branch from e5ecb35 to 1ae3a21 Compare November 19, 2026 06:52
Add all missing Japanese translations and resolve all needs_review entries across Localizable.xcstrings and Main.xcstrings, drop 'half' wording from side action names (#1957), unify Corners to 四隅/角, align phrasing with actual runtime behavior, and add Japanese localization test coverage.
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