Menus: Edit › Preferences says Plugins… and Camera Raw… and has the reference's separators (#11398)

The catalogue now labels the Preferences rows "Plugins…" and "Camera Raw…" (was "Plug-ins…" and "Raw Defaults…"), and the engine label and the dialog page name for plugIns say "Plugins" too. Two "---" rows sit after the first entry and before Camera Raw…. Ids and section keys are unchanged, and each translation file gets "Plugins…" and "Plugins" rows next to the old ones.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
Trevor BrownandClaude Fable 5.1 committed 2026-11-05 11:24:43 -05:00
1 parent 834e253377
commit 9c58dd8ea0
31 files changed
+148 -4

No files matched your search

+1 -1
View File
@@ -177,7 +177,7 @@ pub fn specs() -> Vec<CommandSpec> {
section!("edit.preferences.transparencyAndGamut", "Transparency & Gamut…"),
section!("edit.preferences.unitsAndRulers", "Units & Rulers…"),
section!("edit.preferences.guidesGridAndSlices", "Guides, Grid & Slices…"),
section!("edit.preferences.plugIns", "Plug-ins…"),
section!("edit.preferences.plugIns", "Plugins…"),
section!("edit.preferences.type", "Type…"),
section!("edit.preferences.enhancedControls", "Enhanced Controls…"),
section!("edit.preferences.rawDefaults", "Camera Raw…"),
+1 -1
View File
@@ -21,7 +21,7 @@ pub const SECTIONS: [(&str, &str); 18] = [
("transparencyAndGamut", "Transparency & Gamut"),
("unitsAndRulers", "Units & Rulers"),
("guidesGridAndSlices", "Guides, Grid & Slices"),
("plugIns", "Plug-ins"),
("plugIns", "Plugins"),
("type", "Type"),
("enhancedControls", "Enhanced Controls"),
("rawDefaults", "Camera Raw Defaults"),
+2
View File
@@ -229,6 +229,7 @@
Units & Rulers… الوحدات والمساطر…
Guides, Grid & Slices… خطوط التوجيه والشبكة والشرائح…
Plug-ins… المكونات الإضافية…
Plugins… المكونات الإضافية…
Type… النص…
Enhanced Controls… عناصر التحكم المحسنة…
Camera Raw… Camera Raw…
@@ -660,6 +661,7 @@
Minimum… الحد الأدنى…
Offset… إزاحة…
Plug-ins المكونات الإضافية
Plugins المكونات الإضافية
Proof Setup إعداد المعاينة الطباعية
Proof Colors ألوان المعاينة الطباعية
Gamut Warning تحذير النطاق اللوني
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -207,6 +207,7 @@
Units & Rulers… Jedinice i ravnala…
Guides, Grid & Slices… Vodilice, mreža i isječci…
Plug-ins… Dodaci…
Plugins… Dodaci…
Type… Vrsta…
Enhanced Controls… Poboljšane kontrole…
Camera Raw… Camera Raw…
@@ -605,6 +606,7 @@
Minimum… Minimum…
Offset… Pomak…
Plug-ins Dodaci
Plugins Dodaci
Proof Setup Postavke probnog prikaza
Proof Colors Probne boje
Gamut Warning Upozorenje o gamutu
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -350,6 +350,7 @@
Units & Rulers… Jednotky a pravítka…
Guides, Grid & Slices… Vodítka, mřížka a řezy…
Plug-ins… Zásuvné moduly…
Plugins… Zásuvné moduly…
Type… Text…
Enhanced Controls… Rozšířené ovládání…
Camera Raw… Camera Raw…
@@ -764,6 +765,7 @@
Minimum… Minimum…
Offset… Posun…
Plug-ins Zásuvné moduly
Plugins Zásuvné moduly
Proof Setup Nastavení nátisku
Proof Colors Nátiskové barvy
Gamut Warning Upozornění na gamut
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -686,6 +686,7 @@
Units & Rulers… Enheder og linealer…
Guides, Grid & Slices… Hjælpelinjer, gitter og udsnit…
Plug-ins… Plug-ins…
Plugins… Plug-ins…
Technology Previews Teknologieksempler
Scratch Disks… Arbejdsdiske…
Export Preferences… Eksportpræferencer…
@@ -2008,6 +2009,7 @@
Pixelate Pixelér
Place Scale Marker… Placér skalamarkør…
Plug-ins Plug-ins
Plugins Plug-ins
Print One Copy Udskriv én kopi
Print… Udskriv…
Range Spændvidde
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -321,6 +321,7 @@
Units & Rulers… Einheiten & Lineale…
Guides, Grid & Slices… Hilfslinien, Raster & Slices…
Plug-ins… Plug-ins…
Plugins… Plug-ins…
Type… Text…
Enhanced Controls… Erweiterte Bedienelemente…
Camera Raw… Camera Raw…
@@ -735,6 +736,7 @@
Minimum… Minimum…
Offset… Versatz…
Plug-ins Plug-ins
Plugins Plug-ins
Proof Setup Proof-Setup
Proof Colors Proof-Farben
Gamut Warning Farbumfang-Warnung
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -1847,6 +1847,7 @@
Units & Rulers… Μονάδες και χάρακες…
Guides, Grid & Slices… Οδηγοί, πλέγμα και τομές…
Plug-ins… Πρόσθετα…
Plugins… Πρόσθετα…
Type… Κείμενο…
Enhanced Controls… Προηγμένα χειριστήρια…
Raw Defaults… Προεπιλογές RAW…
@@ -2948,6 +2949,7 @@
Play Αναπαραγωγή
Play selection Αναπαραγωγή επιλογής
Plug-ins Πρόσθετα
Plugins Πρόσθετα
Point size Μέγεθος σε σημεία
Pointillize Πουαντιγισμός
Pointillize… Πουαντιγισμός…
Can't render this file because it contains an unexpected character in line 47 and column 53.
+2
View File
@@ -287,6 +287,7 @@
Units & Rulers… Unidades y reglas…
Guides, Grid & Slices… Guías, cuadrícula y sectores…
Plug-ins… Plugins…
Plugins… Plugins…
Type… Texto…
Enhanced Controls… Controles mejorados…
Camera Raw… Camera Raw…
@@ -702,6 +703,7 @@
Minimum… Mínimo…
Offset… Desplazamiento…
Plug-ins Plugins
Plugins Plugins
Proof Setup Ajuste de prueba
Proof Colors Colores de prueba
Gamut Warning Advertencia de gama
Can't render this file because it contains an unexpected character in line 4 and column 47.
+2
View File
@@ -687,6 +687,7 @@
Units & Rulers… Yksiköt ja viivaimet…
Guides, Grid & Slices… Apuviivat, ruudukko ja viipaleet…
Plug-ins… Laajennukset…
Plugins… Laajennukset…
Technology Previews Teknologian esikatselut
Scratch Disks… Työlevyt…
Export Preferences… Vientiasetukset…
@@ -2009,6 +2010,7 @@
Pixelate Pikselöinti
Place Scale Marker… Sijoita mittakaavamerkki…
Plug-ins Laajennukset
Plugins Laajennukset
Print One Copy Tulosta yksi kopio
Print… Tulosta…
Range Alue
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -317,6 +317,7 @@
Units & Rulers… Unités et règles…
Guides, Grid & Slices… Repères, grille et tranches…
Plug-ins… Extensions…
Plugins… Extensions…
Type… Texte…
Enhanced Controls… Commandes avancées…
Camera Raw… Camera Raw…
@@ -718,6 +719,7 @@
Minimum… Minimum…
Offset… Décalage…
Plug-ins Extensions
Plugins Extensions
Proof Setup Configuration d'épreuve
Proof Colors Couleurs d'épreuve
Gamut Warning Alerte de gamut
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -257,6 +257,7 @@
Place Linked… Csatolt elhelyezése…
Place Scale Marker… Méretarány-jelölő elhelyezése…
Plug-ins… Bővítmények…
Plugins… Bővítmények…
Posterize… Poszterizálás…
Preferences Beállítások
Preset Manager… Előbeállítás-kezelő…
@@ -791,6 +792,7 @@
Pixel Grid Pixelrács
Pixelate Pixelesítés
Plug-ins Bővítmények
Plugins Bővítmények
Pointillize… Pontozás…
Polar Coordinates… Polárkoordináták…
Preferences… Beállítások…
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -310,6 +310,7 @@
Units & Rulers… Satuan & Penggaris…
Guides, Grid & Slices… Panduan, Grid & Slice…
Plug-ins… Plug-in…
Plugins… Plug-in…
Type… Teks…
Enhanced Controls… Kontrol Lanjutan…
Camera Raw… Camera Raw…
@@ -711,6 +712,7 @@
Minimum… Minimum…
Offset… Offset…
Plug-ins Plug-in
Plugins Plug-in
Proof Setup Pengaturan Proof
Proof Colors Warna Proof
Gamut Warning Peringatan Gamut
Can't render this file because it contains an unexpected character in line 4 and column 47.
+2
View File
@@ -333,6 +333,7 @@
Units & Rulers… Unità e righelli…
Guides, Grid & Slices… Guide, griglia e sezioni…
Plug-ins… Plug-in…
Plugins… Plug-in…
Type… Testo…
Enhanced Controls… Controlli avanzati…
Camera Raw… Camera Raw…
@@ -745,6 +746,7 @@
Minimum… Minimo…
Offset… Scostamento…
Plug-ins Plug-in
Plugins Plug-in
Proof Setup Configurazione prova
Proof Colors Colori di prova
Gamut Warning Avviso gamma
Can't render this file because it contains an unexpected character in line 79 and column 53.
+2
View File
@@ -343,6 +343,7 @@
Units & Rulers… 単位・定規…
Guides, Grid & Slices… ガイド・グリッド・スライス…
Plug-ins… プラグイン…
Plugins… プラグイン…
Type… 文字…
Enhanced Controls… 拡張コントロール…
Camera Raw… Camera Raw…
@@ -756,6 +757,7 @@
Minimum… 最小値…
Offset… オフセット…
Plug-ins プラグイン
Plugins プラグイン
Proof Setup 校正設定
Proof Colors 色の校正
Gamut Warning 色域外警告
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -314,6 +314,7 @@
Units & Rulers… 단위 및 눈금자…
Guides, Grid & Slices… 안내선, 격자 및 분할 영역…
Plug-ins… 플러그인…
Plugins… 플러그인…
Type… 문자…
Enhanced Controls… 고급 컨트롤…
Camera Raw… Camera Raw…
@@ -721,6 +722,7 @@
Minimum… 최소값…
Offset… 오프셋…
Plug-ins 플러그인
Plugins 플러그인
Proof Setup 교정 설정
Proof Colors 교정 색상
Gamut Warning 색상 범위 경고
Can't render this file because it contains an unexpected character in line 63 and column 53.
+2
View File
@@ -686,6 +686,7 @@
Units & Rulers… Enheter og linjaler…
Guides, Grid & Slices… Hjelpelinjer, rutenett og segmenter…
Plug-ins… Programtillegg…
Plugins… Programtillegg…
Technology Previews Teknologiforhåndsvisninger
Scratch Disks… Arbeidsdisker…
Export Preferences… Eksportinnstillinger…
@@ -2008,6 +2009,7 @@
Pixelate Pikseler
Place Scale Marker… Plasser skalamarkør…
Plug-ins Programtillegg
Plugins Programtillegg
Print One Copy Skriv ut ett eksemplar
Print… Skriv ut…
Range Område
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -275,6 +275,7 @@
Units & Rulers… Eenheden en linialen…
Guides, Grid & Slices… Hulplijnen, raster en segmenten…
Plug-ins… Plug-ins…
Plugins… Plug-ins…
Type… Tekst…
Enhanced Controls… Uitgebreide bediening…
Camera Raw… Camera Raw…
@@ -687,6 +688,7 @@
Minimum… Minimum…
Offset… Verschuiving…
Plug-ins Plug-ins
Plugins Plug-ins
Proof Setup Proefinstellingen
Proof Colors Proefkleuren
Gamut Warning Waarschuwing kleurbereik
Can't render this file because it contains an unexpected character in line 8 and column 34.
+2
View File
@@ -318,6 +318,7 @@
Units & Rulers… Jednostki i linijki…
Guides, Grid & Slices… Prowadnice, siatka i plasterki…
Plug-ins… Wtyczki…
Plugins… Wtyczki…
Type… Tekst…
Enhanced Controls… Ulepszone elementy sterujące…
Camera Raw… Camera Raw…
@@ -732,6 +733,7 @@
Minimum… Minimum…
Offset… Przesunięcie…
Plug-ins Wtyczki
Plugins Wtyczki
Proof Setup Ustawienia próbnego wydruku
Proof Colors Kolory próbne
Gamut Warning Ostrzeżenie o gamucie
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -313,6 +313,7 @@
Units & Rulers… Unidades e réguas…
Guides, Grid & Slices… Guias, grade e fatias…
Plug-ins… Plug-ins…
Plugins… Plug-ins…
Type… Tipo…
Enhanced Controls… Controles aprimorados…
Camera Raw… Camera Raw…
@@ -712,6 +713,7 @@
Minimum… Mínimo…
Offset… Deslocamento…
Plug-ins Plug-ins
Plugins Plug-ins
Proof Setup Configuração de prova
Proof Colors Cores de prova
Gamut Warning Aviso de gama
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -846,6 +846,7 @@
Units & Rulers… Единицы и линейки…
Guides, Grid & Slices… Направляющие, сетка и фрагменты…
Plug-ins… Плагины…
Plugins… Плагины…
Technology Previews Предпросмотр технологий
Scratch Disks… Рабочие диски…
Export Preferences… Экспорт настроек…
@@ -2106,6 +2107,7 @@
Pixelate Оформление пикселями
Place Scale Marker… Шкала масштаба…
Plug-ins Плагины
Plugins Плагины
Print One Copy Печать одной копии
Print… Печать…
Range Диапазон
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -339,6 +339,7 @@
Units & Rulers… Jedinice i lenjiri…
Guides, Grid & Slices… Vodilje, mreža i isečci…
Plug-ins… Dodaci…
Plugins… Dodaci…
Type… Tekst…
Enhanced Controls… Napredne kontrole…
Camera Raw… Camera Raw…
@@ -738,6 +739,7 @@
Minimum… Minimum…
Offset… Pomak…
Plug-ins Dodaci
Plugins Dodaci
Proof Setup Podešavanje probnog prikaza
Proof Colors Probne boje
Gamut Warning Upozorenje o gamutu
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -684,6 +684,7 @@
Units & Rulers… Enheter och linjaler…
Guides, Grid & Slices… Stödlinjer, rutnät och skivor…
Plug-ins… Plugin-program…
Plugins… Plugin-program…
Technology Previews Teknikförhandsgranskningar
Scratch Disks… Arbetsdiskar…
Export Preferences… Exportinställningar…
@@ -2006,6 +2007,7 @@
Pixelate Pixla
Place Scale Marker… Placera skalmarkör…
Plug-ins Plugin-program
Plugins Plugin-program
Print One Copy Skriv ut en kopia
Print… Skriv ut…
Range Intervall
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -242,6 +242,7 @@
Units & Rulers… Birimler ve Cetveller…
Guides, Grid & Slices… Kılavuzlar, Izgaralar ve Dilimler…
Plug-ins… Eklentiler…
Plugins… Eklentiler…
Type… Metin…
Enhanced Controls… Gelişmiş Kontroller…
Camera Raw… Camera Raw…
@@ -652,6 +653,7 @@
Minimum… Minimum…
Offset… Kaydırma…
Plug-ins Eklentiler
Plugins Eklentiler
Proof Setup Prova Kurulumu
Proof Colors Prova Renkleri
Gamut Warning Gamut Uyarısı
Can't render this file because it contains an unexpected character in line 8 and column 34.
+2
View File
@@ -816,6 +816,7 @@
Units & Rulers… Одиниці та лінійки…
Guides, Grid & Slices… Напрямні, сітка та фрагменти…
Plug-ins… Плагіни…
Plugins… Плагіни…
Technology Previews Попередній перегляд технологій
Scratch Disks… Робочі диски…
Export Preferences… Налаштування експорту…
@@ -2073,6 +2074,7 @@
Pixelate Пікселізація
Place Scale Marker… Розмістити маркер масштабу…
Plug-ins Плагіни
Plugins Плагіни
Print One Copy Надрукувати одну копію
Print… Друк…
Range Діапазон
Can't render this file because it contains an unexpected character in line 152 and column 53.
+2
View File
@@ -275,6 +275,7 @@
Place Embedded… Đặt nhúng…
Place Linked… Đặt liên kết…
Plug-ins… Plug-in…
Plugins… Plug-in…
Preferences Tùy chọn
Preset Manager… Quản lý thiết lập sẵn…
Presets Thiết lập sẵn
@@ -1605,6 +1606,7 @@ cameraRaw Shadows Vùng tối
Picas Pica
Pixels Pixel
Plug-ins Plug-in
Plugins Plug-in
Png PNG
Point size Cỡ point
Points Point
Can't render this file because it contains an unexpected character in line 6 and column 47.
+2
View File
@@ -323,6 +323,7 @@
Units & Rulers… 单位与标尺…
Guides, Grid & Slices… 参考线、网格与切片…
Plug-ins… 插件…
Plugins… 插件…
Type… 文字…
3D… 3D…
Enhanced Controls… 增强控件…
@@ -740,6 +741,7 @@
Minimum… 最小值…
Offset… 位移…
Plug-ins 插件
Plugins 插件
Proof Setup 校样设置
Proof Colors 校样颜色
Gamut Warning 色域警告
Can't render this file because it contains an unexpected character in line 63 and column 53.
+2
View File
@@ -324,6 +324,7 @@
Units & Rulers… 單位和尺標…
Guides, Grid & Slices… 參考線、格點和切片…
Plug-ins… 增效模組…
Plugins… 增效模組…
Type… 文字…
Enhanced Controls… 增強控制項…
Camera Raw… Camera Raw…
@@ -739,6 +740,7 @@
Minimum… 最小…
Offset… 畫面錯位…
Plug-ins 增效模組
Plugins 增效模組
Proof Setup 校樣設定
Proof Colors 校樣色彩
Gamut Warning 色域警告
Can't render this file because it contains an unexpected character in line 6 and column 47.
+3
View File
@@ -920,3 +920,6 @@ mod saved_path_edit_tests;
#[cfg(test)]
mod pen_path_ownership_tests;
#[cfg(test)]
mod preferences_submenu_tests;
+4 -2
View File
@@ -149,6 +149,7 @@ pub static CATALOG: &[(&[&str], &str, Option<&str>, &str)] = &[
(&["Edit"], "Toolbar…", None, "edit.toolbar"),
(&["Edit"], "---", None, "---"),
(&["Edit", "Preferences"], "Settings…", Some("Cmd+K"), "edit.preferences.general"),
(&["Edit", "Preferences"], "---", None, "---"),
(&["Edit", "Preferences"], "AI Integrations…", None, "edit.preferences.integrations"),
(&["Edit", "Preferences"], "Interface…", None, "edit.preferences.interface"),
(&["Edit", "Preferences"], "Workspace…", None, "edit.preferences.workspace"),
@@ -162,10 +163,11 @@ pub static CATALOG: &[(&[&str], &str, Option<&str>, &str)] = &[
(&["Edit", "Preferences"], "Transparency & Gamut…", None, "edit.preferences.transparencyAndGamut"),
(&["Edit", "Preferences"], "Units & Rulers…", None, "edit.preferences.unitsAndRulers"),
(&["Edit", "Preferences"], "Guides, Grid & Slices…", None, "edit.preferences.guidesGridAndSlices"),
(&["Edit", "Preferences"], "Plug-ins…", None, "edit.preferences.plugIns"),
(&["Edit", "Preferences"], "Plugins…", None, "edit.preferences.plugIns"),
(&["Edit", "Preferences"], "Type…", None, "edit.preferences.type"),
(&["Edit", "Preferences"], "Enhanced Controls…", None, "edit.preferences.enhancedControls"),
(&["Edit", "Preferences"], "Raw Defaults…", None, "edit.preferences.rawDefaults"),
(&["Edit", "Preferences"], "---", None, "---"),
(&["Edit", "Preferences"], "Camera Raw…", None, "edit.preferences.rawDefaults"),
(&["Image", "Mode"], "Bitmap", None, "image.mode.bitmap"),
(&["Image", "Mode"], "Grayscale", None, "image.mode.grayscale"),
(&["Image", "Mode"], "Duotone", None, "image.mode.duotone"),
@@ -0,0 +1,87 @@
//! #11398: Edit › Preferences says "Plugins…" and "Camera Raw…" and has the reference
//! application's two separators (after the first entry and before Camera Raw…).
use crate::menu_catalog::CATALOG;
/// The submenu's rows, top to bottom: (label or "---", command id).
fn rows() -> Vec<(&'static str, &'static str)> {
CATALOG.iter().filter(|e| e.0 == ["Edit", "Preferences"]).map(|e| (e.1, e.3)).collect()
}
#[test]
fn preferences_submenu_reads_in_the_reference_order_with_two_separators() {
let labels: Vec<&str> = rows().into_iter().map(|r| r.0).collect();
// Row 1 ("Settings…") is #8239's: whatever it says, it is first and followed by a separator.
assert_eq!(
&labels[1..],
[
"---",
"AI Integrations…",
"Interface…",
"Workspace…",
"Tools…",
"History Log…",
"File Handling…",
"Export…",
"Performance…",
"Scratch Disks…",
"Cursors…",
"Transparency & Gamut…",
"Units & Rulers…",
"Guides, Grid & Slices…",
"Plugins…",
"Type…",
"Enhanced Controls…",
"---",
"Camera Raw…",
]
);
}
#[test]
fn preferences_submenu_ids_are_unchanged() {
let ids: Vec<&str> = rows().into_iter().map(|r| r.1).collect();
assert_eq!(
ids,
[
"edit.preferences.general",
"---",
"edit.preferences.integrations",
"edit.preferences.interface",
"edit.preferences.workspace",
"edit.preferences.tools",
"edit.preferences.historyLog",
"edit.preferences.fileHandling",
"edit.preferences.export",
"edit.preferences.performance",
"edit.preferences.scratchDisks",
"edit.preferences.cursors",
"edit.preferences.transparencyAndGamut",
"edit.preferences.unitsAndRulers",
"edit.preferences.guidesGridAndSlices",
"edit.preferences.plugIns",
"edit.preferences.type",
"edit.preferences.enhancedControls",
"---",
"edit.preferences.rawDefaults",
]
);
}
#[test]
fn engine_labels_match_the_catalogue_for_the_renamed_rows() {
for id in ["edit.preferences.plugIns", "edit.preferences.rawDefaults"] {
let catalogue = CATALOG.iter().find(|e| e.3 == id).unwrap_or_else(|| panic!("{id} missing from the catalogue")).1;
let engine = photocraft_engine::commands::find(id).unwrap_or_else(|| panic!("{id} missing from the engine")).label;
assert_eq!(engine, catalogue, "{id}");
}
assert_eq!(photocraft_engine::commands::find("edit.preferences.plugIns").unwrap().label, "Plugins…");
assert_eq!(photocraft_engine::commands::find("edit.preferences.rawDefaults").unwrap().label, "Camera Raw…");
}
#[test]
fn preferences_dialog_page_names_follow_the_menu() {
let title = |key: &str| photocraft_engine::prefs::SECTIONS.iter().find(|(k, _)| *k == key).map(|(_, t)| *t);
assert_eq!(title("plugIns"), Some("Plugins"));
assert_eq!(title("rawDefaults"), Some("Camera Raw Defaults"));
}