SVGHMI: Seems inkscape doesn't necessarily use tspan inside of text anymore.
authorEdouard Tisserant
Thu, 26 May 2022 12:11:42 +0200
changeset 3489 5335895ce526
parent 3488 6ef4ffcf9761
child 3490 4f252e8d6759
SVGHMI: Seems inkscape doesn't necessarily use tspan inside of text anymore.
svghmi/i18n.ysl2
--- a/svghmi/i18n.ysl2	Wed May 25 10:00:24 2022 +0200
+++ b/svghmi/i18n.ysl2	Thu May 26 12:11:42 2022 +0200
@@ -11,6 +11,9 @@
     msg {
         attrib "id" value "@id";
         attrib "label" value "substring(@inkscape:label,2)";
+        if "string-length(text()) > 0" line {
+            value "text()";
+        }
         apply "svg:*", mode="extract_i18n";
     }
 }