This commit is contained in:
bflatastic committed 2026-11-18 08:49:23 +07:00
commit 3b7422d2f8
16 files changed
+116 -53

No files matched your search

+1 -1
View File
@@ -74,7 +74,7 @@ pub fn specs() -> Vec<CommandSpec> {
cmd!(
"text.convertListToText",
"Convert to Text",
[],
["Type"],
None,
"{ids?|id?, start?: byte, end?: byte} (Type › Bullets and Numbering › Convert to Text: the paragraphs of the selected type, or of `ids`, or those a start/end range touches; after Select All in a frame of threaded text, without `ids`, `id` or a range, every paragraph of every frame of the story, locked and hidden frames included) the marker of each list paragraph becomes characters of its text: the bullet, or the number and its period as the paragraph showed it, then a tab, at the start of the paragraph in the marker's font, size and color; the list is turned off. When the marker's tab went to the left indent, the paragraph gets a left-aligned tab stop without a leader there, in place of any stop there, which keeps the text after the tab where it started; when it went to a tab stop and a stop there or past it has a leader or is not left-aligned, or a right, center or decimal stop lies between the marker and that place, the paragraph gets a left-aligned stop without a leader where the marker's tab ended, in place of any stop there and of those right, center and decimal stops before it (past the left indent only in a paragraph with no tab of its own). In threaded type the numbers are those counted through the story's frames, and a paragraph that continues into a later frame is converted where its text starts. An empty list paragraph has no marker and only leaves the list. A paragraph with no direction set gets the direction it ran in when the characters would change it (a letter or roman numeral before right-to-left text). With the Every-line Composer, a paragraph with a tab is broken line by line, so a converted paragraph can break its lines at other places. While the Type tool edits, its typing ends first and its anchor and caret move past the characters inserted at or before them (a whole story that Select All selected stays selected when the call converts all of it); in threaded type, when the caret's character moved to another frame, the tool edits that frame, which becomes the selection when it was not selected. One undo step → {ids, converted: paragraphs, inserted: [{id, at: byte before the change, length: bytes}]}",
has_doc,
+1 -1
View File
@@ -1175,7 +1175,7 @@ font-technology Variable Променливи
Extrude & Bevel… Избутване и фасетка…
3D (Classic) 3D (класически)
Extrude & Bevel (Classic)… Избутване и фасетка (класически)…
Revolve (Classic)… Завъртане (класическо)…
Revolve (Classic)… Завъртане около ос (класическо)…
Rotate (Classic)… Ротация (класическа)…
Surface Повърхност
Wireframe Телена рамка
Can't render this file because it is too large.
+1 -1
View File
@@ -1517,7 +1517,7 @@ lighting Light Svjetlo
Vertical Type Okomiti tekst
Warp Tool Alat za iskrivljenje
Width Tool Alat širina
Wrinkle Tool Alat za nabiranje
Wrinkle Tool Alat za nabore
Zoom Tool Alat za zumiranje
Action {n} Akcija {n}
Begin Recording Započni snimanje
Can't render this file because it contains an unexpected character in line 2 and column 73.
+29 -29
View File
@@ -3067,35 +3067,35 @@ digits Malayalam Malaiàlam
Open password: Contrasenya d’obertura:
Open Paths Traçats oberts
Open Recent File 1 Obre el fitxer recent 1
Open Recent File 10 Obre el fitxer recent 2
Open Recent File 11 Obre el fitxer recent 3
Open Recent File 12 Obre el fitxer recent 4
Open Recent File 13 Obre el fitxer recent 5
Open Recent File 14 Obre el fitxer recent 6
Open Recent File 15 Obre el fitxer recent 7
Open Recent File 16 Obre el fitxer recent 8
Open Recent File 17 Obre el fitxer recent 9
Open Recent File 18 Obre el fitxer recent 10
Open Recent File 19 Obre el fitxer recent 11
Open Recent File 2 Obre el fitxer recent 12
Open Recent File 20 Obre el fitxer recent 13
Open Recent File 21 Obre el fitxer recent 14
Open Recent File 22 Obre el fitxer recent 15
Open Recent File 23 Obre el fitxer recent 16
Open Recent File 24 Obre el fitxer recent 17
Open Recent File 25 Obre el fitxer recent 18
Open Recent File 26 Obre el fitxer recent 19
Open Recent File 27 Obre el fitxer recent 20
Open Recent File 28 Obre el fitxer recent 21
Open Recent File 29 Obre el fitxer recent 22
Open Recent File 3 Obre el fitxer recent 23
Open Recent File 30 Obre el fitxer recent 24
Open Recent File 4 Obre el fitxer recent 25
Open Recent File 5 Obre el fitxer recent 26
Open Recent File 6 Obre el fitxer recent 27
Open Recent File 7 Obre el fitxer recent 28
Open Recent File 8 Obre el fitxer recent 29
Open Recent File 9 Obre el fitxer recent 30
Open Recent File 10 Obre el fitxer recent 10
Open Recent File 11 Obre el fitxer recent 11
Open Recent File 12 Obre el fitxer recent 12
Open Recent File 13 Obre el fitxer recent 13
Open Recent File 14 Obre el fitxer recent 14
Open Recent File 15 Obre el fitxer recent 15
Open Recent File 16 Obre el fitxer recent 16
Open Recent File 17 Obre el fitxer recent 17
Open Recent File 18 Obre el fitxer recent 18
Open Recent File 19 Obre el fitxer recent 19
Open Recent File 2 Obre el fitxer recent 2
Open Recent File 20 Obre el fitxer recent 20
Open Recent File 21 Obre el fitxer recent 21
Open Recent File 22 Obre el fitxer recent 22
Open Recent File 23 Obre el fitxer recent 23
Open Recent File 24 Obre el fitxer recent 24
Open Recent File 25 Obre el fitxer recent 25
Open Recent File 26 Obre el fitxer recent 26
Open Recent File 27 Obre el fitxer recent 27
Open Recent File 28 Obre el fitxer recent 28
Open Recent File 29 Obre el fitxer recent 29
Open Recent File 3 Obre el fitxer recent 3
Open Recent File 30 Obre el fitxer recent 30
Open Recent File 4 Obre el fitxer recent 4
Open Recent File 5 Obre el fitxer recent 5
Open Recent File 6 Obre el fitxer recent 6
Open Recent File 7 Obre el fitxer recent 7
Open Recent File 8 Obre el fitxer recent 8
Open Recent File 9 Obre el fitxer recent 9
Open Recent Files Obre fitxers recents
Open Swatch Library Obre la biblioteca de mostres
Open Symbol Library Obre la biblioteca de símbols
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1 -1
View File
@@ -303,7 +303,7 @@
Move Plane to Match Object Siirrä taso objektin mukaan
Edit Text Muokkaa tekstiä
Live Paint Elävä maalaus
Merge Yhdistä
Merge Sulauta
Gap Options… Aukkojen asetukset…
Gap Options Aukkojen asetukset
Gap Detection Aukkojen tunnistus
Can't render this file because it contains an unexpected character in line 2 and column 73.
+4 -4
View File
@@ -3558,9 +3558,9 @@ digits Malayalam Malayalam
Shape Properties: Propriétés de la forme :
Shaper Tool Outil Shaper
Shapes Formes
Shear Déformation
Shear Tool Outil Déformation
Shear… Déformation…
Shear Cisaillement
Shear Tool Outil Cisaillement
Shear… Cisaillement…
Shell Lower… Coquillage inférieur…
Shell Upper… Coquillage supérieur…
Shift Maj
@@ -6354,7 +6354,7 @@ lighting Light Lumière
Set: Jeu :
Shades Tons foncés
Shades of Gray Nuances de gris
Shear: Déformation :
Shear: Cisaillement :
Shift+Click Maj+clic
Shift+Drag Maj+glisser
Shortcut Raccourci
Can't render this file because it is too large.
+4 -4
View File
@@ -303,7 +303,7 @@ font-technology Variable Вариативные
Background Contents Содержимое фона
Background: Фон:
Backspace Backspace
Bar Graph Tool Инструмент «Гистограмма»
Bar Graph Tool Инструмент «Линейчатая диаграмма»
Baseline Базовая линия
Baseline Shift Смещение базовой линии
Basic Latin Основная латиница
@@ -2035,7 +2035,7 @@ file-filter Templates Шаблоны
Line Cut Разрезание линий
Line Cut Tool Инструмент «Разрезание линий»
Line Endings: Окончания линий:
Line Graph Tool Инструмент «Линейчатая диаграмма»
Line Graph Tool Инструмент «График»
Line Segment Отрезок
Line Segment Tool Инструмент «Отрезок»
Line Segment Tool Options Параметры инструмента «Отрезок»
@@ -3828,7 +3828,7 @@ digits Malayalam Малаялам
Spread: Разворот:
Square Квадрат
Squeeze… Сжатие…
Stacked Bar Graph Tool Инструмент «Гистограмма с накоплением»
Stacked Bar Graph Tool Инструмент «Линейчатая диаграмма с накоплением»
Stacked Column Graph Tool Инструмент «Гистограмма с накоплением»
Stair Step Ступенчатый
Standard Ligatures Стандартные лигатуры
@@ -4400,7 +4400,7 @@ digits Malayalam Малаялам
Zoom In Увеличить
Zoom Out Уменьшить
Zoom to Selection Масштаб по выделению
Zoom Tool Инструмент «Масштаб»
Zoom Tool Инструмент «Лупа»
Zoom with Mouse Wheel Масштабировать колесом мыши
Scroll Sideways with Cmd/Ctrl + Wheel Прокручивать по горизонтали колесом с Cmd/Ctrl
Scrub Numeric Fields by Dragging Изменять числовые поля перетаскиванием
Can't render this file because it is too large.
+1 -1
View File
@@ -295,7 +295,7 @@ font-technology Variable Variabla
Background Contents Bakgrundsinnehåll
Background: Bakgrund:
Backspace Backspace
Bar Graph Tool Stapeldiagramverktyg
Bar Graph Tool Verktyg för liggande stapeldiagram
Baseline Baseline
Baseline Shift Baslinjeförskjutning
Basic Latin Grundläggande latin
Can't render this file because it is too large.
+41 -1
View File
@@ -1227,6 +1227,26 @@ fn leading_term_agrees_within_each_catalog() {
assert!(bad.is_empty(), "rows that name leading differently from the Leading field:\n{}", bad.join("\n"));
}
/// A plain row whose English ends with a number, such as "Saved View 10", has that number in its
/// translation as a number of its own, so the rows of a numbered list do not swap or repeat names.
/// Messages are left out: "index must be ≥ 0" can be translated as "index must not be negative".
#[test]
fn numbered_rows_keep_their_number() {
let mut bad = Vec::new();
for l in LANGUAGES.iter().filter(|l| !l.source.is_empty()) {
let (entries, _) = parse_entries(l.source);
for (_, src, tr) in entries.into_iter().filter(|(ctx, _, _)| ctx.is_empty()) {
let Some((_, n)) = src.rsplit_once(' ').filter(|(_, n)| !n.is_empty() && n.chars().all(|c| c.is_ascii_digit())) else {
continue;
};
if !tr.split(|c: char| !c.is_ascii_digit()).any(|run| run == n) {
bad.push(format!("{}: {src:?} → {tr:?}", l.code));
}
}
}
assert!(bad.is_empty(), "numbered rows without their number:\n{}", bad.join("\n"));
}
/// No translated word mixes Latin, Cyrillic and Greek letters, such as a Latin "A" typed in place
/// of a Cyrillic "А". A word written in one script, such as "PDF" or "X" in a Russian row, is
/// allowed.
@@ -1864,6 +1884,26 @@ fn menu_items_side_by_side_have_different_labels() {
assert!(same.is_empty(), "{} pairs of menu items look alike:\n{}", same.len(), same.join("\n"));
}
/// Whether a menu label shows an id: a dotted command id, inside backticks or outside them, or
/// `key`, the command or effect id of its item, on its own.
fn label_shows_an_id(label: &str, key: &str) -> bool {
let plain = label.replace('`', " ");
!command_ids(&plain).is_empty() || plain.trim() == key
}
#[test]
fn label_shows_an_id_finds_ids_in_backticks_and_bare_keys() {
let key = "type.convertListToText";
assert!(label_shows_an_id("type.convertListToText", key));
assert!(label_shows_an_id("`type.convertListToText`", key));
assert!(label_shows_an_id("`type.convertListToText", key));
assert!(label_shows_an_id("Convert (`slice.list`)", key));
assert!(label_shows_an_id("roughen", "roughen"));
assert!(label_shows_an_id("`roughen`", "roughen"));
assert!(!label_shows_an_id("Convert to Text", key));
assert!(!label_shows_an_id("Roughen…", "roughen"));
}
/// Menu items show words, never the command or effect id their catalog row is keyed by.
#[test]
fn menu_items_never_show_an_id() {
@@ -1872,7 +1912,7 @@ fn menu_items_never_show_an_id() {
if let crate::menus::Item::Cmd(l, id, p) = item {
let key = menu_item_effect(id, p).unwrap_or(id);
let shown = shown_menu_label(lang, item).unwrap_or_default();
if !command_ids(shown).is_empty() && command_ids(l).is_empty() {
if label_shows_an_id(shown, key) && !label_shows_an_id(l, key) {
out.push(format!("{}: {l:?} ({key}) shows {shown:?}", lang.0.code));
}
}
+1 -1
View File
@@ -5741,7 +5741,7 @@ lighting Light Işık
@msg the SVG filter can't be drawn: check its primitives and their inputs SVG filtresi çizilemiyor: temel öğelerini ve bunların girdilerini denetle
@msg an SVG filter's elements nest at most {MAX_DEPTH} deep bir SVG filtresinin öğeleri en fazla {MAX_DEPTH} düzey iç içe geçer
@msg an SVG filter is at most {_1} KB bir SVG filtresi en fazla {_1} KB olur
@msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) nesnenin 3 boyutlu efekti yok (Ekstrüzyon ve Eğim, Döndür, Şişir veya Döndür)
@msg the object has no 3D effect (Extrude & Bevel, Revolve, Inflate or Rotate) nesnenin 3 boyutlu efekti yok (Ekstrüzyon ve Eğim, Eksen Etrafında Döndür, Şişir veya Döndür)
@msg `render` must be an object holding only `mode`, set to shaded or wireframe `render`, yalnızca değeri shaded veya wireframe olan `mode` içeren bir nesne olmalıdır
@msg its 3D effect builds no solid 3 boyutlu efekti hiçbir katı oluşturmuyor
@msg bevel must be none or one of {_1} bevel, none veya {_1} değerlerinden biri olmalıdır
Can't render this file because it is too large.
+6 -6
View File
@@ -301,7 +301,7 @@ font-technology Variable Варіативні
Background Contents Вміст фону
Background: Фон:
Backspace Backspace
Bar Graph Tool Інструмент «Гістограма»
Bar Graph Tool Інструмент «Лінійчата діаграма»
Baseline Базова лінія
Baseline Shift Зміщення базової лінії
Basic Latin Основна латиниця
@@ -2040,7 +2040,7 @@ file-filter Templates Шаблони
Line Cut Розрізання ліній
Line Cut Tool Інструмент «Розрізання ліній»
Line Endings: Закінчення ліній:
Line Graph Tool Інструмент «Лінійчаста діаграма»
Line Graph Tool Інструмент «Графік»
Line Segment Відрізок
Line Segment Tool Інструмент «Відрізок»
Line Segment Tool Options Параметри інструменту «Відрізок»
@@ -2717,7 +2717,7 @@ diagnostics ui інтерфейс
Perspective Grid Settings Параметри сітки перспективи
Perspective Grid Tool Інструмент «Сітка перспективи»
Perspective Plane Options… Параметри площини перспективи…
Perspective Selection Tool Інструмент "Виділення в перспективі"
Perspective Selection Tool Інструмент «Виділення в перспективі»
Phone 390×844 Телефон 390×844
Picas Піки
Pie Graph Tool Інструмент «Кругова діаграма»
@@ -3839,8 +3839,8 @@ effect Points Точки
Spread: Розворот:
Square Квадрат
Squeeze… Стиснення…
Stacked Bar Graph Tool Інструмент "Гістограма з накопиченням"
Stacked Column Graph Tool Інструмент "Гістограма з накопиченням"
Stacked Bar Graph Tool Інструмент «Лінійчата діаграма з накопиченням»
Stacked Column Graph Tool Інструмент «Гістограма з накопиченням»
Stair Step Ступінчастий
Standard Ligatures Стандартні лігатури
Standard Vertical Roman Alignment Стандартне римське вертикальне вирівнювання
@@ -4412,7 +4412,7 @@ effect Points Точки
Zoom In Збільшити
Zoom Out Зменшити
Zoom to Selection Масштаб виділення
Zoom Tool Інструмент «Масштаб»
Zoom Tool Інструмент «Лупа»
Zoom with Mouse Wheel Масштабувати колесом миші
Scroll Sideways with Cmd/Ctrl + Wheel Прокручувати по горизонталі колесом із Cmd/Ctrl
Scrub Numeric Fields by Dragging Змінювати числові поля перетягуванням
Can't render this file because it is too large.
+1 -1
View File
@@ -2474,7 +2474,7 @@ digits Hindi Hindi
Medium Thumbnail View Chế độ hình thu nhỏ vừa
Medium Thumbnails Hình thu nhỏ vừa
Menu Dialog Hộp thoại menu
Merge Hợp nhất
Merge Gộp
Merge colors into one row Hợp nhất màu vào một hàng
New Row Hàng mới
Merge Graphic Styles Hợp nhất kiểu đồ họa
Can't render this file because it contains an unexpected character in line 206 and column 5.
+1 -1
View File
@@ -924,7 +924,7 @@ antiAlias Sharp 锐利
Drop Shadow 制作阴影
Drop Shadow… 阴影…
Duotone Gradients 双色调渐变
Duplicate 复制
Duplicate 创建副本
Duplicate and Offset 10 pt 复制并偏移 10 pt
Duplicate Artboard 复制画板
Copy Artboard 拷贝画板
Can't render this file because it is too large.
+1 -1
View File
@@ -5591,7 +5591,7 @@ variable-list-end {0}, {1} {0}和{1}
Zoom In 放大顯示
Zoom Out 縮小顯示
Zoom to Selection 縮放至選取範圍
Zoom Tool 縮放工具
Zoom Tool 縮放顯示工具
Zoom with Mouse Wheel 使用滑鼠滾輪縮放
Scroll Sideways with Cmd/Ctrl + Wheel 使用 Cmd/Ctrl + 滾輪水平捲動
Scrub Numeric Fields by Dragging 拖曳以調整數值欄位
Can't render this file because it is too large.
+22
View File
@@ -3111,6 +3111,8 @@ mod tests {
assert_eq!(shown("file.new"), Some(("File".into(), "New…".into(), true)));
assert_eq!(shown("text.fitHeadline"), Some(("Type".into(), "Fit Headline".into(), false)));
assert_eq!(shown("type.fitHeadline"), Some(("Type".into(), "Fit Headline".into(), true)));
assert_eq!(shown("text.convertListToText"), Some(("Type".into(), "Convert to Text".into(), false)));
assert_eq!(shown("type.convertListToText"), Some(("Type › Bullets and Numbering".into(), "Convert to Text".into(), false)));
for id in ["file.exportInBackground", "file.openInBackground"] {
assert_eq!(shown(id), Some(("File".into(), "Continue in Background".into(), true)), "{id}");
}
@@ -3135,6 +3137,26 @@ mod tests {
assert!(d.str("__message").contains("was already used by Type › Fit Headline (type.fitHeadline) "), "{}", d.str("__message"));
}
/// No two entries of Keyboard Shortcuts have the same name in any UI language: each catalog
/// translates two different English names two different ways.
#[test]
fn no_two_entries_have_the_same_name_in_any_language() {
let all = entries();
let mut shared = vec![];
let previous = crate::i18n::current();
for lang in crate::i18n::Lang::all() {
crate::i18n::set_current(lang);
let mut by_name: HashMap<String, Vec<&str>> = HashMap::new();
for e in all.iter() {
by_name.entry(shown_name(e)).or_default().push(e.key.as_str());
}
shared.extend(by_name.into_iter().filter(|(_, keys)| keys.len() > 1).map(|(name, keys)| (lang.code(), name, keys)));
}
crate::i18n::set_current(previous);
shared.sort();
assert!(shared.is_empty(), "{} names: {shared:#?}", shared.len());
}
/// Two filter plug-ins with the same name in the same menu show their ids, and a third whose
/// name is one of those names with the id stays apart from it. A filter with that name in
/// another menu, or with a label that differs by its "…", shows no id.
+1
View File
@@ -1081,6 +1081,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- The errors of the blend spine commands (Move Spine Point, Reshape Spine Segment, Add Spine Point and Delete Spine Point) show in the status bar in the interface language: each has a row in every catalog that translates all status and error messages and in Bulgarian (`blend_spine_param_errors_are_translated`).
- The errors of the 3D effects (Extrude & Bevel, Revolve, Inflate, Rotate and their Classic forms) show in the status bar in the interface language: the art a 3D effect cannot build a solid from, invalid light, graphics and surface settings, and the notes for an object that draws no 3D faces or more wireframe edges than the limit. Each has a row in every catalog that translates all status and error messages, and the effect's name and the values in the message are translated or kept as written (`three_d_refusals_are_translated_in_every_complete_catalog`, `three_d_refusals_translate_with_their_values`).
- The errors of an SVG filter that the New or Edit button of Apply SVG Filter or an `svg.filter` effect refuses show in the status bar in the interface language: XML that cannot be read, a missing or too long id, an element or event attribute a filter does not take, an image that is not a `data:` URL, and the limits on primitives, `numOctaves`, `order`, `radius`, `stdDeviation`, `kernelUnitLength`, image pixels, nesting and size. Each has a row in every catalog that translates all status and error messages, and the limits, element and attribute names and the XML parser's position are kept as written (`svg_filter_refusals_are_translated_in_every_complete_catalog`, `svg_filter_refusals_translate_with_their_values`). Items side by side in a menu show different labels in every interface language (Effect › 3D and Materials › Revolve… and Rotate… in Turkish and Bulgarian, Effect › Warp and Distort, the Pathfinder effects, the Warp styles, Window › Attributes and Properties, and the whitespace characters), and no menu item shows a command id in place of its label (`menu_items_side_by_side_have_different_labels`, `menu_items_never_show_an_id`).
- Keyboard Shortcuts shows each entry under a name of its own in every interface language: the Scale and Zoom tools, the Column and Bar Graph tools and their stacked forms, the Pucker and Wrinkle tools, the Shear and Warp tools, Edit › Copy and Duplicate, Pathfinder Unite and Merge, and View › Saved View 2 to 17 have different names in every catalog (`no_two_entries_have_the_same_name_in_any_language`). The Line Graph tool reads as a line graph in Russian and Ukrainian, and in every catalog a row whose English name ends with a number keeps that number (`numbered_rows_keep_their_number`).
- The errors of the parameter checks that many commands share show in the status bar in the interface language: a value that is not a number where a number goes (`object.move` with `"dx": "60 mm"`, and `object.rotate`, `object.setBounds` and the other commands that call `check_numbers`), a missing number or index, `ids` that are not a list of object ids, an object id that is not a non-negative integer or names no object, and a date that is not Unix seconds. Each has a row in every catalog that translates all status and error messages, and in Bulgarian, Danish, Indonesian and Dutch (`shared_param_check_errors_are_translated`).
- File Info's (`file.info`) error for a value with control characters shows in the status bar in the interface language for every field: "description has control characters" for Description and Copyright Notice, which take line breaks and tabs, and "title has control characters or line breaks" for the other text fields and each keyword in a list. Each is its own message with a row in every catalog that translates all status and error messages, and the field's key stays as written (`file_info_control_character_refusals_translate_in_every_complete_catalog`, `control_characters_are_refused_with_the_field_rule`).
- A parameter schema's errors show in the status bar with what the value must be in the interface language, for every type a schema has (a number with each kind of range and with a unit, an integer and its range, true or false, a string, a list of names, an object id, a list of object ids, a color, a point, an object and a list), in every catalog that translates all status and error messages; the path, the refused value, the bounds, the unit and the names stay as the English gives them. The error for a value that is not one of its names is also translated in Bulgarian, Bosnian, Danish, Indonesian and Dutch (`parameter_schema_expected_phrases_are_translated`, `bracketed_message_parts_translate_only_as_exact_messages`).