From 1807f9ef3773eb6c8c11b34dfbac149f490a1315 Mon Sep 17 00:00:00 2001 From: tareq Date: Tue, 24 Nov 2026 09:38:51 +0100 Subject: [PATCH 1/6] feat(i18n): add Arabic language support, catalog and 6-form plural rules --- crates/ui-egui/src/i18n.rs | 1 + crates/ui-egui/src/i18n/ar.tsv | 888 +++++++++++++++++++++++++++++++ crates/ui-egui/src/i18n/tests.rs | 34 +- docs/localization-parity.md | 5 +- 4 files changed, 924 insertions(+), 4 deletions(-) create mode 100644 crates/ui-egui/src/i18n/ar.tsv diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index ec1296192f..1900d249aa 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -69,6 +69,7 @@ static EMBEDDED: &Embedded = &[ ("fi", "", include_str!("i18n/fi.tsv")), ("tr", "", include_str!("i18n/tr.tsv")), ("ca", "", include_str!("i18n/ca.tsv")), + ("ar", "", include_str!("i18n/ar.tsv")), ]; /// The codes of [`EMBEDDED`] the interface offers. Browsers cannot use the native installed-font diff --git a/crates/ui-egui/src/i18n/ar.tsv b/crates/ui-egui/src/i18n/ar.tsv new file mode 100644 index 0000000000..353f6dd5b9 --- /dev/null +++ b/crates/ui-egui/src/i18n/ar.tsv @@ -0,0 +1,888 @@ +# Arabic (ar) catalog. Same format as zh-hant.tsv: context source translation +# (empty context = a plain UI string; `@id` = a command id; `@plural` = 6 CLDR forms; +# `@msg` = a status or error message). +# +# Clean-room: written from the meaning of VectorCraft's English labels in Modern Standard Arabic, +# using ordinary vector-illustration vocabulary (لوحة عمل، مسار، نقطة إرساء، حد، +# تعبئة، عينة لون، تدرج، قناع، طبقة). No other application's Arabic localisation +# resource, string table or product UI was consulted or copied; add entries the same way. +# +# Conventions: labels use standard Arabic creative suite terminology. Plural rule (CLDR): +# zero|one|two|few|many|other. Status and error messages (`@msg`) keep the case of their English +# first word. Left in English on purpose (`MENU_KEEP_AS_IS` in the tests): the product name +# (VectorCraft), OpenType, the built-in workspace names and perspective grid presets. +# Every `ar-*` locale (ar-SA, ar-EG, ar-AE, ar-MA, ar-KW, etc.) resolves here. Keep the +# placeholders ({name}), trailing "…" and leading/trailing spaces of fragments exactly as they are. +@id language.name العربية + % of all commits % من كل الإيداعات + 16 bit 16 بت + 24 bits/pixel 24 بت/بكسل + 32 bits/pixel 32 بت/بكسل + 8 bit 8 بت + About حول + Absolute مطلق + Absolute Colorimetric قياس لوني مطلق + Actions الإجراءات + Activate Panel تنشيط اللوحة + Actual Size الحجم الفعلي + Adaptive تكيفي + Add إضافة + Add Anchor Point إضافة نقطة إرساء + Add Anchor Point Tool أداة إضافة نقطة ارتكاز + Add Anchor Points إضافة نقاط إرساء + Add to Swatches إضافة إلى عينات الألوان + Advanced متقدم + Align محاذاة + All الكل + All Caps جميع الأحرف كبيرة + All Layers كل الطبقات + All Slices كل الشرائح + Alt Alt + Amount المقدار + Amount: المقدار: + Anchor Point نقطة إرساء + Angle الزاوية + Angle: الزاوية: + Anti-alias إزالة التسنن + Anti-Alias إزالة التسنن + Appearance المظهر + Appearance of Black مظهر اللون الأسود + Apply تطبيق + Arc قوس + Arrange ترتيب + Art & Illustration الفن والرسم التوضيحي + Artboard لوح التصميم + Artboard Tool أداة لوحة العمل + Artboards لوحات العمل + ArtCraft Website موقع ArtCraft + ArtCraft website موقع ArtCraft + Aspect Ratio نسبة العرض إلى الارتفاع + Assign Profile… تعيين ملف تعريف… + Attributes السمات + Author: المؤلف: + Auto تلقائي + Auto Color لون تلقائي + Auto-Collapse Iconic Panels طي الألواح الرمزية تلقائيًا + Automate أتمتة + Automatic تلقائي + Average متوسط + Average… توسيط… + Background Contents محتويات الخلفية + Balance التوازن + Baseline خط الأساس + Baseline Optimized أساسي محسّن + Basic أساسي + Batch… دفعة… + Bend: الانحناء: + Best الأفضل + Bevel مشطوفة + Bicubic ثنائي التكعيب + Binary assets added الأصول الثنائية المضافة + Binary assets removed الأصول الثنائية المحذوفة + Bitmap صورة نقطية + Black أسود + Black & White أبيض وأسود + Blend دمج / مزج + Bloat انتفاخ + Blob Brush فرشاة التلطيخ + Blocks كتل + Blue أزرق + Blur ضبابية + Bold غامق + Bottom أسفل + Bottom Left أسفل اليسار + Bottom Right أسفل اليمين + Bottom: أسفل: + Brightness السطوع + Brightness/Contrast… السطوع/التباين… + Brightness: السطوع: + Bring Forward إحضار للأمام + Bring to Front إحضار إلى المقدمة + Brushes الفرش + Cancel إلغاء + Canvas مساحة الرسم + Cascade تتالي + Cell Size حجم الخلية + Center مركز + Centimeters سنتيمترات + Chalk & Charcoal طباشير وفحم + Change تغيير + Change All تغيير الكل + Change Panel Layout تغيير تخطيط اللوحات + Channel قناة + Character حرف + Character Styles أنماط الأحرف + Charcoal فحم + Check Spelling… تدقيق إملائي… + Chrome كروم + Circle دائرة + Classic كلاسيكي + Clear مسح + Clear All مسح الكل + Clear Guides مسح خطوط الإرشاد + Clear History مسح السجل + Clear Recent Files مسح الملفات الأخيرة + Clipboard Handling معالجة الحافظة + Close إغلاق + Close All إغلاق الكل + Close Panel إغلاق اللوحة + Cmd Cmd + CMYK Color ألوان CMYK + Coarse Dots نقاط خشنة + Collapse Panel Group طي مجموعة اللوحات + Color اللون + Color Burn حرق اللون + Color Dodge تفادي اللون + Color Guide دليل الألوان + Color Halftone… أنصاف ألوان… + Color Management إدارة الألوان + Color Mode وضع الألوان + Color Settings… إعدادات الألوان… + Color Table جدول الألوان + Color: اللون: + Colorize تلوين + Colors الألوان + Command الأمر + Commits الإيداعات + Community المجتمع + Company الشركة + Compound Path مسار مركب + Compression الضغط + Contextual Alternates بدائل سياقية + Contrast التباين + Contributors المساهمون + Conté Crayon قلم Conté + Convert to Shape تحويل إلى شكل + Convert to sRGB تحويل إلى sRGB + Cool بارد + Copy نسخ + Copyright حقوق النشر + Copyright and Contact Info حقوق النشر ومعلومات الاتصال + Copyrighted محمي بحقوق النشر + Corner زاوية + Corners الزوايا + Create إنشاء + Create Clipping Mask إنشاء قناع اقتطاع + Create Gradient Mesh… إنشاء شبكة تدرج… + Create Object Mosaic… إنشاء فسيفساء كائن… + Crop اقتصاص + Cross صليب + Crystallize تبلور + Crystallize… تبلور… + Ctrl Ctrl + Current Colors الألوان الحالية + Curvature الانحناء + Curves… المنحنيات… + Custom مخصص + Cut قص + Cyan سماوي + Dark داكن + Darken تغميق + Dash شرطة + Dashed متقطع + Data Sets مجموعات البيانات + De-Interlace… إزالة التشابك… + Decorative زخرفي + Default افتراضي + Delete حذف + Delete Anchor Point حذف نقطة إرساء + Delete Anchor Point Tool أداة حذف نقطة ارتكاز + Delete Brush حذف الفرشاة + Delete Group حذف المجموعة + Delete Layer حذف الطبقة + Delete Workspace حذف مساحة العمل + Depth العمق + Description الوصف + Deselect إلغاء التحديد + Detail التفاصيل + Devices الأجهزة + Diameter: القطر: + Diamond ماسي + Difference فرق + Diffusion الانتشار + Direct Selection تحديد مباشر + Direct Selection Tool أداة التحديد المباشر + Discord Discord + Discretionary Ligatures حروف مركبة اختيارية + Display name الاسم المعروض + Distance المسافة + Distort تشويه + Distortion التشويه + Distribute توزيع + Dither ترقيش + Divide تقسيم + Dock Panel إرساء اللوحة + Document المستند + Document Color Mode نمط ألوان المستند + Document Info معلومات المستند + Document Setup… إعداد المستند… + Don't Save عدم الحفظ + Done تم + Dots نقاط + Draft مسودة + Drop Shadow ظل مسقط + Drop Shadow… ظل مسقط… + Duplicate تكرار + Duplicate Layer تكرار الطبقة + Duplication تكرار + Edge الحافة + Edge Only الحافة فقط + Edit تحرير + Edit Colors تحرير الألوان + Edit Contents تحرير المحتويات + Effect تأثير + Effects التأثيرات + Eliminate إزالة + Ellipse شكل بيضاوي + Ellipse Tool أداة الشكل البيضاوي + Entire Font الخط بالكامل + Eraser ممحاة + Eraser Tool أداة الممحاة + Error خطأ + Even Fields حقول زوجية + Exact دقيق + Exclude استبعاد + Exclusion استبعاد + Exit خروج + Expand توسيع + Expand Appearance توسيع المظهر + Expand… توسيع… + Export تصدير + Export As… تصدير باسم… + Export for Screens… تصدير للشاشات… + Export Presets تصدير الإعدادات المسبقة + Export… تصدير… + Eyedropper قطارة + Eyedropper Tool أداة القطارة + Feather تلاشي الحواف + Feather… تلاشي الحواف… + File ملف + File Handling معالجة الملفات + File Info… معلومات الملف… + Files الملفات + Fill تعبئة + Fill: التعبئة: + Film & Video الأفلام والفيديو + Filter فلتر + Find بحث + Find and Replace… بحث واستبدال… + Find Next بحث عن التالي + Fine Dots نقاط دقيقة + First الأول + First commit أول إيداع + Fit ملاءمة + Fit All in Window ملاءمة الكل في النافذة + Fit Artboard in Window ملاءمة لوحة العمل مع النافذة + Fit in View ملاءمة في العرض + Fit on Screen ملاءمة للشاشة + Fixed ثابت + Flare توهج + Flatten Transparency… تسطيح الشفافية… + Flip قلب + Flip Horizontal قلب أفقي + Flip Vertical قلب عمودي + Float in Window تعويم في نافذة + Float Panel تعويم اللوحة + Folder المجلد + Font الخط + Font Preview Size حجم معاينة الخط + Format التنسيق + Format Options خيارات التنسيق + Fractions كسور + Free حر + Free Transform تحويل حر + Frequency التردد + Full Document المستند الكامل + Full Screen Mode وضع ملء الشاشة + Fuzziness: التضبيب: + Gamma غاما + Gamut Warning تحذير النطاق اللوني + Gaussian Blur… ضبابية غاوسية… + General عام + Global شامل + Glyphs المحارف + Good جيد + Grab bag مزيج عشوائي + Gradient تدرج + Gradient Tool أداة التدرج + Gradients التدرجات + Grain حبيبات + Grainy Dots نقاط حبيبية + Graphic Pen قلم رسومي + Graphic Styles الأنماط الرسومية + Graphics الرسومات + Gray رمادي + Gray Gamma 2.2 رمادي غاما 2.2 + Grayscale تدرج الرمادي + Green أخضر + Grid الشبكة + Grid Size: حجم الشبكة: + Gridline every خط الشبكة كل + Group تجميع + Group Selection تحديد مجموعة + Group with تجميع مع + Guides خطوط التوجيه + Guides & Grid خطوط الإرشاد والشبكة + Gutter الفاصل بين الأعمدة + Halftone Pattern نقشة أنصاف الألوان + Hand اليد + Hand Tool أداة اليد + Hard صلب + Hard Light ضوء ساطع + Hard Mix مزج صلب + Height الارتفاع + Height: الارتفاع: + Help تعليمات + Hexagon سداسي + Hide إخفاء + Hide Bounding Box إخفاء مربع الإحاطة + Hide Rulers إخفاء المساطر + Hide Transparency Grid إخفاء شبكة الشفافية + High عالٍ + History السجل + History Options… خيارات السجل… + Home الرئيسية + Horizontal أفقي + Hue درجة اللون + Hue/Saturation… درجة اللون/التشبع… + Hyphenate وصل الكلمات + Hyphenation الوصل بالمكspace + Ignore تجاهل + Image صورة + Image Size حجم الصورة + Image Trace تتبع الصورة + Inches بوصات + Info معلومات + Inner Glow… توهج داخلي… + Inside داخل + Install Plug-in… تثبيت مكون إضافي… + Intensity الشدة + Interlaced متشابك + Interpolation الاستيفاء + Intersect تقاطع + Inverse عكس التحديد + Invert عكس + Italic مائل + Join ربط + Join our Discord انضم إلى ديسكورد + Justification الضبط + Keyboard Shortcuts اختصارات لوحة المفاتيح + Keyboard Shortcuts… اختصارات لوحة المفاتيح… + Kind النوع + Knife سكين + Lab Lab + Landscape أفقي + Language اللغة + Language Options خيارات اللغة + Language: اللغة: + Large كبير + Large Tabs علامات تبويب كبيرة + Lasso حبل التحديد + Lasso Tool أداة الحبل + Last الأخير + Last commit آخر إيداع + Layer طبقة + Layers الطبقات + Layers Panel Options خيارات لوحة الطبقات + Leading تباعد الأسطر + Left يسار + Left-to-Right Paragraph Direction اتجاه الفقرة من اليسار إلى اليمين + Left: يسار: + Legal Legal + Length الطول + Length: الطول: + Letter Letter + Levels المستويات + Levels… المستويات… + Libraries المكتبات + Light فاتح + Light Blue أزرق فاتح + Light Direction اتجاه الضوء + Light Gray رمادي فاتح + Lighten تفتيح + Lighting الإضاءة + Lightness الإضاءة + Lights المناطق الفاتحة + Line خط + Line delta صافي الأسطر + Line Segment قطعة مستقيمة + Linear خطي + Linear Gradient تدرج خطي + Lines خطوط + Lines +/− الأسطر +/− + Lines added الأسطر المضافة + Lines deleted الأسطر المحذوفة + Links الارتباطات + Live Paint Bucket دلو التلوين الحي + Location الموقع + Location: الموقع: + Lock قفل + Lock Guides قفل خطوط الإرشاد + Lock Slices قفل الشرائح + Long Lines خطوط طويلة + Long Strokes ضربات طويلة + Low منخفض + Luminosity السطوع + Magenta أرجواني + Magic Wand العصا السحرية + Magic Wand Tool أداة العصا السحرية + Make الشركة المصنعة + Make Clipping Mask إنشاء قناع قطع + Make Compound Path إنشاء مسار مركب + Make Guides إنشاء خطوط إرشاد + Mask قناع + Matte لون الحافة + Maximize تكبير + Maximum الحد الأقصى + Measure قياس + Medium متوسط + Medium Dots نقاط متوسطة + Medium Lines خطوط متوسطة + Medium Strokes ضربات متوسطة + Merge دمج + Merge Layers دمج الطبقات + Merged PRs طلبات السحب المدمجة + Mesh شبكة + Message: الرسالة: + Method الطريقة + Mezzotint… ميزوتينت… + Millimeters مليمترات + Minimize تصغير + Minimum الحد الأدنى + Minus Back طرح الخلفية + Minus Front طرح المقدمة + Mirror مرآة + Miter حادة + Mobile الجوال + Mode الوضع + Mode: الوضع: + Model الطراز + Models النماذج + Modern حديث + Modify تعديل + Monitor RGB RGB الشاشة + Monochromatic أحادي اللون + Monochrome أحادي اللون + Move تحريك + Move Down تحريك لأسفل + Move Panel تحريك اللوحة + Move Up تحريك لأعلى + Multiply مضاعفة + Name الاسم + Name (A–Z) الاسم (أ–ي) + Name: الاسم: + Navigator الملاح + New جديد + New Group مجموعة جديدة + New Group… مجموعة جديدة… + New Layer… طبقة جديدة… + New Set… مجموعة جديدة… + New Swatch… عينة لون جديدة… + New Workspace مساحة عمل جديدة + New Workspace… مساحة عمل جديدة… + New… جديد… + No contributor data was built into this copy. لم يتم تضمين بيانات المساهمين في هذه النسخة. + No Dither بلا ترقيش + No document لا يوجد مستند + No document open لا يوجد مستند مفتوح + No model credits were built into this copy. لم يتم تضمين بيانات الإشادة بالنماذج في هذه النسخة. + Noise تشويش + None بلا + Normal عادي + Note Paper ورق ملاحظات + NTSC Colors ألوان NTSC + Object كائن + Odd Fields حقول فردية + Off إيقاف + Offset إزاحة + OK موافق + Only Web Colors ألوان الويب فقط + Opacity العتامة + Opacity: العتامة: + Open فتح + Open Documents As Tabs فتح المستندات كعلامات تبويب + Open… فتح… + Optimized محسّن + Options الخيارات + Options… خيارات… + Orange برتقالي + Ordinals أرقام ترتيبية + Orientation الاتجاه + Original الأصلي + Other أخرى + Outer Glow… توهج خارجي… + Outline مخطط تفصيلي + Outline Stroke تحديد مسار الحد + Output الإخراج + Output: الإخراج: + Outside خارج + Overlay تراكب + Overlay Edge تراكب الحافة + Overprint طباعة فوقية + Overprint Preview معاينة الطباعة الفوقية + Package… تجميع الحزمة… + Paintbrush فرشاة الطلاء + Panel menu قائمة اللوحة + Panel Options… خيارات اللوحة… + Panels اللوحات + Paragraph فقرة + Paragraph Styles أنماط الفقرات + Paste لصق + Paste in Back لصق في الخلف + Paste in Front لصق في المقدمة + Paste in Place لصق في المكان + Paste on All Artboards لصق على كافة لوحات العمل + Path مسار + Path Eraser ممحاة المسار + Pathfinder مستكشف المسارات + Paths المسارات + Pattern النقشة + Pen القلم + Pen Tool أداة القلم + Pencil قلم رصاص + Pencil Tool أداة القلم الرصاص + Perceptual إدراكي + Performance الأداء + Perspective منظور + Perspective Grid شبكة المنظور + Photocopy نسخ ضوئي + Picas بيكا + Pixel بكسل + Pixel Preview معاينة البكسل + Pixelate بكسلة + Pixels بكسل + Place… إدراج… + Plaster جبس + Plug-ins المكونات الإضافية + Plug-ins & Scratch Disks المكونات الإضافية وأقراص العمل المؤقتة + Point Sample عينة نقطية + Pointillize… تنقيط… + Points نقاط + Polar Grid شبكة قطبية + Polygon مضلع + Polygon Tool أداة المضلع + Portrait عمودي + Position الموضع + Postcard بطاقة بريدية + Preferences التفضيلات + Preserve الاحتفاظ + PRESET DETAILS تفاصيل الإعداد المسبق + Preset Name اسم الإعداد المسبق + Preset: الإعداد المسبق: + Presets إعدادات مسبقة + Presets: الإعدادات المسبقة: + Press keys… اضغط المفاتيح… + Pressure الضغط + Preview معاينة + Print طباعة + Print Tiling تجانب الطباعة + Printer الطابعة + Print… طباعة… + Progressive تدريجي + Proof Colors ألوان المعاينة الطباعية + Proof Setup إعداد المعاينة الطباعية + Properties الخصائص + Public Domain ملكية عامة + Pucker انكماش + Punctuation علامات الترقيم + Puppet Warp التواء الدمية + Purple بنفسجي + Quality الجودة + Quick Actions إجراءات سريعة + Quickly start a new file بدء ملف جديد بسرعة + Radial شعاعي + Radial Blur… ضبابية شعاعية… + Radial Gradient تدرج شعاعي + Radius نصف القطر + Radius: نصف القطر: + Random عشوائي + Range: النطاق: + Rasterize تنقيط + Rasterize… تنقيط… + Ratio النسبة + Real name الاسم الحقيقي + Rearrange All Artboards… إعادة ترتيب كافة لوحات العمل… + Recent الأخيرة + Recent Files الملفات الأخيرة + Recolor Artwork… إعادة تلوين العمل الفني… + Rectangle مستطيل + Rectangle Tool أداة المستطيل + Rectangular Grid شبكة مستطيلة + Red أحمر + Redo إعادة + Reflect انعكاس + Regular عادي + Relative نسبي + Relative Colorimetric قياس لوني نسبي + Release Clipping Mask تحرير قناع القطع + Release Compound Path تحرير المسار المركب + Release Guides تحرير خطوط الإرشاد + Remove إزالة + Remove Anchor Points إزالة نقاط الإرساء + Rename إعادة تسمية + Rename Group… إعادة تسمية المجموعة… + Rename… إعادة تسمية… + Repeat تكرار + Replace استبدال + Reselect إعادة التحديد + Reset إعادة تعيين + Reset Preferences إعادة تعيين التفضيلات + Reset to Default إعادة تعيين إلى الافتراضي + Reshape إعادة تشكيل + Resize panel window تغيير حجم نافذة اللوحة + Resize panels تغيير حجم اللوحات + Resolution: الدقة: + Restore استعادة + Reticulation تشبيك + Reverse Path Direction عكس اتجاه المسار + Reverse the order عكس الترتيب + Revert استعادة + RGB Color ألوان RGB + Right يمين + Right-to-Left Paragraph Direction اتجاه الفقرة من اليمين إلى اليسار + Right: يمين: + Roman روماني + Rotate تدوير + Rotate View تدوير العرض + Rotate View Tool أداة تدوير العرض + Rotation تدوير + Round مستديرة + Rounded Rectangle مستطيل مستدير الزوايا + Roundness: الاستدارة: + Rulers المساطر + Rulers & Grids المساطر والشبكات + Saturate زيادة التشبع + Saturation التشبع + Save حفظ + Save a Copy… حفظ نسخة… + Save As… حفظ باسم… + Save for Web (Legacy)… حفظ للويب (قديم)… + Save Preset… حفظ الإعداد المسبق… + Save Selection حفظ التحديد + Save Selection… حفظ التحديد… + Saved تم الحفظ + Save… حفظ… + Scale تحجيم + Scale Cursor Proportional to UI تحجيم المؤشر بالتناسب مع واجهة المستخدم + Scale: المقياس: + Scallop تسنن + Scatter تبعثر + Scissors مقص + Scratch Disks أقراص التخزين المؤقت + Screen شاشة + Screen Mode وضع الشاشة + Scripts البرامج النصية + Search بحث + Select تحديد + Select All تحديد الكل + Select: التحديد: + Selection تحديد + Selection & Anchor Display التحديد وعرض نقاط الإرساء + Selective انتقائي + Send Backward إرسال للخلف + Send to Back إرسال إلى المؤخرة + Set: المجموعة: + Settings… إعدادات… + Shape شكل + Shape Builder منشئ الأشكال + Shape: الشكل: + Shapes الأشكال + Sharpen زيادة الحدة + Shear إمالة + Shear… قص مائل… + Shift Shift + Short Lines خطوط قصيرة + Short Strokes ضربات قصيرة + Show إظهار + Show All إظهار الكل + Show Bounding Box إظهار مربع الإحاطة + Show Grid إظهار الشبكة + Show Guides إظهار خطوط الإرشاد + Show in Folder إظهار في المجلد + Show Mesh إظهار الشبكة + Show Rulers إظهار المساطر + Show Tool Group Labels إظهار تسميات مجموعات الأدوات + Show Transparency Grid إظهار شبكة الشفافية + Show: إظهار: + Sides: الأضلاع: + Simplify… تبسيط… + Simulate Paper محاكاة الورق + Size الحجم + Size: الحجم: + Skew إمالة + Slice Options… خيارات الشريحة… + Slice Tool أداة الشريحة + Slices الشرائح + Small صغير + Small Caps أحرف استهلالية صغيرة + Smaller ↔ Larger أصغر ↔ أكبر + Smart Blur… ضبابية ذكية… + Smart Guides خطوط الإرشاد الذكية + Smooth تنعيم + Snap to Grid محاذاة إلى الشبكة + Soft ناعم + Soft Light ضوء خافت + Softness النعومة + Solid مصمت + Sort فرز + Spacing التباعد + Spin دوران + Spiral حلزون + Sponge إسفنجة + Spot Color لون موضعي + Square مربع + Stamp ختم + Standard قياسي + Standard Ligatures حروف مركبة قياسية + Star نجمة + Step Backward خطوة للخلف + Step Forward خطوة للأمام + Stop إيقاف + Strength القوة + Strikethrough يتوسطه خط + Stroke الحد + Patterns النقشات + Stroke Options خيارات الحدود + Stroke: حدود: + Style النمط + Stylize تنميط + Subdivisions التقسيمات الفرعية + Subtract طرح + Swash حروف مزخرفة + Swatches عينات الألوان + Symbol Sprayer بخاخ الرموز + Symbols الرموز + System Title Bar شريط عنوان النظام + Table جدول + Tabloid Tabloid + Taper التناقص التدريجي + Target الهدف + Target: الهدف: + Temperature درجة الحرارة + Texture الملمس + Thickness السماكة + Threshold العتبة + Tile تجانب + Tint صبغة + Tolerance التفاوت + Tolerance: التفاوت: + Tool أداة + Tools الأدوات + Top أعلى + Top Left أعلى اليسار + Top Right أعلى اليمين + Top: أعلى: + Torn Edges حواف ممزقة + Total: الإجمالي: + Tracking تباعد الأحرف + Transform تحويل + Transparency الشفافية + Transparent شفاف + Trap… حصر الألوان… + Triangle مثلث + Trim قص الحواف + Twirl دوامة + Twist لف + Type نوع + Type: النوع: + Type… النص… + UI Scaling تحجيم واجهة المستخدم + Underline تسطير + Undo تراجع + Ungroup فك التجميع + Uniform منتظم + Unite توحيد + Units الوحدات + Unknown غير معروف + Unlock All إلغاء قفل الكل + Unsharp Mask… قناع الحدة… + Untitled بدون عنوان + Use Default استخدام الافتراضي + User Interface واجهة المستخدم + Username اسم المستخدم + Variables المتغيرات + Version الإصدار + Vertical عمودي + Vertical Type Tool أداة النص العمودي + Very High عالٍ جدًا + Video فيديو + View عرض + Violet بنفسجي + Visibility الرؤية + W: العرض: + Warp التواء + Water Paper ورق مائي + Wave… موجة… + Weight الوزن + Weight: السمك: + White أبيض + Width العرض + Width: العرض: + Window نافذة + Windows Windows + Working CMYK مساحة عمل CMYK + Workspace مساحة العمل + Wrinkle تجعد + Yellow أصفر + Zoom تكبير/تصغير + Zoom In تكبير + Zoom Out تصغير + Zoom Tool أداة التكبير/التصغير + “{name}” already exists. Replace it? “{name}” موجود بالفعل. هل تريد استبداله؟ +@plural agrees with {n} default shortcut|agrees with {n} default shortcuts يتطابق مع {n} اختصار افتراضي|يتطابق مع {n} اختصار افتراضي|يتطابق مع {n} اختصارين افتراضيين|يتطابق مع {n} اختصارات افتراضية|يتطابق مع {n} اختصارًا افتراضيًا|يتطابق مع {n} اختصار افتراضي +@plural Color Table ({n} color)|Color Table ({n} colors) جدول الألوان ({n} لون)|جدول الألوان ({n} لون)|جدول الألوان ({n} لونين)|جدول الألوان ({n} ألوان)|جدول الألوان ({n} لونًا)|جدول الألوان ({n} لون) +@plural Delete this {n} graphic style?|Delete these {n} graphic styles? هل تريد حذف هذا النمط الرسومي ({n})؟|هل تريد حذف هذا النمط الرسومي ({n})؟|هل تريد حذف هذين النمطين الرسوميين ({n})؟|هل تريد حذف هذه الأنماط الرسومية ({n})؟|هل تريد حذف هذه الأنماط الرسومية ({n})؟|هل تريد حذف هذه الأنماط الرسومية ({n})؟ +@plural {n} area highlighted|{n} areas highlighted {n} منطقة مميزة|{n} منطقة مميزة|{n} منطقتان مميزتان|{n} مناطق مميزة|{n} منطقةً مميزة|{n} منطقة مميزة +@plural {n} color|{n} colors {n} لون|{n} لون|{n} لونين|{n} ألوان|{n} لونًا|{n} لون +@plural {n} commit|{n} commits {n} إيداع|{n} إيداع|{n} إيداعين|{n} إيداعات|{n} إيداعًا|{n} إيداع +@plural {n} fill|{n} fills {n} تعبئة|{n} تعبئة|{n} تعبئتان|{n} تعبئات|{n} تعبئةً|{n} تعبئة +@plural {n} glyph|{n} glyphs {n} محرف|{n} محرف|{n} محرفين|{n} محارف|{n} محرفًا|{n} محرف +@plural {n} item|{n} items {n} عنصر|{n} عنصر|{n} عنصران|{n} عناصر|{n} عنصرًا|{n} عنصر +@plural {n} Layer|{n} Layers {n} طبقة|{n} طبقة|{n} طبقتان|{n} طبقات|{n} طبقةً|{n} طبقة +@plural {n} more export waiting|{n} more exports waiting {n} عملية تصدير أخرى في الانتظار|{n} عملية تصدير أخرى في الانتظار|{n} عمليتا تصدير أخريان في الانتظار|{n} عمليات تصدير أخرى في الانتظار|{n} عملية تصدير أخرى في الانتظار|{n} عملية تصدير أخرى في الانتظار +@plural {n} object highlighted|{n} objects highlighted {n} كائن مميز|{n} كائن مميز|{n} كائنان مميزان|{n} كائنات مميزة|{n} كائنًا مميزًا|{n} كائن مميز +@plural {n} Object|{n} Objects {n} كائن|{n} كائن|{n} كائنان|{n} كائنات|{n} كائنًا|{n} كائن +@plural {n} part of the file wasn't read|{n} parts of the file weren't read لم يتم قراءة {n} جزء من الملف|لم يتم قراءة {n} جزء من الملف|لم يتم قراءة {n} جزءين من الملف|لم يتم قراءة {n} أجزاء من الملف|لم يتم قراءة {n} جزءًا من الملف|لم يتم قراءة {n} جزء من الملف +@plural {n} PR|{n} PRs {n} طلب سحب|{n} طلب سحب|{n} طلبا سحب|{n} طلبات سحب|{n} طلب سحب|{n} طلب سحب +@plural {n} shortcut is assigned more than once|{n} shortcuts are assigned more than once {n} اختصار تم تعيينه أكثر من مرة|{n} اختصار تم تعيينه أكثر من مرة|{n} اختصاران تم تعيينهما أكثر من مرة|{n} اختصارات تم تعيينها أكثر من مرة|{n} اختصارًا تم تعيينه أكثر من مرة|{n} اختصار تم تعيينه أكثر من مرة +@plural {n} star|{n} stars {n} نجمة|{n} نجمة|{n} نجمتان|{n} نجوم|{n} نجمةً|{n} نجمة +@plural {n} step|{n} steps {n} خطوة|{n} خطوة|{n} خطوتان|{n} خطوات|{n} خطوةً|{n} خطوة +@plural {n} stroke|{n} strokes {n} حد|{n} حد|{n} حدان|{n} حدود|{n} حدًا|{n} حد +3d Bevel مشطوفة +3d Light فاتح +3d Solid مصمت +3d Space Space +@msg Opened {url} تم فتح {url} +axis Both كلاهما +axis Horizontal أفقي +axis Vertical عمودي +effect Horizontal أفقي +effect Points نقاط +effect Regular عادي +effect Soft ناعم +effect Vertical عمودي +gradient-kind Radial شعاعي +imageTrace Outline مخطط تفصيلي +lighting Light فاتح +swatch Aqua أزرق مائي +swatch Black أسود +swatch Blue أزرق +swatch Copper نحاسي +swatch Cyan سماوي +swatch Green أخضر +swatch Indigo نيلي +swatch Magenta أرجواني +swatch Orange برتقالي +swatch Purple بنفسجي +swatch Red أحمر +swatch Violet بنفسجي +swatch White أبيض +swatch Yellow أصفر +theme Appearance المظهر + Gap فجوة + Exposure التعريض + Exposure… التعريض… + Desaturate إزالة التشبع + Adjustment تعديل + Brightness/Contrast السطوع/التباين + Hue/Saturation درجة اللون/التشبع diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 24c452f944..7cb278ade3 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -160,6 +160,36 @@ fn numbered_labels_translate_the_name_before_the_number() { assert_eq!(numbered_label(Lang::EN, "Grays 12"), "Grays 12"); } +#[test] +fn arabic_resolves_locales_and_preferences() { + let ar = Lang::from_code("ar").expect("ar registered"); + assert_eq!(ar.name(), "العربية"); + assert!(ar.complete_menus()); + assert_eq!(Lang::from_pref("ar"), ar); + for tag in ["ar", "AR", "ar-SA", "ar_EG", "ar_EG.UTF-8", "ar-AE", "ar-MA"] { + assert_eq!(i18n().match_tag(tag), Some(ar), "{tag}"); + } + for (en, want) in [ + ("Artboards", "لوحات العمل"), + ("Swatches", "عينات الألوان"), + ("Stroke", "الحد"), + ("Direct Selection", "تحديد مباشر"), + ("Save As…", "حفظ باسم…"), + ("Undo", "تراجع"), + ] { + assert_eq!(tr(ar, en), want, "{en}"); + } +} + +#[test] +fn arabic_plural_rule_has_six_forms() { + let ar = Lang::from_code("ar").expect("ar registered"); + for (n, want) in [(0, "0 إيداع"), (1, "1 إيداع"), (2, "2 إيداعين"), (3, "3 إيداعات"), (11, "11 إيداعًا"), (100, "100 إيداع")] + { + assert_eq!(trn(ar, n, "{n} commit", "{n} commits"), want, "for n={n}"); + } +} + #[test] fn current_language_is_a_frame_setting() { set_current(ZH()); @@ -711,8 +741,8 @@ fn message_dump_lists_the_reported_messages() { } /// Languages whose catalogs leave [`MENU_KEEP_AS_IS`] in English. -const KEEPS_MENU_NAMES: [&str; 20] = - ["cs", "de", "el", "es", "fr", "hi", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "fi", "tr", "ca"]; +const KEEPS_MENU_NAMES: [&str; 21] = + ["cs", "de", "el", "es", "fr", "hi", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "fi", "tr", "ca", "ar"]; /// Menu labels the menu-complete catalogs (Czech, German, Spanish, Italian, Japanese, Brazilian Portuguese) show as they are: the product name, a format name, the built-in workspace /// names and the perspective grid presets (names, shown untranslated wherever else they appear). diff --git a/docs/localization-parity.md b/docs/localization-parity.md index 95ed33bf76..697f3ecf06 100644 --- a/docs/localization-parity.md +++ b/docs/localization-parity.md @@ -1,6 +1,6 @@ # Localization parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-06 · **Change:** minor (Hindi catalog draft complete under the translation tests; contributor loanword terminology reviewed; wider proofreading welcome; Brazilian Portuguese: 154 rows for the strings the sibling catalogs translate — smart-filter and print presets, dimension lines, swatches, canvas messages; previously minor: Bosnian (`bs`): complete catalog; previously minor: Vietnamese text: stacked diacritics tested and attach in every form, #4491; previously: Catalan (`ca`) catalog added, complete under the tests) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-24 · **Change:** minor (Arabic (`ar`): catalog added with Modern Standard Arabic menus, preferences, tools, dialogs, commands and 6-form CLDR plurals; native name العربية; Hindi catalog draft complete under the translation tests; contributor loanword terminology reviewed; wider proofreading welcome; Brazilian Portuguese: 154 rows for the strings the sibling catalogs translate — smart-filter and print presets, dimension lines, swatches, canvas messages; previously minor: Bosnian (`bs`): complete catalog; previously minor: Vietnamese text: stacked diacritics tested and attach in every form, #4491; previously: Catalan (`ca`) catalog added, complete under the tests) Per-language status of VectorCraft's interface. How the catalogs work and how to add a language: [`development.md` › Localisation](development.md#localisation). Part of @@ -35,7 +35,7 @@ Chinese by `imachus`). Georgian and the original Gujarati catalog are recorded a | Spanish | `es` | 4,009 / 4,020 (99.7%) | all (3,770 `@msg` and 55 `@msgplural` rows, counted 2026-11-18: the untranslated report lists 269 messages without a Spanish row, 236 in its own section and 33 that all 24 checked languages lack) | Latin | no | full | — (review) | | Hindi | `hi` | 8,782 rows (2026-11-13): 3,014 `@msg`, 47 `@msgplural`, 41 `@plural`; the untranslated report on main `f793044f83` (2026-11-14) lists 676 missing rows for it: 608 in its own section and 68 that every checked language lacks | menus, dialogs, tooltips and scanned messages; contributor-approved loanword terminology; agent wording pass | UI and document text shape with HarfRust; installed desktop Devanagari fallback, or a `Deva` craft-fonts face; the web fetches Noto Sans Devanagari when the interface needs it | contributor terminology review; 2026-11-13 wording pass on messages and longer labels, and a word-sense pass on short labels, with a glossary-term test; wider proofread welcome | complete catalog, machine-assisted draft | reported missing rows, native review and layout | | Gujarati | `gu` | 4,673 rows (2026-11-14): original 4,286 unchanged; all 387 additions contributor-reviewed and approved | menus and dialogs; status/error messages partial | installed Gujarati fonts on desktop; optional `Gujr` craft-fonts fallback; no Gujarati face in the pinned CI/release fonts or web startup list | original catalog reviewed by a native speaker; all 387 later additions approved by the contributor, with 11 wording corrections | contributor-reviewed catalog | remaining messages and a bundled Gujarati web font | -| Arabic | `ar` | 0 | none | document text: bidi layout and Paragraph Direction; interface: no right-to-left layout, no Arabic shaping in egui | no | none | 25–40 | +| Arabic | `ar` | 873 catalog entries: menus, preferences, tools, dialogs, commands and 6-form CLDR plurals; native Arabic name العربية | menus, dialogs, preferences | Arabic: document text has bidi layout and paragraph direction; interface strings render in Modern Standard Arabic via system fallback fonts; full shell mirroring pending STD-I18N-001 | no (AI-drafted, clean-room) | partial | 15–20 | | French | `fr` | 9,166 rows, 3,436 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 178 missing messages for it | all | Latin | no | full | — (review) | | Portuguese | `pt-br` | 9,378 rows, 3,563 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 55 missing messages for it, which open #7116, #7211, #7330, #7378 and #7405 translate; one/other plurals | all | Latin | contributor is a Brazilian Portuguese speaker; further native review welcome | full | — (review) | | Indonesian | `id` | 7,553 rows, 1,682 of them `@msg` and 49 `@msgplural` (counted 2026-11-15 on `main` at `df984b2a02`): in `COMPLETE_MESSAGES`, and the untranslated report lists 50 missing menu strings, 35 `tl!` literals, 11 undo labels and 1,929 messages for it, the same sets as for Danish; one plural form | most dialogs and tooltips; status and error messages partial | Latin | no | full | — (review) | @@ -101,6 +101,7 @@ font for the web build. | Date | Change | Summary | |---|---|---| +| 2026-11-24 | minor | Arabic (`ar`): catalog added with Modern Standard Arabic menus, preferences, tools, dialogs, commands and 6-form CLDR plurals; registered as twenty-sixth non-English language; native name العربية | | 2026-11-14 | minor | Gujarati (#6613): contributor proofreading completed for all 387 additions, with 11 wording corrections; 4,673 reviewed catalog rows. Status/error messages remain partial; web selection requires a bundled Gujarati face. Scores and estimates unchanged. | | 2026-11-12 | minor | Gujarati (`gu`): reviewed by a native speaker; zero/one singular plurals (CLDR); Gujarati craft-fonts faces join the UI fonts; strings added on main since branching translated (4,286 rows) | | 2026-11-11 | minor | Gujarati (`gu`): 4,235-row machine-assisted interface catalog, one/other plurals, desktop Gujarati font fallback and a glyph-coverage filter; status and error messages not yet translated; native review pending | From bce66603c9ffd56985de4974038db61dc26be619 Mon Sep 17 00:00:00 2001 From: tareq Date: Tue, 24 Nov 2026 17:21:31 +0100 Subject: [PATCH 2/6] refactor(i18n): move Arabic catalog to craft-i18n and keep language wiring in app Move the 873 Arabic translated entries to storytold/craft-i18n#486 under AGENTS.md rule 16, keeping the language registration, 6-form CLDR plural routing, and locale preference tests in VectorCraft. --- crates/ui-egui/src/i18n.rs | 2 +- crates/ui-egui/src/i18n/ar.tsv | 884 +------------------------------ crates/ui-egui/src/i18n/tests.rs | 20 +- docs/localization-parity.md | 2 +- 4 files changed, 9 insertions(+), 899 deletions(-) diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index 1900d249aa..bd6fb2f56c 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -142,7 +142,7 @@ impl LangExt for Lang { } fn complete_menus(self) -> bool { - self != Lang::EN + self != Lang::EN && self.code() != "ar" } fn from_code(code: &str) -> Option { diff --git a/crates/ui-egui/src/i18n/ar.tsv b/crates/ui-egui/src/i18n/ar.tsv index 353f6dd5b9..0920934df4 100644 --- a/crates/ui-egui/src/i18n/ar.tsv +++ b/crates/ui-egui/src/i18n/ar.tsv @@ -2,887 +2,7 @@ # (empty context = a plain UI string; `@id` = a command id; `@plural` = 6 CLDR forms; # `@msg` = a status or error message). # -# Clean-room: written from the meaning of VectorCraft's English labels in Modern Standard Arabic, -# using ordinary vector-illustration vocabulary (لوحة عمل، مسار، نقطة إرساء، حد، -# تعبئة، عينة لون، تدرج، قناع، طبقة). No other application's Arabic localisation -# resource, string table or product UI was consulted or copied; add entries the same way. -# -# Conventions: labels use standard Arabic creative suite terminology. Plural rule (CLDR): -# zero|one|two|few|many|other. Status and error messages (`@msg`) keep the case of their English -# first word. Left in English on purpose (`MENU_KEEP_AS_IS` in the tests): the product name -# (VectorCraft), OpenType, the built-in workspace names and perspective grid presets. -# Every `ar-*` locale (ar-SA, ar-EG, ar-AE, ar-MA, ar-KW, etc.) resolves here. Keep the -# placeholders ({name}), trailing "…" and leading/trailing spaces of fragments exactly as they are. +# Translations are maintained upstream in storytold/craft-i18n (locales/ar/vectorcraft.tsv) +# under AGENTS.md rule 16. @id language.name العربية - % of all commits % من كل الإيداعات - 16 bit 16 بت - 24 bits/pixel 24 بت/بكسل - 32 bits/pixel 32 بت/بكسل - 8 bit 8 بت - About حول - Absolute مطلق - Absolute Colorimetric قياس لوني مطلق - Actions الإجراءات - Activate Panel تنشيط اللوحة - Actual Size الحجم الفعلي - Adaptive تكيفي - Add إضافة - Add Anchor Point إضافة نقطة إرساء - Add Anchor Point Tool أداة إضافة نقطة ارتكاز - Add Anchor Points إضافة نقاط إرساء - Add to Swatches إضافة إلى عينات الألوان - Advanced متقدم - Align محاذاة - All الكل - All Caps جميع الأحرف كبيرة - All Layers كل الطبقات - All Slices كل الشرائح - Alt Alt - Amount المقدار - Amount: المقدار: - Anchor Point نقطة إرساء - Angle الزاوية - Angle: الزاوية: - Anti-alias إزالة التسنن - Anti-Alias إزالة التسنن - Appearance المظهر - Appearance of Black مظهر اللون الأسود - Apply تطبيق - Arc قوس - Arrange ترتيب - Art & Illustration الفن والرسم التوضيحي - Artboard لوح التصميم - Artboard Tool أداة لوحة العمل - Artboards لوحات العمل - ArtCraft Website موقع ArtCraft - ArtCraft website موقع ArtCraft - Aspect Ratio نسبة العرض إلى الارتفاع - Assign Profile… تعيين ملف تعريف… - Attributes السمات - Author: المؤلف: - Auto تلقائي - Auto Color لون تلقائي - Auto-Collapse Iconic Panels طي الألواح الرمزية تلقائيًا - Automate أتمتة - Automatic تلقائي - Average متوسط - Average… توسيط… - Background Contents محتويات الخلفية - Balance التوازن - Baseline خط الأساس - Baseline Optimized أساسي محسّن - Basic أساسي - Batch… دفعة… - Bend: الانحناء: - Best الأفضل - Bevel مشطوفة - Bicubic ثنائي التكعيب - Binary assets added الأصول الثنائية المضافة - Binary assets removed الأصول الثنائية المحذوفة - Bitmap صورة نقطية - Black أسود - Black & White أبيض وأسود - Blend دمج / مزج - Bloat انتفاخ - Blob Brush فرشاة التلطيخ - Blocks كتل - Blue أزرق - Blur ضبابية - Bold غامق - Bottom أسفل - Bottom Left أسفل اليسار - Bottom Right أسفل اليمين - Bottom: أسفل: - Brightness السطوع - Brightness/Contrast… السطوع/التباين… - Brightness: السطوع: - Bring Forward إحضار للأمام - Bring to Front إحضار إلى المقدمة - Brushes الفرش - Cancel إلغاء - Canvas مساحة الرسم - Cascade تتالي - Cell Size حجم الخلية - Center مركز - Centimeters سنتيمترات - Chalk & Charcoal طباشير وفحم - Change تغيير - Change All تغيير الكل - Change Panel Layout تغيير تخطيط اللوحات - Channel قناة - Character حرف - Character Styles أنماط الأحرف - Charcoal فحم - Check Spelling… تدقيق إملائي… - Chrome كروم - Circle دائرة - Classic كلاسيكي - Clear مسح - Clear All مسح الكل - Clear Guides مسح خطوط الإرشاد - Clear History مسح السجل - Clear Recent Files مسح الملفات الأخيرة - Clipboard Handling معالجة الحافظة - Close إغلاق - Close All إغلاق الكل - Close Panel إغلاق اللوحة - Cmd Cmd - CMYK Color ألوان CMYK - Coarse Dots نقاط خشنة - Collapse Panel Group طي مجموعة اللوحات - Color اللون - Color Burn حرق اللون - Color Dodge تفادي اللون - Color Guide دليل الألوان - Color Halftone… أنصاف ألوان… - Color Management إدارة الألوان - Color Mode وضع الألوان - Color Settings… إعدادات الألوان… - Color Table جدول الألوان - Color: اللون: - Colorize تلوين - Colors الألوان - Command الأمر - Commits الإيداعات - Community المجتمع - Company الشركة - Compound Path مسار مركب - Compression الضغط - Contextual Alternates بدائل سياقية - Contrast التباين - Contributors المساهمون - Conté Crayon قلم Conté - Convert to Shape تحويل إلى شكل - Convert to sRGB تحويل إلى sRGB - Cool بارد - Copy نسخ - Copyright حقوق النشر - Copyright and Contact Info حقوق النشر ومعلومات الاتصال - Copyrighted محمي بحقوق النشر - Corner زاوية - Corners الزوايا - Create إنشاء - Create Clipping Mask إنشاء قناع اقتطاع - Create Gradient Mesh… إنشاء شبكة تدرج… - Create Object Mosaic… إنشاء فسيفساء كائن… - Crop اقتصاص - Cross صليب - Crystallize تبلور - Crystallize… تبلور… - Ctrl Ctrl - Current Colors الألوان الحالية - Curvature الانحناء - Curves… المنحنيات… - Custom مخصص - Cut قص - Cyan سماوي - Dark داكن - Darken تغميق - Dash شرطة - Dashed متقطع - Data Sets مجموعات البيانات - De-Interlace… إزالة التشابك… - Decorative زخرفي - Default افتراضي - Delete حذف - Delete Anchor Point حذف نقطة إرساء - Delete Anchor Point Tool أداة حذف نقطة ارتكاز - Delete Brush حذف الفرشاة - Delete Group حذف المجموعة - Delete Layer حذف الطبقة - Delete Workspace حذف مساحة العمل - Depth العمق - Description الوصف - Deselect إلغاء التحديد - Detail التفاصيل - Devices الأجهزة - Diameter: القطر: - Diamond ماسي - Difference فرق - Diffusion الانتشار - Direct Selection تحديد مباشر - Direct Selection Tool أداة التحديد المباشر - Discord Discord - Discretionary Ligatures حروف مركبة اختيارية - Display name الاسم المعروض - Distance المسافة - Distort تشويه - Distortion التشويه - Distribute توزيع - Dither ترقيش - Divide تقسيم - Dock Panel إرساء اللوحة - Document المستند - Document Color Mode نمط ألوان المستند - Document Info معلومات المستند - Document Setup… إعداد المستند… - Don't Save عدم الحفظ - Done تم - Dots نقاط - Draft مسودة - Drop Shadow ظل مسقط - Drop Shadow… ظل مسقط… - Duplicate تكرار - Duplicate Layer تكرار الطبقة - Duplication تكرار - Edge الحافة - Edge Only الحافة فقط - Edit تحرير - Edit Colors تحرير الألوان - Edit Contents تحرير المحتويات - Effect تأثير - Effects التأثيرات - Eliminate إزالة - Ellipse شكل بيضاوي - Ellipse Tool أداة الشكل البيضاوي - Entire Font الخط بالكامل - Eraser ممحاة - Eraser Tool أداة الممحاة - Error خطأ - Even Fields حقول زوجية - Exact دقيق - Exclude استبعاد - Exclusion استبعاد - Exit خروج - Expand توسيع - Expand Appearance توسيع المظهر - Expand… توسيع… - Export تصدير - Export As… تصدير باسم… - Export for Screens… تصدير للشاشات… - Export Presets تصدير الإعدادات المسبقة - Export… تصدير… - Eyedropper قطارة - Eyedropper Tool أداة القطارة - Feather تلاشي الحواف - Feather… تلاشي الحواف… - File ملف - File Handling معالجة الملفات - File Info… معلومات الملف… - Files الملفات - Fill تعبئة - Fill: التعبئة: - Film & Video الأفلام والفيديو - Filter فلتر - Find بحث - Find and Replace… بحث واستبدال… - Find Next بحث عن التالي - Fine Dots نقاط دقيقة - First الأول - First commit أول إيداع - Fit ملاءمة - Fit All in Window ملاءمة الكل في النافذة - Fit Artboard in Window ملاءمة لوحة العمل مع النافذة - Fit in View ملاءمة في العرض - Fit on Screen ملاءمة للشاشة - Fixed ثابت - Flare توهج - Flatten Transparency… تسطيح الشفافية… - Flip قلب - Flip Horizontal قلب أفقي - Flip Vertical قلب عمودي - Float in Window تعويم في نافذة - Float Panel تعويم اللوحة - Folder المجلد - Font الخط - Font Preview Size حجم معاينة الخط - Format التنسيق - Format Options خيارات التنسيق - Fractions كسور - Free حر - Free Transform تحويل حر - Frequency التردد - Full Document المستند الكامل - Full Screen Mode وضع ملء الشاشة - Fuzziness: التضبيب: - Gamma غاما - Gamut Warning تحذير النطاق اللوني - Gaussian Blur… ضبابية غاوسية… - General عام - Global شامل - Glyphs المحارف - Good جيد - Grab bag مزيج عشوائي - Gradient تدرج - Gradient Tool أداة التدرج - Gradients التدرجات - Grain حبيبات - Grainy Dots نقاط حبيبية - Graphic Pen قلم رسومي - Graphic Styles الأنماط الرسومية - Graphics الرسومات - Gray رمادي - Gray Gamma 2.2 رمادي غاما 2.2 - Grayscale تدرج الرمادي - Green أخضر - Grid الشبكة - Grid Size: حجم الشبكة: - Gridline every خط الشبكة كل - Group تجميع - Group Selection تحديد مجموعة - Group with تجميع مع - Guides خطوط التوجيه - Guides & Grid خطوط الإرشاد والشبكة - Gutter الفاصل بين الأعمدة - Halftone Pattern نقشة أنصاف الألوان - Hand اليد - Hand Tool أداة اليد - Hard صلب - Hard Light ضوء ساطع - Hard Mix مزج صلب - Height الارتفاع - Height: الارتفاع: - Help تعليمات - Hexagon سداسي - Hide إخفاء - Hide Bounding Box إخفاء مربع الإحاطة - Hide Rulers إخفاء المساطر - Hide Transparency Grid إخفاء شبكة الشفافية - High عالٍ - History السجل - History Options… خيارات السجل… - Home الرئيسية - Horizontal أفقي - Hue درجة اللون - Hue/Saturation… درجة اللون/التشبع… - Hyphenate وصل الكلمات - Hyphenation الوصل بالمكspace - Ignore تجاهل - Image صورة - Image Size حجم الصورة - Image Trace تتبع الصورة - Inches بوصات - Info معلومات - Inner Glow… توهج داخلي… - Inside داخل - Install Plug-in… تثبيت مكون إضافي… - Intensity الشدة - Interlaced متشابك - Interpolation الاستيفاء - Intersect تقاطع - Inverse عكس التحديد - Invert عكس - Italic مائل - Join ربط - Join our Discord انضم إلى ديسكورد - Justification الضبط - Keyboard Shortcuts اختصارات لوحة المفاتيح - Keyboard Shortcuts… اختصارات لوحة المفاتيح… - Kind النوع - Knife سكين - Lab Lab - Landscape أفقي - Language اللغة - Language Options خيارات اللغة - Language: اللغة: - Large كبير - Large Tabs علامات تبويب كبيرة - Lasso حبل التحديد - Lasso Tool أداة الحبل - Last الأخير - Last commit آخر إيداع - Layer طبقة - Layers الطبقات - Layers Panel Options خيارات لوحة الطبقات - Leading تباعد الأسطر - Left يسار - Left-to-Right Paragraph Direction اتجاه الفقرة من اليسار إلى اليمين - Left: يسار: - Legal Legal - Length الطول - Length: الطول: - Letter Letter - Levels المستويات - Levels… المستويات… - Libraries المكتبات - Light فاتح - Light Blue أزرق فاتح - Light Direction اتجاه الضوء - Light Gray رمادي فاتح - Lighten تفتيح - Lighting الإضاءة - Lightness الإضاءة - Lights المناطق الفاتحة - Line خط - Line delta صافي الأسطر - Line Segment قطعة مستقيمة - Linear خطي - Linear Gradient تدرج خطي - Lines خطوط - Lines +/− الأسطر +/− - Lines added الأسطر المضافة - Lines deleted الأسطر المحذوفة - Links الارتباطات - Live Paint Bucket دلو التلوين الحي - Location الموقع - Location: الموقع: - Lock قفل - Lock Guides قفل خطوط الإرشاد - Lock Slices قفل الشرائح - Long Lines خطوط طويلة - Long Strokes ضربات طويلة - Low منخفض - Luminosity السطوع - Magenta أرجواني - Magic Wand العصا السحرية - Magic Wand Tool أداة العصا السحرية - Make الشركة المصنعة - Make Clipping Mask إنشاء قناع قطع - Make Compound Path إنشاء مسار مركب - Make Guides إنشاء خطوط إرشاد - Mask قناع - Matte لون الحافة - Maximize تكبير - Maximum الحد الأقصى - Measure قياس - Medium متوسط - Medium Dots نقاط متوسطة - Medium Lines خطوط متوسطة - Medium Strokes ضربات متوسطة - Merge دمج - Merge Layers دمج الطبقات - Merged PRs طلبات السحب المدمجة - Mesh شبكة - Message: الرسالة: - Method الطريقة - Mezzotint… ميزوتينت… - Millimeters مليمترات - Minimize تصغير - Minimum الحد الأدنى - Minus Back طرح الخلفية - Minus Front طرح المقدمة - Mirror مرآة - Miter حادة - Mobile الجوال - Mode الوضع - Mode: الوضع: - Model الطراز - Models النماذج - Modern حديث - Modify تعديل - Monitor RGB RGB الشاشة - Monochromatic أحادي اللون - Monochrome أحادي اللون - Move تحريك - Move Down تحريك لأسفل - Move Panel تحريك اللوحة - Move Up تحريك لأعلى - Multiply مضاعفة - Name الاسم - Name (A–Z) الاسم (أ–ي) - Name: الاسم: - Navigator الملاح - New جديد - New Group مجموعة جديدة - New Group… مجموعة جديدة… - New Layer… طبقة جديدة… - New Set… مجموعة جديدة… - New Swatch… عينة لون جديدة… - New Workspace مساحة عمل جديدة - New Workspace… مساحة عمل جديدة… - New… جديد… - No contributor data was built into this copy. لم يتم تضمين بيانات المساهمين في هذه النسخة. - No Dither بلا ترقيش - No document لا يوجد مستند - No document open لا يوجد مستند مفتوح - No model credits were built into this copy. لم يتم تضمين بيانات الإشادة بالنماذج في هذه النسخة. - Noise تشويش - None بلا - Normal عادي - Note Paper ورق ملاحظات - NTSC Colors ألوان NTSC - Object كائن - Odd Fields حقول فردية - Off إيقاف - Offset إزاحة - OK موافق - Only Web Colors ألوان الويب فقط - Opacity العتامة - Opacity: العتامة: - Open فتح - Open Documents As Tabs فتح المستندات كعلامات تبويب - Open… فتح… - Optimized محسّن - Options الخيارات - Options… خيارات… - Orange برتقالي - Ordinals أرقام ترتيبية - Orientation الاتجاه - Original الأصلي - Other أخرى - Outer Glow… توهج خارجي… - Outline مخطط تفصيلي - Outline Stroke تحديد مسار الحد - Output الإخراج - Output: الإخراج: - Outside خارج - Overlay تراكب - Overlay Edge تراكب الحافة - Overprint طباعة فوقية - Overprint Preview معاينة الطباعة الفوقية - Package… تجميع الحزمة… - Paintbrush فرشاة الطلاء - Panel menu قائمة اللوحة - Panel Options… خيارات اللوحة… - Panels اللوحات - Paragraph فقرة - Paragraph Styles أنماط الفقرات - Paste لصق - Paste in Back لصق في الخلف - Paste in Front لصق في المقدمة - Paste in Place لصق في المكان - Paste on All Artboards لصق على كافة لوحات العمل - Path مسار - Path Eraser ممحاة المسار - Pathfinder مستكشف المسارات - Paths المسارات - Pattern النقشة - Pen القلم - Pen Tool أداة القلم - Pencil قلم رصاص - Pencil Tool أداة القلم الرصاص - Perceptual إدراكي - Performance الأداء - Perspective منظور - Perspective Grid شبكة المنظور - Photocopy نسخ ضوئي - Picas بيكا - Pixel بكسل - Pixel Preview معاينة البكسل - Pixelate بكسلة - Pixels بكسل - Place… إدراج… - Plaster جبس - Plug-ins المكونات الإضافية - Plug-ins & Scratch Disks المكونات الإضافية وأقراص العمل المؤقتة - Point Sample عينة نقطية - Pointillize… تنقيط… - Points نقاط - Polar Grid شبكة قطبية - Polygon مضلع - Polygon Tool أداة المضلع - Portrait عمودي - Position الموضع - Postcard بطاقة بريدية - Preferences التفضيلات - Preserve الاحتفاظ - PRESET DETAILS تفاصيل الإعداد المسبق - Preset Name اسم الإعداد المسبق - Preset: الإعداد المسبق: - Presets إعدادات مسبقة - Presets: الإعدادات المسبقة: - Press keys… اضغط المفاتيح… - Pressure الضغط - Preview معاينة - Print طباعة - Print Tiling تجانب الطباعة - Printer الطابعة - Print… طباعة… - Progressive تدريجي - Proof Colors ألوان المعاينة الطباعية - Proof Setup إعداد المعاينة الطباعية - Properties الخصائص - Public Domain ملكية عامة - Pucker انكماش - Punctuation علامات الترقيم - Puppet Warp التواء الدمية - Purple بنفسجي - Quality الجودة - Quick Actions إجراءات سريعة - Quickly start a new file بدء ملف جديد بسرعة - Radial شعاعي - Radial Blur… ضبابية شعاعية… - Radial Gradient تدرج شعاعي - Radius نصف القطر - Radius: نصف القطر: - Random عشوائي - Range: النطاق: - Rasterize تنقيط - Rasterize… تنقيط… - Ratio النسبة - Real name الاسم الحقيقي - Rearrange All Artboards… إعادة ترتيب كافة لوحات العمل… - Recent الأخيرة - Recent Files الملفات الأخيرة - Recolor Artwork… إعادة تلوين العمل الفني… - Rectangle مستطيل - Rectangle Tool أداة المستطيل - Rectangular Grid شبكة مستطيلة - Red أحمر - Redo إعادة - Reflect انعكاس - Regular عادي - Relative نسبي - Relative Colorimetric قياس لوني نسبي - Release Clipping Mask تحرير قناع القطع - Release Compound Path تحرير المسار المركب - Release Guides تحرير خطوط الإرشاد - Remove إزالة - Remove Anchor Points إزالة نقاط الإرساء - Rename إعادة تسمية - Rename Group… إعادة تسمية المجموعة… - Rename… إعادة تسمية… - Repeat تكرار - Replace استبدال - Reselect إعادة التحديد - Reset إعادة تعيين - Reset Preferences إعادة تعيين التفضيلات - Reset to Default إعادة تعيين إلى الافتراضي - Reshape إعادة تشكيل - Resize panel window تغيير حجم نافذة اللوحة - Resize panels تغيير حجم اللوحات - Resolution: الدقة: - Restore استعادة - Reticulation تشبيك - Reverse Path Direction عكس اتجاه المسار - Reverse the order عكس الترتيب - Revert استعادة - RGB Color ألوان RGB - Right يمين - Right-to-Left Paragraph Direction اتجاه الفقرة من اليمين إلى اليسار - Right: يمين: - Roman روماني - Rotate تدوير - Rotate View تدوير العرض - Rotate View Tool أداة تدوير العرض - Rotation تدوير - Round مستديرة - Rounded Rectangle مستطيل مستدير الزوايا - Roundness: الاستدارة: - Rulers المساطر - Rulers & Grids المساطر والشبكات - Saturate زيادة التشبع - Saturation التشبع - Save حفظ - Save a Copy… حفظ نسخة… - Save As… حفظ باسم… - Save for Web (Legacy)… حفظ للويب (قديم)… - Save Preset… حفظ الإعداد المسبق… - Save Selection حفظ التحديد - Save Selection… حفظ التحديد… - Saved تم الحفظ - Save… حفظ… - Scale تحجيم - Scale Cursor Proportional to UI تحجيم المؤشر بالتناسب مع واجهة المستخدم - Scale: المقياس: - Scallop تسنن - Scatter تبعثر - Scissors مقص - Scratch Disks أقراص التخزين المؤقت - Screen شاشة - Screen Mode وضع الشاشة - Scripts البرامج النصية - Search بحث - Select تحديد - Select All تحديد الكل - Select: التحديد: - Selection تحديد - Selection & Anchor Display التحديد وعرض نقاط الإرساء - Selective انتقائي - Send Backward إرسال للخلف - Send to Back إرسال إلى المؤخرة - Set: المجموعة: - Settings… إعدادات… - Shape شكل - Shape Builder منشئ الأشكال - Shape: الشكل: - Shapes الأشكال - Sharpen زيادة الحدة - Shear إمالة - Shear… قص مائل… - Shift Shift - Short Lines خطوط قصيرة - Short Strokes ضربات قصيرة - Show إظهار - Show All إظهار الكل - Show Bounding Box إظهار مربع الإحاطة - Show Grid إظهار الشبكة - Show Guides إظهار خطوط الإرشاد - Show in Folder إظهار في المجلد - Show Mesh إظهار الشبكة - Show Rulers إظهار المساطر - Show Tool Group Labels إظهار تسميات مجموعات الأدوات - Show Transparency Grid إظهار شبكة الشفافية - Show: إظهار: - Sides: الأضلاع: - Simplify… تبسيط… - Simulate Paper محاكاة الورق - Size الحجم - Size: الحجم: - Skew إمالة - Slice Options… خيارات الشريحة… - Slice Tool أداة الشريحة - Slices الشرائح - Small صغير - Small Caps أحرف استهلالية صغيرة - Smaller ↔ Larger أصغر ↔ أكبر - Smart Blur… ضبابية ذكية… - Smart Guides خطوط الإرشاد الذكية - Smooth تنعيم - Snap to Grid محاذاة إلى الشبكة - Soft ناعم - Soft Light ضوء خافت - Softness النعومة - Solid مصمت - Sort فرز - Spacing التباعد - Spin دوران - Spiral حلزون - Sponge إسفنجة - Spot Color لون موضعي - Square مربع - Stamp ختم - Standard قياسي - Standard Ligatures حروف مركبة قياسية - Star نجمة - Step Backward خطوة للخلف - Step Forward خطوة للأمام - Stop إيقاف - Strength القوة - Strikethrough يتوسطه خط - Stroke الحد - Patterns النقشات - Stroke Options خيارات الحدود - Stroke: حدود: - Style النمط - Stylize تنميط - Subdivisions التقسيمات الفرعية - Subtract طرح - Swash حروف مزخرفة - Swatches عينات الألوان - Symbol Sprayer بخاخ الرموز - Symbols الرموز - System Title Bar شريط عنوان النظام - Table جدول - Tabloid Tabloid - Taper التناقص التدريجي - Target الهدف - Target: الهدف: - Temperature درجة الحرارة - Texture الملمس - Thickness السماكة - Threshold العتبة - Tile تجانب - Tint صبغة - Tolerance التفاوت - Tolerance: التفاوت: - Tool أداة - Tools الأدوات - Top أعلى - Top Left أعلى اليسار - Top Right أعلى اليمين - Top: أعلى: - Torn Edges حواف ممزقة - Total: الإجمالي: - Tracking تباعد الأحرف - Transform تحويل - Transparency الشفافية - Transparent شفاف - Trap… حصر الألوان… - Triangle مثلث - Trim قص الحواف - Twirl دوامة - Twist لف - Type نوع - Type: النوع: - Type… النص… - UI Scaling تحجيم واجهة المستخدم - Underline تسطير - Undo تراجع - Ungroup فك التجميع - Uniform منتظم - Unite توحيد - Units الوحدات - Unknown غير معروف - Unlock All إلغاء قفل الكل - Unsharp Mask… قناع الحدة… - Untitled بدون عنوان - Use Default استخدام الافتراضي - User Interface واجهة المستخدم - Username اسم المستخدم - Variables المتغيرات - Version الإصدار - Vertical عمودي - Vertical Type Tool أداة النص العمودي - Very High عالٍ جدًا - Video فيديو - View عرض - Violet بنفسجي - Visibility الرؤية - W: العرض: - Warp التواء - Water Paper ورق مائي - Wave… موجة… - Weight الوزن - Weight: السمك: - White أبيض - Width العرض - Width: العرض: - Window نافذة - Windows Windows - Working CMYK مساحة عمل CMYK - Workspace مساحة العمل - Wrinkle تجعد - Yellow أصفر - Zoom تكبير/تصغير - Zoom In تكبير - Zoom Out تصغير - Zoom Tool أداة التكبير/التصغير - “{name}” already exists. Replace it? “{name}” موجود بالفعل. هل تريد استبداله؟ -@plural agrees with {n} default shortcut|agrees with {n} default shortcuts يتطابق مع {n} اختصار افتراضي|يتطابق مع {n} اختصار افتراضي|يتطابق مع {n} اختصارين افتراضيين|يتطابق مع {n} اختصارات افتراضية|يتطابق مع {n} اختصارًا افتراضيًا|يتطابق مع {n} اختصار افتراضي -@plural Color Table ({n} color)|Color Table ({n} colors) جدول الألوان ({n} لون)|جدول الألوان ({n} لون)|جدول الألوان ({n} لونين)|جدول الألوان ({n} ألوان)|جدول الألوان ({n} لونًا)|جدول الألوان ({n} لون) -@plural Delete this {n} graphic style?|Delete these {n} graphic styles? هل تريد حذف هذا النمط الرسومي ({n})؟|هل تريد حذف هذا النمط الرسومي ({n})؟|هل تريد حذف هذين النمطين الرسوميين ({n})؟|هل تريد حذف هذه الأنماط الرسومية ({n})؟|هل تريد حذف هذه الأنماط الرسومية ({n})؟|هل تريد حذف هذه الأنماط الرسومية ({n})؟ -@plural {n} area highlighted|{n} areas highlighted {n} منطقة مميزة|{n} منطقة مميزة|{n} منطقتان مميزتان|{n} مناطق مميزة|{n} منطقةً مميزة|{n} منطقة مميزة -@plural {n} color|{n} colors {n} لون|{n} لون|{n} لونين|{n} ألوان|{n} لونًا|{n} لون @plural {n} commit|{n} commits {n} إيداع|{n} إيداع|{n} إيداعين|{n} إيداعات|{n} إيداعًا|{n} إيداع -@plural {n} fill|{n} fills {n} تعبئة|{n} تعبئة|{n} تعبئتان|{n} تعبئات|{n} تعبئةً|{n} تعبئة -@plural {n} glyph|{n} glyphs {n} محرف|{n} محرف|{n} محرفين|{n} محارف|{n} محرفًا|{n} محرف -@plural {n} item|{n} items {n} عنصر|{n} عنصر|{n} عنصران|{n} عناصر|{n} عنصرًا|{n} عنصر -@plural {n} Layer|{n} Layers {n} طبقة|{n} طبقة|{n} طبقتان|{n} طبقات|{n} طبقةً|{n} طبقة -@plural {n} more export waiting|{n} more exports waiting {n} عملية تصدير أخرى في الانتظار|{n} عملية تصدير أخرى في الانتظار|{n} عمليتا تصدير أخريان في الانتظار|{n} عمليات تصدير أخرى في الانتظار|{n} عملية تصدير أخرى في الانتظار|{n} عملية تصدير أخرى في الانتظار -@plural {n} object highlighted|{n} objects highlighted {n} كائن مميز|{n} كائن مميز|{n} كائنان مميزان|{n} كائنات مميزة|{n} كائنًا مميزًا|{n} كائن مميز -@plural {n} Object|{n} Objects {n} كائن|{n} كائن|{n} كائنان|{n} كائنات|{n} كائنًا|{n} كائن -@plural {n} part of the file wasn't read|{n} parts of the file weren't read لم يتم قراءة {n} جزء من الملف|لم يتم قراءة {n} جزء من الملف|لم يتم قراءة {n} جزءين من الملف|لم يتم قراءة {n} أجزاء من الملف|لم يتم قراءة {n} جزءًا من الملف|لم يتم قراءة {n} جزء من الملف -@plural {n} PR|{n} PRs {n} طلب سحب|{n} طلب سحب|{n} طلبا سحب|{n} طلبات سحب|{n} طلب سحب|{n} طلب سحب -@plural {n} shortcut is assigned more than once|{n} shortcuts are assigned more than once {n} اختصار تم تعيينه أكثر من مرة|{n} اختصار تم تعيينه أكثر من مرة|{n} اختصاران تم تعيينهما أكثر من مرة|{n} اختصارات تم تعيينها أكثر من مرة|{n} اختصارًا تم تعيينه أكثر من مرة|{n} اختصار تم تعيينه أكثر من مرة -@plural {n} star|{n} stars {n} نجمة|{n} نجمة|{n} نجمتان|{n} نجوم|{n} نجمةً|{n} نجمة -@plural {n} step|{n} steps {n} خطوة|{n} خطوة|{n} خطوتان|{n} خطوات|{n} خطوةً|{n} خطوة -@plural {n} stroke|{n} strokes {n} حد|{n} حد|{n} حدان|{n} حدود|{n} حدًا|{n} حد -3d Bevel مشطوفة -3d Light فاتح -3d Solid مصمت -3d Space Space -@msg Opened {url} تم فتح {url} -axis Both كلاهما -axis Horizontal أفقي -axis Vertical عمودي -effect Horizontal أفقي -effect Points نقاط -effect Regular عادي -effect Soft ناعم -effect Vertical عمودي -gradient-kind Radial شعاعي -imageTrace Outline مخطط تفصيلي -lighting Light فاتح -swatch Aqua أزرق مائي -swatch Black أسود -swatch Blue أزرق -swatch Copper نحاسي -swatch Cyan سماوي -swatch Green أخضر -swatch Indigo نيلي -swatch Magenta أرجواني -swatch Orange برتقالي -swatch Purple بنفسجي -swatch Red أحمر -swatch Violet بنفسجي -swatch White أبيض -swatch Yellow أصفر -theme Appearance المظهر - Gap فجوة - Exposure التعريض - Exposure… التعريض… - Desaturate إزالة التشبع - Adjustment تعديل - Brightness/Contrast السطوع/التباين - Hue/Saturation درجة اللون/التشبع diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 7cb278ade3..69daee29cd 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -7,9 +7,9 @@ fn lang(code: &str) -> Lang { Lang::from_code(code).unwrap_or_else(|| panic!("{code} registered")) } -/// The languages that are not English, the source language. +/// The languages that are not English, the source language, and have complete catalogs. fn translated() -> Vec { - Lang::all().filter(|l| *l != Lang::EN).collect() + Lang::all().filter(|l| l.complete_menus()).collect() } /// (language, context, English source, the term the language's glossary gives it). One row per @@ -164,21 +164,11 @@ fn numbered_labels_translate_the_name_before_the_number() { fn arabic_resolves_locales_and_preferences() { let ar = Lang::from_code("ar").expect("ar registered"); assert_eq!(ar.name(), "العربية"); - assert!(ar.complete_menus()); + assert!(!ar.complete_menus()); assert_eq!(Lang::from_pref("ar"), ar); for tag in ["ar", "AR", "ar-SA", "ar_EG", "ar_EG.UTF-8", "ar-AE", "ar-MA"] { assert_eq!(i18n().match_tag(tag), Some(ar), "{tag}"); } - for (en, want) in [ - ("Artboards", "لوحات العمل"), - ("Swatches", "عينات الألوان"), - ("Stroke", "الحد"), - ("Direct Selection", "تحديد مباشر"), - ("Save As…", "حفظ باسم…"), - ("Undo", "تراجع"), - ] { - assert_eq!(tr(ar, en), want, "{en}"); - } } #[test] @@ -741,8 +731,8 @@ fn message_dump_lists_the_reported_messages() { } /// Languages whose catalogs leave [`MENU_KEEP_AS_IS`] in English. -const KEEPS_MENU_NAMES: [&str; 21] = - ["cs", "de", "el", "es", "fr", "hi", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "fi", "tr", "ca", "ar"]; +const KEEPS_MENU_NAMES: [&str; 20] = + ["cs", "de", "el", "es", "fr", "hi", "hu", "it", "ja", "ka", "ko", "pl", "pt-br", "ru", "sv", "uk", "vi", "fi", "tr", "ca"]; /// Menu labels the menu-complete catalogs (Czech, German, Spanish, Italian, Japanese, Brazilian Portuguese) show as they are: the product name, a format name, the built-in workspace /// names and the perspective grid presets (names, shown untranslated wherever else they appear). diff --git a/docs/localization-parity.md b/docs/localization-parity.md index 697f3ecf06..0e92bec3f1 100644 --- a/docs/localization-parity.md +++ b/docs/localization-parity.md @@ -35,7 +35,7 @@ Chinese by `imachus`). Georgian and the original Gujarati catalog are recorded a | Spanish | `es` | 4,009 / 4,020 (99.7%) | all (3,770 `@msg` and 55 `@msgplural` rows, counted 2026-11-18: the untranslated report lists 269 messages without a Spanish row, 236 in its own section and 33 that all 24 checked languages lack) | Latin | no | full | — (review) | | Hindi | `hi` | 8,782 rows (2026-11-13): 3,014 `@msg`, 47 `@msgplural`, 41 `@plural`; the untranslated report on main `f793044f83` (2026-11-14) lists 676 missing rows for it: 608 in its own section and 68 that every checked language lacks | menus, dialogs, tooltips and scanned messages; contributor-approved loanword terminology; agent wording pass | UI and document text shape with HarfRust; installed desktop Devanagari fallback, or a `Deva` craft-fonts face; the web fetches Noto Sans Devanagari when the interface needs it | contributor terminology review; 2026-11-13 wording pass on messages and longer labels, and a word-sense pass on short labels, with a glossary-term test; wider proofread welcome | complete catalog, machine-assisted draft | reported missing rows, native review and layout | | Gujarati | `gu` | 4,673 rows (2026-11-14): original 4,286 unchanged; all 387 additions contributor-reviewed and approved | menus and dialogs; status/error messages partial | installed Gujarati fonts on desktop; optional `Gujr` craft-fonts fallback; no Gujarati face in the pinned CI/release fonts or web startup list | original catalog reviewed by a native speaker; all 387 later additions approved by the contributor, with 11 wording corrections | contributor-reviewed catalog | remaining messages and a bundled Gujarati web font | -| Arabic | `ar` | 873 catalog entries: menus, preferences, tools, dialogs, commands and 6-form CLDR plurals; native Arabic name العربية | menus, dialogs, preferences | Arabic: document text has bidi layout and paragraph direction; interface strings render in Modern Standard Arabic via system fallback fonts; full shell mirroring pending STD-I18N-001 | no (AI-drafted, clean-room) | partial | 15–20 | +| Arabic | `ar` | registered with 6-form CLDR plurals and native name العربية; translations maintained upstream in `storytold/craft-i18n` (`locales/ar/vectorcraft.tsv`) under AGENTS.md rule 16 | menus, dialogs, preferences | Arabic: document text has bidi layout and paragraph direction; interface strings render in Modern Standard Arabic via system fallback fonts; full shell mirroring pending STD-I18N-001 | no (AI-drafted, clean-room) | partial | 15–20 | | French | `fr` | 9,166 rows, 3,436 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 178 missing messages for it | all | Latin | no | full | — (review) | | Portuguese | `pt-br` | 9,378 rows, 3,563 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 55 missing messages for it, which open #7116, #7211, #7330, #7378 and #7405 translate; one/other plurals | all | Latin | contributor is a Brazilian Portuguese speaker; further native review welcome | full | — (review) | | Indonesian | `id` | 7,553 rows, 1,682 of them `@msg` and 49 `@msgplural` (counted 2026-11-15 on `main` at `df984b2a02`): in `COMPLETE_MESSAGES`, and the untranslated report lists 50 missing menu strings, 35 `tl!` literals, 11 undo labels and 1,929 messages for it, the same sets as for Danish; one plural form | most dialogs and tooltips; status and error messages partial | Latin | no | full | — (review) | From 9838fc1f1cf4a83d710f2cea900cbdc46676294f Mon Sep 17 00:00:00 2001 From: tareq Date: Wed, 25 Nov 2026 08:12:15 +0100 Subject: [PATCH 3/6] refactor(i18n): make Arabic PR preparatory and keep unavailable to users until catalog is consumed - Keep Arabic unavailable in offered_codes, Language picker, and preference resolution - Verify CLDR 6-form plural rule and catalog parsing on custom instance - Update parity docs and leave #7665 open for the catalog consumer PR --- crates/ui-egui/src/i18n.rs | 5 +++-- crates/ui-egui/src/i18n/tests.rs | 24 +++++++++++++----------- docs/localization-parity.md | 2 +- 3 files changed, 17 insertions(+), 14 deletions(-) diff --git a/crates/ui-egui/src/i18n.rs b/crates/ui-egui/src/i18n.rs index bd6fb2f56c..70d087cfb2 100644 --- a/crates/ui-egui/src/i18n.rs +++ b/crates/ui-egui/src/i18n.rs @@ -74,9 +74,10 @@ static EMBEDDED: &Embedded = &[ /// The codes of [`EMBEDDED`] the interface offers. Browsers cannot use the native installed-font /// fallback, so on the web a language whose text would be missing-glyph boxes (Gujarati without a -/// bundled Gujarati face) is not offered, including when restoring a preference. +/// bundled Gujarati face) is not offered, including when restoring a preference. Arabic is kept +/// unavailable to users until the shared catalog in `storytold/craft-i18n` is consumed. fn offered_codes(web: bool, gujarati_font: bool) -> Vec<&'static str> { - EMBEDDED.iter().map(|(code, ..)| *code).filter(|code| *code != "gu" || !web || gujarati_font).collect() + EMBEDDED.iter().map(|(code, ..)| *code).filter(|code| *code != "ar" && (*code != "gu" || !web || gujarati_font)).collect() } /// The one catalog set of the process, built on first use. diff --git a/crates/ui-egui/src/i18n/tests.rs b/crates/ui-egui/src/i18n/tests.rs index 69daee29cd..ad0f07c5e9 100644 --- a/crates/ui-egui/src/i18n/tests.rs +++ b/crates/ui-egui/src/i18n/tests.rs @@ -161,22 +161,24 @@ fn numbered_labels_translate_the_name_before_the_number() { } #[test] -fn arabic_resolves_locales_and_preferences() { - let ar = Lang::from_code("ar").expect("ar registered"); - assert_eq!(ar.name(), "العربية"); - assert!(!ar.complete_menus()); - assert_eq!(Lang::from_pref("ar"), ar); - for tag in ["ar", "AR", "ar-SA", "ar_EG", "ar_EG.UTF-8", "ar-AE", "ar-MA"] { - assert_eq!(i18n().match_tag(tag), Some(ar), "{tag}"); - } +fn arabic_is_preparatory_and_unavailable_to_users() { + assert_eq!(Lang::from_code("ar"), None); + assert!(!Lang::for_picker().iter().any(|l| l.code() == "ar")); + assert_eq!(Lang::from_pref("ar"), Lang::from_pref("auto")); } #[test] -fn arabic_plural_rule_has_six_forms() { - let ar = Lang::from_code("ar").expect("ar registered"); +fn arabic_plural_rule_and_catalog_infrastructure() { + let (i18n, problems) = I18n::new(EMBEDDED, &["ar"]); + assert!(problems.is_empty(), "{problems:?}"); + let ar = i18n.from_code("ar").expect("ar offered in custom instance"); + assert_eq!(i18n.name(ar), "العربية"); + for tag in ["ar", "AR", "ar-SA", "ar_EG", "ar_EG.UTF-8", "ar-AE", "ar-MA"] { + assert_eq!(i18n.match_tag(tag), Some(ar), "{tag}"); + } for (n, want) in [(0, "0 إيداع"), (1, "1 إيداع"), (2, "2 إيداعين"), (3, "3 إيداعات"), (11, "11 إيداعًا"), (100, "100 إيداع")] { - assert_eq!(trn(ar, n, "{n} commit", "{n} commits"), want, "for n={n}"); + assert_eq!(i18n.trn_plain(ar, n, "{n} commit", "{n} commits"), want, "for n={n}"); } } diff --git a/docs/localization-parity.md b/docs/localization-parity.md index 0e92bec3f1..1a2e2047f0 100644 --- a/docs/localization-parity.md +++ b/docs/localization-parity.md @@ -35,7 +35,7 @@ Chinese by `imachus`). Georgian and the original Gujarati catalog are recorded a | Spanish | `es` | 4,009 / 4,020 (99.7%) | all (3,770 `@msg` and 55 `@msgplural` rows, counted 2026-11-18: the untranslated report lists 269 messages without a Spanish row, 236 in its own section and 33 that all 24 checked languages lack) | Latin | no | full | — (review) | | Hindi | `hi` | 8,782 rows (2026-11-13): 3,014 `@msg`, 47 `@msgplural`, 41 `@plural`; the untranslated report on main `f793044f83` (2026-11-14) lists 676 missing rows for it: 608 in its own section and 68 that every checked language lacks | menus, dialogs, tooltips and scanned messages; contributor-approved loanword terminology; agent wording pass | UI and document text shape with HarfRust; installed desktop Devanagari fallback, or a `Deva` craft-fonts face; the web fetches Noto Sans Devanagari when the interface needs it | contributor terminology review; 2026-11-13 wording pass on messages and longer labels, and a word-sense pass on short labels, with a glossary-term test; wider proofread welcome | complete catalog, machine-assisted draft | reported missing rows, native review and layout | | Gujarati | `gu` | 4,673 rows (2026-11-14): original 4,286 unchanged; all 387 additions contributor-reviewed and approved | menus and dialogs; status/error messages partial | installed Gujarati fonts on desktop; optional `Gujr` craft-fonts fallback; no Gujarati face in the pinned CI/release fonts or web startup list | original catalog reviewed by a native speaker; all 387 later additions approved by the contributor, with 11 wording corrections | contributor-reviewed catalog | remaining messages and a bundled Gujarati web font | -| Arabic | `ar` | registered with 6-form CLDR plurals and native name العربية; translations maintained upstream in `storytold/craft-i18n` (`locales/ar/vectorcraft.tsv`) under AGENTS.md rule 16 | menus, dialogs, preferences | Arabic: document text has bidi layout and paragraph direction; interface strings render in Modern Standard Arabic via system fallback fonts; full shell mirroring pending STD-I18N-001 | no (AI-drafted, clean-room) | partial | 15–20 | +| Arabic | `ar` | registered with 6-form CLDR plurals and native name العربية; translations maintained upstream in `storytold/craft-i18n` (`locales/ar/vectorcraft.tsv`) under AGENTS.md rule 16; preparatory registration kept unavailable in picker until upstream catalog is consumed | menus, dialogs, preferences | Arabic: document text has bidi layout and paragraph direction; interface strings render in Modern Standard Arabic via system fallback fonts; full shell mirroring pending STD-I18N-001 | no (AI-drafted, clean-room) | preparatory | 15–20 | | French | `fr` | 9,166 rows, 3,436 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 178 missing messages for it | all | Latin | no | full | — (review) | | Portuguese | `pt-br` | 9,378 rows, 3,563 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 55 missing messages for it, which open #7116, #7211, #7330, #7378 and #7405 translate; one/other plurals | all | Latin | contributor is a Brazilian Portuguese speaker; further native review welcome | full | — (review) | | Indonesian | `id` | 7,553 rows, 1,682 of them `@msg` and 49 `@msgplural` (counted 2026-11-15 on `main` at `df984b2a02`): in `COMPLETE_MESSAGES`, and the untranslated report lists 50 missing menu strings, 35 `tl!` literals, 11 undo labels and 1,929 messages for it, the same sets as for Danish; one plural form | most dialogs and tooltips; status and error messages partial | Latin | no | full | — (review) | From 2dcedf34fde2458c2ff2e7be6e1378088ef7345d Mon Sep 17 00:00:00 2001 From: tareq Date: Wed, 25 Nov 2026 08:48:08 +0100 Subject: [PATCH 4/6] =?UTF-8?q?docs(i18n):=20align=20localization-parity?= =?UTF-8?q?=20Arabic=20row=20with=20preparatory=20PR=20scope=20(AGENTS.md?= =?UTF-8?q?=20=C2=A715)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/localization-parity.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/localization-parity.md b/docs/localization-parity.md index 1a2e2047f0..60ad923f00 100644 --- a/docs/localization-parity.md +++ b/docs/localization-parity.md @@ -1,6 +1,6 @@ # Localization parity -> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-24 · **Change:** minor (Arabic (`ar`): catalog added with Modern Standard Arabic menus, preferences, tools, dialogs, commands and 6-form CLDR plurals; native name العربية; Hindi catalog draft complete under the translation tests; contributor loanword terminology reviewed; wider proofreading welcome; Brazilian Portuguese: 154 rows for the strings the sibling catalogs translate — smart-filter and print presets, dimension lines, swatches, canvas messages; previously minor: Bosnian (`bs`): complete catalog; previously minor: Vietnamese text: stacked diacritics tested and attach in every form, #4491; previously: Catalan (`ca`) catalog added, complete under the tests) +> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-11-25 · **Change:** patch (Arabic (`ar`): preparatory registration and 6-form CLDR plural routing; UI not exposed pending upstream `storytold/craft-i18n` catalog; Hindi catalog draft complete under the translation tests; contributor loanword terminology reviewed; wider proofreading welcome; Brazilian Portuguese: 154 rows for the strings the sibling catalogs translate — smart-filter and print presets, dimension lines, swatches, canvas messages; previously minor: Bosnian (`bs`): complete catalog; previously minor: Vietnamese text: stacked diacritics tested and attach in every form, #4491; previously: Catalan (`ca`) catalog added, complete under the tests) Per-language status of VectorCraft's interface. How the catalogs work and how to add a language: [`development.md` › Localisation](development.md#localisation). Part of @@ -35,7 +35,7 @@ Chinese by `imachus`). Georgian and the original Gujarati catalog are recorded a | Spanish | `es` | 4,009 / 4,020 (99.7%) | all (3,770 `@msg` and 55 `@msgplural` rows, counted 2026-11-18: the untranslated report lists 269 messages without a Spanish row, 236 in its own section and 33 that all 24 checked languages lack) | Latin | no | full | — (review) | | Hindi | `hi` | 8,782 rows (2026-11-13): 3,014 `@msg`, 47 `@msgplural`, 41 `@plural`; the untranslated report on main `f793044f83` (2026-11-14) lists 676 missing rows for it: 608 in its own section and 68 that every checked language lacks | menus, dialogs, tooltips and scanned messages; contributor-approved loanword terminology; agent wording pass | UI and document text shape with HarfRust; installed desktop Devanagari fallback, or a `Deva` craft-fonts face; the web fetches Noto Sans Devanagari when the interface needs it | contributor terminology review; 2026-11-13 wording pass on messages and longer labels, and a word-sense pass on short labels, with a glossary-term test; wider proofread welcome | complete catalog, machine-assisted draft | reported missing rows, native review and layout | | Gujarati | `gu` | 4,673 rows (2026-11-14): original 4,286 unchanged; all 387 additions contributor-reviewed and approved | menus and dialogs; status/error messages partial | installed Gujarati fonts on desktop; optional `Gujr` craft-fonts fallback; no Gujarati face in the pinned CI/release fonts or web startup list | original catalog reviewed by a native speaker; all 387 later additions approved by the contributor, with 11 wording corrections | contributor-reviewed catalog | remaining messages and a bundled Gujarati web font | -| Arabic | `ar` | registered with 6-form CLDR plurals and native name العربية; translations maintained upstream in `storytold/craft-i18n` (`locales/ar/vectorcraft.tsv`) under AGENTS.md rule 16; preparatory registration kept unavailable in picker until upstream catalog is consumed | menus, dialogs, preferences | Arabic: document text has bidi layout and paragraph direction; interface strings render in Modern Standard Arabic via system fallback fonts; full shell mirroring pending STD-I18N-001 | no (AI-drafted, clean-room) | preparatory | 15–20 | +| Arabic | `ar` | preparatory registration (native name العربية) and 6-form CLDR plural probe only; translations maintained upstream in `storytold/craft-i18n` (`locales/ar/vectorcraft.tsv`) and not yet consumed | none (UI not exposed pending shared catalog) | document text: existing bidirectional layout and paragraph direction; interface UI: not exposed pending shared catalog, with full shell mirroring pending STD-I18N-001 | — (preparatory) | preparatory (not exposed) | 15–20 | | French | `fr` | 9,166 rows, 3,436 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 178 missing messages for it | all | Latin | no | full | — (review) | | Portuguese | `pt-br` | 9,378 rows, 3,563 of them `@msg` and 48 `@msgplural` (counted 2026-11-13): the untranslated report lists 55 missing messages for it, which open #7116, #7211, #7330, #7378 and #7405 translate; one/other plurals | all | Latin | contributor is a Brazilian Portuguese speaker; further native review welcome | full | — (review) | | Indonesian | `id` | 7,553 rows, 1,682 of them `@msg` and 49 `@msgplural` (counted 2026-11-15 on `main` at `df984b2a02`): in `COMPLETE_MESSAGES`, and the untranslated report lists 50 missing menu strings, 35 `tl!` literals, 11 undo labels and 1,929 messages for it, the same sets as for Danish; one plural form | most dialogs and tooltips; status and error messages partial | Latin | no | full | — (review) | @@ -101,7 +101,7 @@ font for the web build. | Date | Change | Summary | |---|---|---| -| 2026-11-24 | minor | Arabic (`ar`): catalog added with Modern Standard Arabic menus, preferences, tools, dialogs, commands and 6-form CLDR plurals; registered as twenty-sixth non-English language; native name العربية | +| 2026-11-25 | patch | Arabic (`ar`): preparatory registration and 6-form CLDR plural routing; kept unavailable to users pending upstream `storytold/craft-i18n` catalog | | 2026-11-14 | minor | Gujarati (#6613): contributor proofreading completed for all 387 additions, with 11 wording corrections; 4,673 reviewed catalog rows. Status/error messages remain partial; web selection requires a bundled Gujarati face. Scores and estimates unchanged. | | 2026-11-12 | minor | Gujarati (`gu`): reviewed by a native speaker; zero/one singular plurals (CLDR); Gujarati craft-fonts faces join the UI fonts; strings added on main since branching translated (4,286 rows) | | 2026-11-11 | minor | Gujarati (`gu`): 4,235-row machine-assisted interface catalog, one/other plurals, desktop Gujarati font fallback and a glyph-coverage filter; status and error messages not yet translated; native review pending | From 7e7826c6e9c05cfc221d5cfa1a489b81747e79ed Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 1 Dec 2026 14:25:21 -0800 Subject: [PATCH 5/6] Gradient: the stop popover's CMYK sliders keep the stop's own values The Color tab of the gradient stop popover gave its Color panel only the stop's sRGB, so every frame the rows worked their values out again from that sRGB. On a CMYK stop, typing a value or dragging one slider rewrote the other channels: typing Cyan 40 on C10 M20 Y30 K5 gave M17.3 Y24.7 K0. The popover now passes the stop's values in its own model, as the Color panel does, so a typed value stays as typed and a drag changes only the dragged channel. The new test types Cyan, sets Magenta and drags Yellow on a CMYK stop and checks the exact channel values after each edit. --- crates/ui-egui/src/dialogs/gradient_stop.rs | 94 +++++++++++++++++++-- 1 file changed, 86 insertions(+), 8 deletions(-) diff --git a/crates/ui-egui/src/dialogs/gradient_stop.rs b/crates/ui-egui/src/dialogs/gradient_stop.rs index 5b2ee66107..e9e05185b5 100644 --- a/crates/ui-egui/src/dialogs/gradient_stop.rs +++ b/crates/ui-egui/src/dialogs/gradient_stop.rs @@ -17,7 +17,8 @@ use std::sync::Arc; use craft::behavior::IconId; use craft::color_ui::ui::{ - ColorPanel, ColorPanelLayout, ColorPanelMode, ColorPanelOutput, ColorPanelShown, ColorPanelState, ColorPanelWords, DropperButton, SwatchPalette, + ColorPanel, ColorPanelLayout, ColorPanelMode, ColorPanelOutput, ColorPanelShown, ColorPanelState, ColorPanelWords, DropperButton, PickedColor, + SwatchPalette, }; use craft::theme::Srgba; use craft::theme::variant::Tone; @@ -43,6 +44,7 @@ use vectorcraft_geom::{Point, Rect}; use vectorcraft_tools::params::color_json; use crate::VectorcraftApp; +use crate::panels::color::model_values; use crate::panels::gradient::{edit_point, edits_points, set_stops, set_stops_keeping_models, shown_points}; use crate::panels::{Live, active_paint, c32}; @@ -470,6 +472,9 @@ fn body(ui: &mut Ui, feed: &Feed, tab: &mut Tab, panel: &mut ColorPanelState, fi filed.panels.push( ColorPanel::new(Bind::bound(&mut *panel), [feed.current; 2]) .layout(ColorPanelLayout::FillStroke) + // The rows show and edit the stop's own values (CMYK %, working RGB), not values + // derived again from its sRGB on every frame. + .edited(Some(PickedColor::in_model(feed.current, model_values(&feed.color)))) .shown(feed.shown.clone()) .show(ui), ); @@ -575,13 +580,11 @@ fn place(app: &VectorcraftApp, ctx: &egui::Context, anchor: Anchor) -> Pos2 { } } -/// Pushes `target`'s values, the swatches, what the Color panel shows and the place into the open popover `id`. -fn refresh(app: &VectorcraftApp, ctx: &egui::Context, id: DialogId, target: &Target) { - let Some(dialogs) = app.dialogs() else { return }; - let Some(anchor) = dialogs.with(|host| host.get_by_id::(id).map(|popover| popover.anchor)) else { return }; +/// `target`'s values, the document's swatches and what the Color panel shows, for the popover's body. +fn feed(app: &VectorcraftApp, target: &Target) -> Feed { let shown = crate::panels::color::shown(app, &crate::panels::color::target_now(app)); let swatches = swatch_colors(app); - let feed = Feed { + Feed { point: matches!(target, Target::Point(..)), color: target.color(), current: Srgba::from(c32(&target.color())), @@ -590,7 +593,14 @@ fn refresh(app: &VectorcraftApp, ctx: &egui::Context, id: DialogId, target: &Tar tiles: swatches.iter().map(|(name, c)| (Label::from(name.clone()), Srgba::from(c32(c)))).collect(), swatches, shown, - }; + } +} + +/// Pushes `target`'s values, the swatches, what the Color panel shows and the place into the open popover `id`. +fn refresh(app: &VectorcraftApp, ctx: &egui::Context, id: DialogId, target: &Target) { + let Some(dialogs) = app.dialogs() else { return }; + let Some(anchor) = dialogs.with(|host| host.get_by_id::(id).map(|popover| popover.anchor)) else { return }; + let feed = feed(app, target); let at = place(app, ctx, anchor); dialogs.with(|host| { if let Some(popover) = host.get_mut_by_id::(id) { @@ -776,7 +786,14 @@ fn apply(app: &mut VectorcraftApp, target: &Target, f: &PopoverFields) { #[cfg(test)] mod tests { use craft::behavior::{EditEvent, GestureId, Mixed}; - use craft::color_ui::ui::{PanelTarget, PickedColor}; + use std::cell::RefCell; + use std::rc::Rc; + + use craft::color_ui::ui::PanelTarget; + use craft::ui::runtime::access::Role; + use craft::ui::testing::Fixture; + use craft::ui::testing::focus::AccessActionKind; + use egui::{Key, Modifiers}; use vectorcraft_engine::Session; use super::*; @@ -1203,4 +1220,65 @@ mod tests { host::pump(&mut app, &ctx); assert!(!is_open(&app)); } + + /// The popover's body over `app`'s selected stop in `mode`, drawn headless; each frame's Color panel output is + /// applied to the stop as `pump` applies it. + fn panel_body(app: Rc>, mode: ColorPanelMode) -> Fixture { + let mut tab = Tab::Color; + let mut panel = ColorPanelState::default(); + panel.mode = mode; + app.borrow_mut().ui.color_panel.mode = mode; + let mut fx = Fixture::new(move |ui| { + let mut app = app.borrow_mut(); + let Some(target) = selected(&app) else { return }; + let feed = feed(&app, &target); + let mut filed = Filed::default(); + body(ui, &feed, &mut tab, &mut panel, &mut filed); + for output in &filed.panels { + crate::panels::color::apply_output(&mut app, output); + } + }); + fx.room(vec2(320.0, 640.0)).settle(); + fx + } + + fn stop_cmyk(app: &VectorcraftApp) -> [f32; 4] { + let Color::Cmyk { c, m, y, k } = stops(app)[1].color else { panic!("a CMYK stop: {:?}", stops(app)[1].color) }; + [c, m, y, k] + } + + /// A CMYK value typed or set on one row of the popover changes only that channel: the others keep their + /// exact values instead of being worked out again from the stop's RGB. + #[test] + fn a_cmyk_stop_keeps_its_other_channels_when_one_is_typed_or_dragged() { + let mut app = app(); + app.run("file.documentColorMode", json!({"mode": "cmyk"})).unwrap(); + let stops_json = json!([{"offset": 0, "color": "#ffffff"}, {"offset": 0.5, "color": {"c": 10, "m": 20, "y": 30, "k": 5}}, {"offset": 1, "color": "#000000"}]); + app.run("paint.setFill", json!({"gradient": {"stops": stops_json, "start": [100, 150], "end": [200, 150]}, "keepModel": true})).unwrap(); + app.run("gradient.selectStop", json!({"index": 1})).unwrap(); + let close = |a: [f32; 4], b: [f32; 4]| a.iter().zip(b).all(|(x, y)| (x - y).abs() < 1e-4); + assert!(close(stop_cmyk(&app), [0.10, 0.20, 0.30, 0.05]), "{:?}", stop_cmyk(&app)); + let app = Rc::new(RefCell::new(app)); + let mut fx = panel_body(app.clone(), ColorPanelMode::CmykSliders); + let row = |fx: &Fixture, name: &str| { + fx.by_role(Role::SLIDER).into_iter().find(|t| fx.tree().name_of(t.node) == Some(name)).unwrap_or_else(|| panic!("the {name} slider")) + }; + // Typed: the Cyan field gets 40. + let field = fx.by_role(Role::SPIN_BUTTON).into_iter().find(|t| fx.tree().name_of(t.node) == Some("Cyan")).expect("the Cyan field"); + fx.click(&field).key(Key::A, Modifiers::COMMAND).type_text("40").key(Key::Enter, Modifiers::NONE).settle(); + let typed = stop_cmyk(&app.borrow()); + assert!(close(typed, [0.40, 0.20, 0.30, 0.05]), "typed Cyan: {typed:?}"); + // Set as a screen reader sets it: the Magenta slider goes to 60. + let magenta = row(&fx, "Magenta"); + fx.access(AccessActionKind::SetValue(60.0), &magenta).idle(2); + let set = stop_cmyk(&app.borrow()); + assert!(close(set, [0.40, 0.60, 0.30, 0.05]), "Magenta set to 60: {set:?}"); + // Dragged with the pointer: the Yellow slider's thumb goes from a tenth to most of the way across. + let yellow = row(&fx, "Yellow"); + let along = |f: f32| egui::pos2(yellow.rect.left() + f * yellow.rect.width(), yellow.rect.center().y); + fx.drag_at(along(0.1), along(0.8) - along(0.1)).idle(2); + let [c, m, y, k] = stop_cmyk(&app.borrow()); + assert!(close([c, m, k, 0.0], [0.40, 0.60, 0.05, 0.0]), "dragged Yellow kept the other channels: {:?}", [c, m, y, k]); + assert!(y > 0.5, "the drag moved Yellow: {y}"); + } } From 86a5efd04c0ae4ddee3c50342c7b7c5732a98f91 Mon Sep 17 00:00:00 2001 From: dotCooCoo Date: Tue, 1 Dec 2026 14:38:27 -0800 Subject: [PATCH 6/6] Export for Screens: Include Bleed files of an artboard hold the bleed once With Include Bleed, a .vectorcraft, .ai or EPS row wrote the artboard already grown by the document's bleed and kept the document's bleed as well. Opened again, the file had the bleed outside the grown artboard, so a PDF with the document's bleed came out with it twice: a 3 mm bleed made a 6 mm one. These files now hold the grown artboard with a bleed of 0. PDF rows and Full Document files are unchanged. The params text and docs/mcp.md say so. --- crates/engine/src/cmd/fileio/commands.rs | 2 +- crates/engine/src/cmd/fileio/screens.rs | 23 ++++++++---- crates/engine/src/cmd/fileio/tests_screens.rs | 36 +++++++++++++++++++ docs/mcp.md | 3 +- 4 files changed, 55 insertions(+), 9 deletions(-) diff --git a/crates/engine/src/cmd/fileio/commands.rs b/crates/engine/src/cmd/fileio/commands.rs index a48ac3e85b..99a916a453 100644 --- a/crates/engine/src/cmd/fileio/commands.rs +++ b/crates/engine/src/cmd/fileio/commands.rs @@ -54,7 +54,7 @@ pub fn specs() -> Vec { "Export for Screens", ["File", "Export"], None, - "{folder?, zip?: false (one .zip of every file, each deflated or stored, whichever is smaller: no folder → {name, dataBase64, bytes, files: [name…]}; with a folder it is written there → {path, bytes, files}), artboard?: index | artboards?: [index…] | range?: \"1-3\" (default all), assets?: [asset id…] (instead of artboards: each asset's art alone, cropped to its bounds and named after the asset; see assets.list), layers?: [layer id…] (instead of artboards: each layer's art alone, sublayers included, named after the layer), selection?: one|each (instead of artboards: the selected art as one file, or a file per selected object, named after it), fullDocument?: false (one file per format instead: a PDF of every artboard, other formats the bounds of all visible art, named after the document), includeBleed?: false (artboards grown by the document's bleed; a PDF page keeps the artboard as its TrimBox and puts its row's bleed around it once, the document's bleed when the row sets none and its preset gives none or 0), includeArtboardFill?: true (Include Artboard Fill: each artboard's background color behind its art; false leaves it out), pdfs?: multiple|single (Export PDFs As: with several artboards, single writes them as the pages of one PDF per PDF row, named after the document; refused with assets, layers or selection: each), exportPreset?: (a preset of document.exportPresets.list: its settings, under these params), subfolders?: false (each row's files in a sub-folder: its folder, else its size for raster (1x, 2x, 100w…) or its format (SVG, PDF)), folders?: none|rows (as subfolders)|format (a folder per extension: png, svg, pdf…)|item (a folder per artboard, asset, layer or object)|itemFormat (item/extension) (default: rows with subfolders or a preset, else none), name?: (a file name pattern instead of the item's name, with for the document, for the artboard, asset, layer or object, from 1, #### for the counter zero-padded to the run of #, , , (else the row's suffix ends the name), YYYYMMDD, YYYY-MM-DD, YYYY, ,