svghmi/i18n.ysl2
branchsvghmi
changeset 3144 2af6afaccaf2
parent 3133 450cd01324ad
child 3489 5335895ce526
equal deleted inserted replaced
3143:8388e6d4aa61 3144:2af6afaccaf2
    18 const "translatable_texts", "//svg:text[starts-with(@inkscape:label, '_')]";
    18 const "translatable_texts", "//svg:text[starts-with(@inkscape:label, '_')]";
    19 const "translatable_strings" apply "$translatable_texts", mode="extract_i18n";
    19 const "translatable_strings" apply "$translatable_texts", mode="extract_i18n";
    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 = [ "default",
    23     > var langs = [ ["Default", "C"],
    24     foreach "$translations/langs/lang" {
    24     foreach "$translations/langs/lang" {
    25         > "«.»"
    25         > ["«.»","«@code»"]
    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" {