[SOLVED] Labels with attributes and internationalization
Author: gianni.sandigliano@unifacesolutions.com (gianni)
Hi Unifacers, I am in the process to convert a Uniface9 application to be multilanguage. All labels/buttons/messages should be converted to $text(SOMETHING). My issue is regarding labels including character attributes (bold / italic / underline); physically those labels are saved with sequences of 8 chars defining the attributes to be applied to the following (9th) character. An example: the string "CIAO" in bold is saved as: |c{U|1|1C|c{U|1|1I|c{U|1|1A|c{U|1|1O Possible combinations for these attributes are: |c{U|1|1 = Bold |b|!|1|1 = Italic |b{e|1|1 = Underline |c|!|1|1 = BoldItalic |b|1|1|1 = ItalicUnderline |c{e|1|1 = BoldUnderline |c|1|1|1 = BoldItalicUnderline If I directly move label content to USOURCE as a message, those specific sequences are threated as real character so that label does not mean anything for end user. As an alternative I can define 3 logical fonts to convert ONLY SINGLE attributes; an example: HyperLabel=Arial,Central European,8,underline BoldLabel=Arial,Central European,8,bold ItalicLabel=Arial,Central European,8,italic and map labels having only ONE attribute to these logical fonts. Unfortunately in many cases I am finding combinations of Bold+Underline; for CIAO in bold+underline is something like: |c{e|1|1C|c{e|1|1I|c{e|1|1A|c{e|1|1O AFAIK it is not possible to have a logical font with more than one font attribute, something like: BoldHyperLabel=Arial,Central European,8,bold+underline Any idea or hint? Thanks in advance for any suggestion. Regards, Gianni