From dfc1c3ed95dedca35d3b3078ed2720d369f00c73 Mon Sep 17 00:00:00 2001 From: Adriano Date: Sun, 8 Feb 2026 01:44:46 +0100 Subject: [PATCH] fix: i18n translations and annotation property changes on selected objects - Complete English translation catalog (44 entries fixed/added) - Fix Fabric.js Group cache invalidation (active.dirty = true) so color, thickness and line-dash changes are visible on selected markers/arrows - Fix Italian .po placeholder mismatch (%(detail)s -> %(error)s) - Bump annotation-editor.js cache buster to v8 Co-Authored-By: Claude Opus 4.6 --- client/static/js/annotation-editor.js | 3 + client/templates/maker/task_drawing.html | 20 +- .../translations/en/LC_MESSAGES/messages.po | 2565 +++++++++------- .../translations/it/LC_MESSAGES/messages.po | 2595 ++++++++++------- client/translations/messages.pot | 1574 ++++++++++ 5 files changed, 4763 insertions(+), 1994 deletions(-) create mode 100644 client/translations/messages.pot diff --git a/client/static/js/annotation-editor.js b/client/static/js/annotation-editor.js index 1b2b500..6eb40e8 100644 --- a/client/static/js/annotation-editor.js +++ b/client/static/js/annotation-editor.js @@ -144,6 +144,7 @@ function annotationEditor() { active.set('stroke', e.detail.color); active.areaColor = e.detail.color; } + active.dirty = true; self.canvas.renderAll(); self.isDirty = true; window.dispatchEvent(new CustomEvent('annotations-changed', { detail: { json: self.getAnnotationsJson() } })); @@ -166,6 +167,7 @@ function annotationEditor() { active.set('strokeWidth', e.detail.width); active.areaStrokeWidth = e.detail.width; } + active.dirty = true; self.canvas.renderAll(); self.isDirty = true; window.dispatchEvent(new CustomEvent('annotations-changed', { detail: { json: self.getAnnotationsJson() } })); @@ -188,6 +190,7 @@ function annotationEditor() { active.set('strokeDashArray', dashArr); active.areaLineDash = self.currentLineDash.slice(); } + active.dirty = true; self.canvas.renderAll(); self.isDirty = true; window.dispatchEvent(new CustomEvent('annotations-changed', { detail: { json: self.getAnnotationsJson() } })); diff --git a/client/templates/maker/task_drawing.html b/client/templates/maker/task_drawing.html index d582dc1..be2008e 100644 --- a/client/templates/maker/task_drawing.html +++ b/client/templates/maker/task_drawing.html @@ -353,7 +353,7 @@ - +