String packs: rich-text entries, language conditions and word rewriting; theme doctor report; translate-mode words
- Rich sentences (a link or button inside text) can be replaced by data: the inventory gives a rich entry `slots`, a pack value places the site's own elements with {e0}, {e1}, ... (each once, the last may be left out; no markup, plural or other parameters). The engine returns a pieces + element order template; the page inventory carries `rich` slot counts.
- Packs may carry `when: { languages }` (applies only while the site shows one of them; `en` matches `en-GB`) and `rewrite: { words }` (whole-word rewording of the site's own text, messages keep their parameters' values; no sentences of the site in the pack). The hook tells the engine the site's language; a rewording pack makes the delivery carry the whole inventory.
- Apps can ship built-in packs (BuiltInPacks) delivered before installed ones; syncStringPacks hands the tabs a delivery at start only when it changed.
- Translate mode words are a function the app supplies (asked at each draw) and gain a `plural` word; host validates `when` and `rewrite` envelopes.
- Theme doctor: every finding says where (token path or CSS rule), what and how to fix, as catalog keys wb.doctor.*; the Theme Builder shows the full report; the import hint is translated. Doctor words are in the 17 supported catalogs.
- waybetter strings check describes conditions and rewrites.
This commit is contained in:
parent
2ea6f784b8
commit
2dd5d88718
33 changed files with 1353 additions and 85 deletions
|
|
@ -1243,6 +1243,46 @@
|
|||
"wb.appearance.icons.remove": "ลบ {name}",
|
||||
"wb.appearance.icons.removed": "ลบแพ็กไอคอน “{name}” แล้ว",
|
||||
"wb.appearance.icons.imported": "แพ็กไอคอนที่นำเข้า",
|
||||
"wb.doctor.title": "หมอธีม",
|
||||
"wb.doctor.hint": "คำแนะนำเกี่ยวกับธีมนี้: วิธีที่เบากว่าในการทำสิ่งเดียวกัน ต้นทุน และคอนทราสต์ ทำหน้าที่แนะนำเท่านั้น ไม่มีอะไรถูกบล็อกหรือเปลี่ยนแปลง",
|
||||
"wb.doctor.empty": "ไม่มีอะไรต้องรายงาน: ธีมใช้โทเค็นและการตั้งค่าคอมโพเนนต์ และไม่มีอะไรที่สิ้นเปลืองทรัพยากร",
|
||||
"wb.doctor.count": "{count, plural, other {# ข้อสังเกต}}",
|
||||
"wb.doctor.kind.lighter": "วิธีที่เบากว่า",
|
||||
"wb.doctor.kind.performance": "ประสิทธิภาพ",
|
||||
"wb.doctor.kind.accessibility": "การเข้าถึง",
|
||||
"wb.doctor.kind.contrast": "คอนทราสต์",
|
||||
"wb.doctor.where": "ตำแหน่ง",
|
||||
"wb.doctor.fix": "วิธีแก้",
|
||||
"wb.doctor.css-radius.found": "กฎนี้กำหนดรัศมีมุมด้วย CSS",
|
||||
"wb.doctor.css-radius.fix": "กำหนดด้วย radius ของส่วนหนึ่งใต้ components หรือ shape.radius สำหรับทุกส่วน: ไม่ต้องใช้ CSS และยังใช้ได้แม้เว็บไซต์เปลี่ยนชื่อคลาส",
|
||||
"wb.doctor.css-bevel.found": "กฎนี้วาดขอบเอียงด้วยเงาด้านในซ้อนกัน",
|
||||
"wb.doctor.css-bevel.fix": "ใช้ borderStyle \"bevel-out\" หรือ \"bevel-in\" กับส่วนหนึ่งใต้ components: ระบบจะวาดขอบเอียงจากสีของธีม",
|
||||
"wb.doctor.css-hide.found": "กฎนี้ซ่อนบางอย่างด้วย display: none",
|
||||
"wb.doctor.css-hide.fix": "ใช้ visible กับส่วนหนึ่งใต้ components (อวาตาร์ ตัวนับ ชื่อ) หรือตัวเลือกเลย์เอาต์ เช่น sidebar: hidden เจ้าของจะได้เปิดกลับมาได้",
|
||||
"wb.doctor.css-color.found": "กฎนี้ใช้สีแบบระบุตรง ๆ",
|
||||
"wb.doctor.css-color.fix": "ระบุบทบาท (text, muted, accent, surface…) ใน colors หรือในคอมโพเนนต์ เพื่อให้การตรวจคอนทราสต์ครอบคลุม",
|
||||
"wb.doctor.css-font.found": "กฎนี้กำหนดตระกูลฟอนต์",
|
||||
"wb.doctor.css-font.fix": "ใช้ font.roles: กำหนดฟอนต์ของโพสต์ หัวข้อ ตัวเลข และ mono ได้โดยไม่ต้องใช้ CSS",
|
||||
"wb.doctor.css-has.found": "กฎนี้ใช้ :has() ซึ่งจะถูกจับคู่ใหม่ทุกครั้งที่หน้าเปลี่ยน",
|
||||
"wb.doctor.css-has.fix": "อย่าใช้ :has() กับกฎที่ซ้ำตลอดไทม์ไลน์ หรือผูกกฎกับส่วนหนึ่ง",
|
||||
"wb.doctor.css-universal.found": "กฎนี้ใช้ตัวเลือกสากล (*) ซึ่งถูกจับคู่กับทุกองค์ประกอบ",
|
||||
"wb.doctor.css-universal.fix": "ผูกกฎกับส่วนหนึ่งแทน",
|
||||
"wb.doctor.css-blur.found": "กฎนี้เบลอสิ่งที่อยู่ด้านหลัง (backdrop-filter) ซึ่งสิ้นเปลืองในส่วนที่ซ้ำกันหลายครั้ง",
|
||||
"wb.doctor.css-blur.fix": "ใช้การเติมแบบกระจกของแถบและแผง: เป็นที่ที่เบลอได้ถูกกว่า",
|
||||
"wb.doctor.css-outline-none.found": "กฎนี้ลบเส้นขอบโฟกัสออก ทำให้มองไม่เห็นโฟกัสของคีย์บอร์ดอีกต่อไป",
|
||||
"wb.doctor.css-outline-none.fix": "ใช้ decor.focusRing เพื่อวาดวงแหวนโฟกัสที่มองเห็นได้แทน",
|
||||
"wb.doctor.css-motion.found": "กฎนี้ทำแอนิเมชันโดยไม่ตรวจสอบการลดการเคลื่อนไหว",
|
||||
"wb.doctor.css-motion.fix": "เก็บการเคลื่อนไหวไว้ใน @media (prefers-reduced-motion: no-preference) หรือให้ decor.motion จัดการให้",
|
||||
"wb.doctor.css-size.found": "CSS ยาวเกิน 20,000 ตัวอักษร",
|
||||
"wb.doctor.css-size.fix": "เว็บไซต์คำนวณสไตล์ใหม่ทุกกฎ โทเค็นและการตั้งค่าคอมโพเนนต์คอมไพล์เป็นกฎที่น้อยกว่า",
|
||||
"wb.doctor.contrast.found": "สี {token} ถูกปรับเพื่อให้ยังอ่านได้ ({ratio}:1 บนพื้นหลัง)",
|
||||
"wb.doctor.contrast.fix": "เลือกสี {token} ที่สว่างขึ้นหรือเข้มขึ้น ระหว่างนี้ธีมจะแสดงด้วยสีที่ปรับแล้ว",
|
||||
"wb.doctor.glass-post.found": "ตั้งค่ากระจกไว้กับโพสต์ แต่ไม่ถูกวาด: การเบลอทุกโพสต์ในไทม์ไลน์สิ้นเปลืองเกินไป",
|
||||
"wb.doctor.glass-post.fix": "ใช้การเติมสีทึบหรือสีอ่อนกับโพสต์ และเก็บกระจกไว้ใช้กับแถบและแผง",
|
||||
"wb.doctor.small-post-text.found": "ข้อความโพสต์มีขนาด {size}px ซึ่งอ่านยากสำหรับหลายคน",
|
||||
"wb.doctor.small-post-text.fix": "ใช้ 14px ขึ้นไปสำหรับขนาดข้อความโพสต์ หรือเพิ่มขนาดข้อความของทั้งธีม",
|
||||
"wb.doctor.nav-moved.found": "การนำทางถูกย้ายไปที่ {position} ซึ่งเปลี่ยนที่ที่ผู้คนมองหามัน",
|
||||
"wb.doctor.nav-moved.fix": "ใช้เฉพาะแผงที่กว้าง และเจ้าของปิดการเปลี่ยนเลย์เอาต์ได้ คงตำแหน่งเริ่มต้นไว้ เว้นแต่เลย์เอาต์จำเป็นต้องใช้",
|
||||
"wb.setup.title": "แชร์การตั้งค่าของฉัน",
|
||||
"wb.setup.hint": "ธีม ไอคอน โหมด และฟีเจอร์ที่เปิดอยู่ของคุณ เป็นลิงก์เดียวหรือไฟล์เล็กๆ ไฟล์เดียว ใครก็ใช้เริ่มจากสิ่งที่คุณมีได้",
|
||||
"wb.setup.shareLabel": "การตั้งค่าของคุณ",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue