Wiki
Clone wikiOkapi / ResourceCase007
Text in String-Info format
In this case the translatable text is stored in a document in the String-Info format: Tab-delimited, each entry on one line. Fields: ID, quoted text, font color triplet, display attributes, x, y, width, height, font-size, font-family, translation flag.
BEGIN_STRING_TABLE ID100 "Text with variable: #!{var} and \n\n#![var2]" 255 255 255 0x0000 50 182 710 560 18 Arial 1 ID101 "Un-translatable text" 255 255 255 0x0000 50 182 710 560 18 Arial 0 END_STRING_TABLE
Possible events:
StartDocument(d1, string-info) SkeletonUnit(s1)="BEGIN_STRING_TABLE\n" SkeletonUnit(s2)='ID100 "' TextUnit(t1)={ text="Text with variable: [ic(1)] and [ic(2)][ic(3)][ic(4)]" name=ID100 codes={ ic(1)="#!{var}" ic(2)="\n" ic(3)="\n" ic(4)="#![var2]" } } SkeletonUnit(s3)='" 255 255 255 0x0000 50 182 710 560 18 Arial 1\n' SkeletonUnit(s4)='ID101 "Un-translatable text" 255 255 255 0x0000 50 182 710 560 18 Arial 0' SkeletonUnit(s5)="END_STRING_TABLE" EndDocument(d1)
Updated