Mailinglist Archive: yast-devel (126 mails)

< Previous Next >
Re: [yast-devel] How to show a literal '&' in an UI string?
  • From: Katarina Machalkova <kmachalkova@xxxxxxx>
  • Date: Fri, 13 Nov 2009 17:16:49 +0100
  • Message-id: <200911131716.52608.kmachalkova@xxxxxxx>
Hi, Johannes,

I like to display a literal '&' in a UI dialog string like:
`InputField( `id(`options),
_("Options (option1=value1&option2=value2)"),

Try doubling the & char. The above would then become:
"Options (option1=value1&&option2=value2)"

Alas, it works only in Qt :( Gtk shows underscore and ncurses shows both &&'s

Conclusion: we can't do it now (at least not in widgets supporting activation
by hotkey). I'm sorry I can't give you more positive answer.

\\\\\ Katarina Machalkova
\\\\\\\__o YaST developer
__\\\\\\\'/_ & hedgehog painter

To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups