equal
deleted
inserted
replaced
20 |
20 |
21 emit "preamble:i18n" { |
21 emit "preamble:i18n" { |
22 const "translations", "ns:GetTranslations($translatable_strings)"; |
22 const "translations", "ns:GetTranslations($translatable_strings)"; |
23 > var langs = [ |
23 > var langs = [ |
24 foreach "$translations/langs/lang" { |
24 foreach "$translations/langs/lang" { |
25 value "."; |
25 > "«.»" |
26 if "position()!=last()" > , |
26 if "position()!=last()" > , |
27 } |
27 } |
28 | ]; |
28 | ]; |
29 | var translations = [ |
29 | var translations = [ |
30 foreach "$translatable_texts" { |
30 foreach "$translatable_texts" { |
31 const "n","position()"; |
31 const "n","position()"; |
32 > ["«@id»",[ |
32 const "current_id","@id"; |
|
33 const "text_unlinked_uses","$result_svg_ns//svg:text[@original = $current_id]/@id"; |
|
34 > [[ |
|
35 foreach "@id | $text_unlinked_uses" { |
|
36 > id("«.»") |
|
37 if "position()!=last()" > , |
|
38 } |
|
39 > ],[ |
33 foreach "$translations/messages/msgid[$n]/msg" { |
40 foreach "$translations/messages/msgid[$n]/msg" { |
34 > " |
41 > " |
35 foreach "line" { |
42 foreach "line" { |
36 value "."; |
43 value "."; |
37 if "position()!=last()" > \\\\n |
44 if "position()!=last()" > \\\\n |