fix(app): closed hash and canonical-form drawing messages, split crop and drawing views

This commit is contained in:
bchanot committed 2026-11-04 13:34:02 +01:00
1 parent 7bf1404946
commit 1bbf97e65b
16 files changed
+487 -248

No files matched your search

+6 -1
View File
@@ -1346,7 +1346,9 @@ export const en: Dict = {
'editor.views.drawing.ok': 'Drawing valid',
'editor.views.drawing.missing': 'Drawing not found',
'editor.views.drawing.rejected': 'Drawing rejected',
'editor.views.drawing.detail': 'Detail: {detail}',
'editor.views.drawing.not_canonical': "Drawing refused: it is not in the stored form. Choose the original file again to replace it.",
'editor.views.drawing.rejected_reason': "Drawing refused ({reason}).",
'editor.views.drawing.hash_mismatch': "Drawing refused: the file content does not match its recorded hash.",
'editor.views.drawing.inherited': "Uses the parent view's drawing.",
'editor.views.drawing.hint': "Use « Choose a drawing » to add or replace this view's drawing.",
'editor.views.drawing.unmeasured': 'This view cannot be measured: add or fix its drawing before placing or moving elements.',
@@ -1378,6 +1380,7 @@ export const en: Dict = {
'editor.upload.err.too_large': 'This file is larger than 2 MiB.',
'editor.upload.err.svg_active_content': 'This file contains active or external content (script, link, remote image): it is refused.',
'editor.upload.err.svg_rejected': 'This file is not a usable SVG drawing ({reason}).',
'editor.upload.err.svg_not_canonical': "This drawing is not in the stored form: it is refused. Choose the original file again.",
'editor.upload.err.size_mismatch': 'The size of the file sent does not match the announced size. Try again.',
'editor.upload.err.upload_missing': 'The file did not reach the server. Try again.',
'editor.upload.err.upload.pending_other': 'Another account is sending this drawing. Try again in a moment.',
@@ -1395,6 +1398,8 @@ export const en: Dict = {
'editor.upload.reason.dangling_reference': 'reference to a missing element',
'editor.upload.reason.reserved_id': 'reserved identifier',
'editor.upload.reason.root_visibility': 'hidden root element',
'editor.upload.reason.processing_instruction': "processing instruction not allowed",
'editor.upload.reason.removal': "the file contains elements to remove",
'editor.upload.reason.other': 'unrecognised reason',
'editor.cleaning.title': 'Clean this drawing?',
'editor.cleaning.body': 'This file contains elements that are not kept. The preview shows the drawing as it will be saved.',
+6 -1
View File
@@ -1377,7 +1377,9 @@ export const fr: Dict = {
'editor.views.drawing.ok': 'Illustration valide',
'editor.views.drawing.missing': 'Illustration introuvable',
'editor.views.drawing.rejected': 'Illustration refusée',
'editor.views.drawing.detail': 'Détail : {detail}',
'editor.views.drawing.not_canonical': "Illustration refusée : elle n'est pas sous la forme enregistrée. Choisissez de nouveau le fichier d'origine pour la remplacer.",
'editor.views.drawing.rejected_reason': "Illustration refusée ({reason}).",
'editor.views.drawing.hash_mismatch': "Illustration refusée : le contenu du fichier ne correspond pas à son empreinte enregistrée.",
'editor.views.drawing.inherited': "Utilise l'illustration de la vue parente.",
'editor.views.drawing.hint': 'Utilisez « Choisir une illustration » pour ajouter ou remplacer le dessin de cette vue.',
'editor.views.drawing.unmeasured': "Cette vue n'est pas mesurable : ajoutez ou corrigez son illustration avant de placer ou de déplacer des éléments.",
@@ -1409,6 +1411,7 @@ export const fr: Dict = {
'editor.upload.err.too_large': 'Ce fichier dépasse 2 Mio.',
'editor.upload.err.svg_active_content': 'Ce fichier contient du contenu actif ou externe (script, lien, image distante) : il est refusé.',
'editor.upload.err.svg_rejected': "Ce fichier n'est pas un dessin SVG utilisable ({reason}).",
'editor.upload.err.svg_not_canonical': "Cette illustration n'est pas sous la forme enregistrée : elle est refusée. Choisissez de nouveau le fichier d'origine.",
'editor.upload.err.size_mismatch': 'La taille du fichier envoyé ne correspond pas à celle annoncée. Réessayez.',
'editor.upload.err.upload_missing': "Le fichier n'est pas arrivé sur le serveur. Réessayez.",
'editor.upload.err.upload.pending_other': "Ce dessin est en cours d'envoi par un autre compte. Réessayez dans quelques instants.",
@@ -1426,6 +1429,8 @@ export const fr: Dict = {
'editor.upload.reason.dangling_reference': 'référence vers un élément absent',
'editor.upload.reason.reserved_id': 'identifiant réservé',
'editor.upload.reason.root_visibility': 'élément racine masqué',
'editor.upload.reason.processing_instruction': "instruction de traitement interdite",
'editor.upload.reason.removal': "le fichier contient des éléments à retirer",
'editor.upload.reason.other': 'motif non reconnu',
'editor.cleaning.title': 'Nettoyer cette illustration ?',
'editor.cleaning.body': "Ce fichier contient des éléments qui ne sont pas conservés. L'aperçu montre le dessin tel qu'il sera enregistré.",