svghmi/i18n.ysl2
branchsvghmi
changeset 3148 b8c0dfdf364b
parent 3144 2af6afaccaf2
child 3489 5335895ce526
equal deleted inserted replaced
3147:910290aec533 3148:b8c0dfdf364b
    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" {