Mailinglist Archive: yast-devel (126 mails)

< Previous Next >
[yast-devel] How to show a literal '&' in an UI string?
  • From: Johannes Meixner <jsmeix@xxxxxxx>
  • Date: Fri, 13 Nov 2009 15:04:09 +0100 (CET)
  • Message-id: <alpine.LNX.2.00.0911131456110.19085@xxxxxxxxxxxxxx>

Hello,

I like to display a literal '&' in a UI dialog string like:
----------------------------------------------------------------
`InputField( `id(`options),
_("Options (option1=value1&option2=value2)"),
"" )
----------------------------------------------------------------
but neither
"Options (option1=value1\&option2=value2)"
nor
"Options (option1=value1\046option2=value2)"
works for me.

When I run the module with
yast2 --gt module
and with
yast2 --qt module
the text which is shown in the dialog is always

Options (option1=value1option2=value2)

i.e. the '&' character is omitted.


Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH, Maxfeldstrasse 5, 90409 Nuernberg, Germany
AG Nuernberg, HRB 16746, GF: Markus Rex
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups