svghmi/i18n.ysl2
branchsvghmi
changeset 3133 450cd01324ad
parent 3126 f45e413a0f40
child 3144 2af6afaccaf2
equal deleted inserted replaced
3132:a1e2eff0bc58 3133:450cd01324ad
    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 = [
    23     > var langs = [ "default",
    24     foreach "$translations/langs/lang" {
    24     foreach "$translations/langs/lang" {
    25         > "«.»"
    25         > "«.»"
    26         if "position()!=last()" > ,
    26         if "position()!=last()" > ,
    27     }
    27     }
    28     | ];
    28     | ];