mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Fix #3724: Window > New Window is greyed out until it opens a window
New Window was enabled in the menus and in the control channel's menu listing, but choosing it opened nothing and answered with the internal note "multiple windows land with M11.5". It is now disabled, as Window > Arrange's unimplemented items already are, and a direct call fails with a message meant for the user, translated in every catalog.
This commit is contained in:
committed by
bflatastic
parent
181aeef44c
commit
60764fb65b
@@ -3957,7 +3957,7 @@ axis Both И двете
|
||||
@msg missing index липсва индекс
|
||||
@msg missing number `{key}` липсва число `{key}`
|
||||
@msg missing integer `{key}` липсва цяло число `{key}`
|
||||
@msg multiple windows land with M11.5 множество прозорци се зареждат с M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Нов прозорец още не е наличен: документът се отваря в един прозорец
|
||||
@msg name the file именувайте файла
|
||||
@msg no CSS to copy: select objects with CSS of their own няма CSS за копиране: изберете обекти със собствен CSS
|
||||
@msg no Live Paint edge near that point няма ръб за интерактивно оцветяване близо до тази точка
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4350,7 +4350,7 @@ imageTrace Outline Obrys
|
||||
@msg missing index chybí index
|
||||
@msg missing number `{key}` chybí číslo `{key}`
|
||||
@msg missing integer `{key}` chybí celé číslo `{key}`
|
||||
@msg multiple windows land with M11.5 více oken přijde s M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nové okno zatím není k dispozici: dokument se otevírá v jednom okně
|
||||
@msg name the file pojmenujte soubor
|
||||
@msg no CSS to copy: select objects with CSS of their own žádné CSS ke kopírování: vyberte objekty s vlastním CSS
|
||||
@msg no Live Paint edge near that point poblíž tohoto bodu není žádná hrana živé malby
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4069,7 +4069,7 @@ imageTrace Outline Kontur
|
||||
@msg missing index indeks mangler
|
||||
@msg missing number `{key}` tallet `{key}` mangler
|
||||
@msg missing integer `{key}` heltallet `{key}` mangler
|
||||
@msg multiple windows land with M11.5 flere vinduer lander med M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nyt vindue er ikke tilgængeligt endnu: et dokument åbnes i ét vindue
|
||||
@msg name the file giv filen et navn
|
||||
@msg no CSS to copy: select objects with CSS of their own ingen CSS at kopiere: markér objekter med deres egen CSS
|
||||
@msg no Live Paint edge near that point ingen Live Paint-kant i nærheden af det punkt
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3971,7 +3971,7 @@ theme Appearance Erscheinungsbild
|
||||
@msg missing index der Index fehlt
|
||||
@msg missing number `{key}` die Zahl `{key}` fehlt
|
||||
@msg missing integer `{key}` die ganze Zahl `{key}` fehlt
|
||||
@msg multiple windows land with M11.5 mehrere Fenster kommen mit M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Neues Fenster ist noch nicht verfügbar: ein Dokument öffnet sich in einem Fenster
|
||||
@msg name the file benennen Sie die Datei
|
||||
@msg no CSS to copy: select objects with CSS of their own kein CSS zum Kopieren: Wählen Sie Objekte mit eigenem CSS aus
|
||||
@msg no Live Paint edge near that point keine Interaktiv-malen-Kante in der Nähe dieses Punkts
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4026,7 +4026,7 @@ theme Appearance Εμφάνιση
|
||||
@msg missing index λείπει ο δείκτης
|
||||
@msg missing number `{key}` λείπει ο αριθμός `{key}`
|
||||
@msg missing integer `{key}` λείπει ο ακέραιος `{key}`
|
||||
@msg multiple windows land with M11.5 τα πολλαπλά παράθυρα θα προστεθούν στην έκδοση M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Το Νέο παράθυρο δεν είναι ακόμη διαθέσιμο: ένα έγγραφο ανοίγει σε ένα παράθυρο
|
||||
@msg name the file δώστε όνομα στο αρχείο
|
||||
@msg no CSS to copy: select objects with CSS of their own δεν υπάρχει CSS για αντιγραφή: επιλέξτε αντικείμενα με δικό τους CSS
|
||||
@msg no Live Paint edge near that point δεν υπάρχει ακμή δυναμικής βαφής κοντά σε αυτό το σημείο
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2066 and column 19.
|
@@ -4047,7 +4047,7 @@ axis Both Ambos
|
||||
@msg missing index falta index
|
||||
@msg missing number `{key}` falta el número `{key}`
|
||||
@msg missing integer `{key}` falta el número entero `{key}`
|
||||
@msg multiple windows land with M11.5 las ventanas múltiples llegan con M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nueva ventana aún no está disponible: un documento se abre en una sola ventana
|
||||
@msg name the file ponle nombre al archivo
|
||||
@msg no CSS to copy: select objects with CSS of their own no hay CSS que copiar: selecciona objetos con CSS propio
|
||||
@msg no Live Paint edge near that point no hay ningún borde de pintura interactiva cerca de ese punto
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4263,7 +4263,7 @@ imageTrace Outline Ääriviiva
|
||||
@msg missing index indeksi puuttuu
|
||||
@msg missing number `{key}` luku `{key}` puuttuu
|
||||
@msg missing integer `{key}` kokonaisluku `{key}` puuttuu
|
||||
@msg multiple windows land with M11.5 useat ikkunat tulevat versiossa M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Uusi ikkuna ei ole vielä käytettävissä: asiakirja avautuu yhteen ikkunaan
|
||||
@msg name the file anna tiedostolle nimi
|
||||
@msg no CSS to copy: select objects with CSS of their own ei kopioitavaa CSS:ää: valitse objekteja, joilla on oma CSS
|
||||
@msg no Live Paint edge near that point pisteen lähellä ei ole elävän maalauksen reunaa
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4044,7 +4044,7 @@ axis Both Les deux
|
||||
@msg missing index index manquant
|
||||
@msg missing number `{key}` nombre `{key}` manquant
|
||||
@msg missing integer `{key}` nombre entier `{key}` manquant
|
||||
@msg multiple windows land with M11.5 les fenêtres multiples arrivent avec M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nouvelle fenêtre n’est pas encore disponible : un document s’ouvre dans une seule fenêtre
|
||||
@msg name the file nommez le fichier
|
||||
@msg no CSS to copy: select objects with CSS of their own aucun CSS à copier : sélectionnez des objets ayant leur propre CSS
|
||||
@msg no Live Paint edge near that point aucun bord de peinture dynamique près de ce point
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4710,7 +4710,7 @@ imageTrace Outline Körvonal
|
||||
@msg move requires a destination panel az áthelyezéshez célpanel kell
|
||||
@msg move requires an existing destination panel az áthelyezéshez létező célpanel kell
|
||||
@msg Multichannel PSD files can't be read: save it in RGB, CMYK or Grayscale mode a többcsatornás PSD-fájlok nem olvashatók: mentsd RGB, CMYK vagy szürkeárnyalatos módban
|
||||
@msg multiple windows land with M11.5 a több ablak az M11.5 mérföldkőben érkezik
|
||||
@msg New Window isn't available yet: a document opens in one window Az Új ablak még nem érhető el: egy dokumentum egy ablakban nyílik meg
|
||||
@msg name the file adj nevet a fájlnak
|
||||
@msg no active document nincs aktív dokumentum
|
||||
@msg no active perspective plane nincs aktív perspektivikus sík
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4069,7 +4069,7 @@ imageTrace Outline Kontur
|
||||
@msg missing index indeks tidak ada
|
||||
@msg missing number `{key}` angka `{key}` tidak ada
|
||||
@msg missing integer `{key}` bilangan bulat `{key}` tidak ada
|
||||
@msg multiple windows land with M11.5 beberapa jendela hadir bersama M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Jendela baru belum tersedia: dokumen dibuka dalam satu jendela
|
||||
@msg name the file beri nama file
|
||||
@msg no CSS to copy: select objects with CSS of their own tidak ada CSS untuk disalin: pilih objek yang memiliki CSS sendiri
|
||||
@msg no Live Paint edge near that point tidak ada tepi Live Paint di dekat titik itu
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 3837 and column 19.
|
@@ -4087,7 +4087,7 @@ axis Both Entrambi
|
||||
@msg missing index manca index
|
||||
@msg missing number `{key}` manca il numero `{key}`
|
||||
@msg missing integer `{key}` manca il numero intero `{key}`
|
||||
@msg multiple windows land with M11.5 le finestre multiple arriveranno con M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nuova finestra non è ancora disponibile: un documento si apre in una sola finestra
|
||||
@msg name the file assegna un nome al file
|
||||
@msg no CSS to copy: select objects with CSS of their own nessun CSS da copiare: seleziona oggetti con un CSS proprio
|
||||
@msg no Live Paint edge near that point nessun bordo di pittura dinamica vicino a quel punto
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4447,7 +4447,7 @@ swatch Bright Violet ビビッドバイオレット
|
||||
@msg missing index index が指定されていません
|
||||
@msg missing number `{key}` 数値 `{key}` が指定されていません
|
||||
@msg missing integer `{key}` 整数 `{key}` が指定されていません
|
||||
@msg multiple windows land with M11.5 複数ウィンドウは M11.5 で対応予定です
|
||||
@msg New Window isn't available yet: a document opens in one window 新規ウィンドウはまだ使用できません: ドキュメントは 1 つのウィンドウで開きます
|
||||
@msg no PNG encoder PNG エンコーダーがありません
|
||||
@msg no document open ドキュメントが開かれていません
|
||||
@msg no effect applied yet まだ効果を適用していません
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3828,7 +3828,7 @@ font-technology Variable ცვლადი
|
||||
@msg missing `name` აკლია `name`
|
||||
@msg missing `tool` აკლია `tool`
|
||||
@msg missing index ინდექსი აკლია
|
||||
@msg multiple windows land with M11.5 რამდენიმე ფანჯარა M11.5-ში დაემატება
|
||||
@msg New Window isn't available yet: a document opens in one window ახალი ფანჯარა ჯერ მიუწვდომელია: დოკუმენტი ერთ ფანჯარაში იხსნება
|
||||
@msg name the file მიუთითეთ ფაილის სახელი
|
||||
@msg no CSS to copy: select objects with CSS of their own კოპირებისთვის CSS არ არის: მონიშნეთ საკუთარი CSS-ის მქონე ობიექტები
|
||||
@msg no Live Paint edge near that point ამ წერტილთან ცოცხალი შეღებვის კიდე არ არის
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4379,7 +4379,7 @@ theme Appearance 외관
|
||||
@msg missing index index가 없습니다
|
||||
@msg missing number `{key}` 숫자 `{key}`이(가) 없습니다
|
||||
@msg missing integer `{key}` 정수 `{key}`이(가) 없습니다
|
||||
@msg multiple windows land with M11.5 여러 창은 M11.5에서 지원됩니다
|
||||
@msg New Window isn't available yet: a document opens in one window 새 창은 아직 사용할 수 없습니다: 문서는 하나의 창에서 열립니다
|
||||
@msg no PNG encoder PNG 인코더가 없습니다
|
||||
@msg no document open 열린 문서가 없습니다
|
||||
@msg no effect applied yet 아직 적용된 효과가 없습니다
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4081,7 +4081,7 @@ imageTrace Outline Contour
|
||||
@msg missing `name` `name` ontbreekt
|
||||
@msg missing `tool` `tool` ontbreekt
|
||||
@msg missing index index ontbreekt
|
||||
@msg multiple windows land with M11.5 meerdere vensters komen binnen met M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nieuw venster is nog niet beschikbaar: een document opent in één venster
|
||||
@msg name the file geef het bestand een naam
|
||||
@msg no CSS to copy: select objects with CSS of their own geen CSS om te kopiëren: selecteer objecten met eigen CSS
|
||||
@msg no Live Paint edge near that point geen Live Paint-rand bij dat punt
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -4172,7 +4172,7 @@ imageTrace Outline Kontur
|
||||
@msg missing index brak indeksu
|
||||
@msg missing number `{key}` brak liczby `{key}`
|
||||
@msg missing integer `{key}` brak liczby całkowitej `{key}`
|
||||
@msg multiple windows land with M11.5 wiele okien pojawi się w M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nowe okno nie jest jeszcze dostępne: dokument otwiera się w jednym oknie
|
||||
@msg name the file nadaj nazwę plikowi
|
||||
@msg no CSS to copy: select objects with CSS of their own brak CSS do skopiowania: zaznacz obiekty z własnym CSS
|
||||
@msg no Live Paint edge near that point brak krawędzi aktywnego malowania w pobliżu tego punktu
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3622,7 +3622,7 @@ axis Both Ambos
|
||||
@msg missing index falta o índice
|
||||
@msg missing number `{key}` falta o número `{key}`
|
||||
@msg missing integer `{key}` falta o número inteiro `{key}`
|
||||
@msg multiple windows land with M11.5 várias janelas chegam com o M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nova Janela ainda não está disponível: um documento abre em uma única janela
|
||||
@msg name the file dê um nome ao arquivo
|
||||
@msg no CSS to copy: select objects with CSS of their own não há CSS para copiar: selecione objetos que tenham CSS próprio
|
||||
@msg no Live Paint edge near that point nenhuma aresta de Pintura dinâmica perto desse ponto
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -4083,7 +4083,7 @@ axis Both Оба
|
||||
@msg missing index отсутствует index
|
||||
@msg missing number `{key}` отсутствует число `{key}`
|
||||
@msg missing integer `{key}` отсутствует целое число `{key}`
|
||||
@msg multiple windows land with M11.5 несколько окон появятся в M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Новое окно пока недоступно: документ открывается в одном окне
|
||||
@msg name the file дайте файлу имя
|
||||
@msg no CSS to copy: select objects with CSS of their own нет CSS для копирования: выделите объекты с собственным CSS
|
||||
@msg no Live Paint edge near that point рядом с этой точкой нет границы быстрой заливки
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -3962,7 +3962,7 @@ axis Both Båda
|
||||
@msg missing index index saknas
|
||||
@msg missing number `{key}` talet `{key}` saknas
|
||||
@msg missing integer `{key}` heltalet `{key}` saknas
|
||||
@msg multiple windows land with M11.5 flera fönster kommer med M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Nytt fönster är inte tillgängligt än: ett dokument öppnas i ett fönster
|
||||
@msg name the file namnge filen
|
||||
@msg no CSS to copy: select objects with CSS of their own ingen CSS att kopiera: markera objekt som har egen CSS
|
||||
@msg no Live Paint edge near that point ingen Live Paint-kant nära den punkten
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 5 and column 25.
|
@@ -3824,7 +3824,7 @@ axis Both Her İkisi
|
||||
@msg missing `name` "isim" eksik
|
||||
@msg missing `tool` 'araç' eksik
|
||||
@msg missing index eksik dizin
|
||||
@msg multiple windows land with M11.5 M11.5 ile birden fazla pencere açılır
|
||||
@msg New Window isn't available yet: a document opens in one window Yeni Pencere henüz kullanılamıyor: bir belge tek pencerede açılır
|
||||
@msg name the file dosyayı adlandırın
|
||||
@msg no CSS to copy: select objects with CSS of their own kopyalanacak CSS yok: kendilerine ait CSS'ye sahip nesneleri seçin
|
||||
@msg no Live Paint edge near that point bu noktanın yakınında Canlı Boyama kenarı yok
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 5 and column 25.
|
@@ -4071,7 +4071,7 @@ axis Both Обидві
|
||||
@msg missing index відсутня index
|
||||
@msg missing number `{key}` відсутнє число `{key}`
|
||||
@msg missing integer `{key}` відсутнє ціле число `{key}`
|
||||
@msg multiple windows land with M11.5 кілька вікон з’являться в M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Нове вікно поки недоступне: документ відкривається в одному вікні
|
||||
@msg name the file дайте файлу ім’я
|
||||
@msg no CSS to copy: select objects with CSS of their own ні CSS для копіювання: виділіть об’єкти з власним CSS
|
||||
@msg no Live Paint edge near that point поряд з цією точкою немає межі швидкої заливки
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 747 and column 40.
|
@@ -4357,7 +4357,7 @@ theme Appearance Giao diện
|
||||
@msg move requires a destination panel move cần bảng đích
|
||||
@msg move requires an existing destination panel move cần bảng đích tồn tại
|
||||
@msg Multichannel PSD files can't be read: save it in RGB, CMYK or Grayscale mode Tệp PSD đa kênh không thể đọc: lưu ở chế độ RGB, CMYK hoặc Thang xám
|
||||
@msg multiple windows land with M11.5 nhiều cửa sổ sẽ có trong M11.5
|
||||
@msg New Window isn't available yet: a document opens in one window Cửa sổ mới chưa khả dụng: tài liệu mở trong một cửa sổ
|
||||
@msg name the file hãy đặt tên tệp
|
||||
@msg no active document không có tài liệu đang hoạt động
|
||||
@msg no active perspective plane không có mặt phẳng phối cảnh đang hoạt động
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 4051 and column 10.
|
@@ -4169,7 +4169,7 @@ imageTrace Outline 轮廓
|
||||
@msg missing `name` 缺少 `name`
|
||||
@msg missing `tool` 缺少 `tool`
|
||||
@msg missing index 缺少 index
|
||||
@msg multiple windows land with M11.5 多窗口将在 M11.5 中提供
|
||||
@msg New Window isn't available yet: a document opens in one window 新建窗口尚不可用:文档在一个窗口中打开
|
||||
@msg no PNG encoder 没有 PNG 编码器
|
||||
@msg no document open 没有打开的文档
|
||||
@msg no effect applied yet 尚未应用任何效果
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 2 and column 73.
|
@@ -2150,7 +2150,7 @@ file-filter Templates 範本
|
||||
@msg missing `name` 未提供 `name`
|
||||
@msg missing `tool` 未提供 `tool`
|
||||
@msg missing index 未提供 index
|
||||
@msg multiple windows land with M11.5 多個視窗將於 M11.5 推出
|
||||
@msg New Window isn't available yet: a document opens in one window 新增視窗尚無法使用:文件會在一個視窗中開啟
|
||||
@msg no PNG encoder 沒有 PNG 編碼器
|
||||
@msg no document open 沒有開啟的文件
|
||||
@msg no effect applied yet 尚未套用任何效果
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 6 and column 47.
|
@@ -1681,7 +1681,7 @@ pub fn run_ui_command(app: &mut VectorcraftApp, id: &str, p: &Value) -> Option<R
|
||||
}
|
||||
None => Err("brightness must be dark|mediumDark|mediumLight|light".into()),
|
||||
},
|
||||
"window.newWindow" => Err("multiple windows land with M11.5".into()),
|
||||
"window.newWindow" => Err("New Window isn't available yet: a document opens in one window".into()),
|
||||
"tool.select" => match s("tool") {
|
||||
Some(t) if vectorcraft_tools::tool_info(&t).is_some() => {
|
||||
app.select_tool(&t);
|
||||
@@ -2574,6 +2574,8 @@ pub fn enabled(app: &VectorcraftApp, id: &str) -> bool {
|
||||
app.session.active().is_some() && crate::dialogs::perspective_presets::slot_preset(app, id).is_some()
|
||||
}
|
||||
"ui.perspectivePlane" => app.session.active().is_some(),
|
||||
// Only one window per document so far: greyed out, as Window › Arrange's items are (#3724).
|
||||
"window.newWindow" => false,
|
||||
_ => true,
|
||||
}
|
||||
}
|
||||
@@ -4966,4 +4968,15 @@ mod tests {
|
||||
assert!(tall.height() > short.height() + 100.0, "{} vs {}", tall.height(), short.height());
|
||||
assert!(tall.bottom() < 3000.0);
|
||||
}
|
||||
|
||||
/// #3724: Window › New Window is greyed out until VectorCraft can open a second window on a
|
||||
/// document, instead of being enabled and answering with an internal milestone note.
|
||||
#[test]
|
||||
fn new_window_is_disabled_until_it_opens_a_window() {
|
||||
let mut app = VectorcraftApp::new(vectorcraft_engine::Session::new(), crate::Services::default());
|
||||
app.run("file.new", json!({"width": 200, "height": 200})).unwrap();
|
||||
assert!(!enabled(&app, "window.newWindow"), "New Window is enabled but opens no window");
|
||||
let e = app.run("window.newWindow", json!({})).unwrap_err();
|
||||
assert!(!e.contains("M11.5"), "a user-facing message, not a milestone: {e}");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user