diff -r 1fb0c07bd97b -r f45e413a0f40 svghmi/i18n.ysl2 --- a/svghmi/i18n.ysl2 Thu Feb 04 21:20:01 2021 +0100 +++ b/svghmi/i18n.ysl2 Thu Feb 04 21:23:58 2021 +0100 @@ -22,14 +22,21 @@ const "translations", "ns:GetTranslations($translatable_strings)"; > var langs = [ foreach "$translations/langs/lang" { - value "."; + > "«.»" if "position()!=last()" > , } | ]; | var translations = [ foreach "$translatable_texts" { const "n","position()"; - > ["«@id»",[ + const "current_id","@id"; + const "text_unlinked_uses","$result_svg_ns//svg:text[@original = $current_id]/@id"; + > [[ + foreach "@id | $text_unlinked_uses" { + > id("«.»") + if "position()!=last()" > , + } + > ],[ foreach "$translations/messages/msgid[$n]/msg" { > " foreach "line" {