public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* unfamiliar notation
@ 2007-09-10  1:09 James C. Georgas
  2007-09-10  1:20 ` Bernd Eckenfels
  2007-09-11  2:15 ` Oleg Verych
  0 siblings, 2 replies; 4+ messages in thread
From: James C. Georgas @ 2007-09-10  1:09 UTC (permalink / raw)
  To: linux-kernel

I just came across a notation that I haven't seen before. It's in
scripts/mconf.c:

	str_append(&help, _(menu_get_help(menu)));

What's the deal with the underscore and the parentheses surrounding the
call to menu_get_help?

James
	/\V


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unfamiliar notation
  2007-09-10  1:09 unfamiliar notation James C. Georgas
@ 2007-09-10  1:20 ` Bernd Eckenfels
  2007-09-10  1:46   ` Sam Ravnborg
  2007-09-11  2:15 ` Oleg Verych
  1 sibling, 1 reply; 4+ messages in thread
From: Bernd Eckenfels @ 2007-09-10  1:20 UTC (permalink / raw)
  To: linux-kernel

In article <1189386541.7365.50.camel@Tachyon.home> you wrote:
> What's the deal with the underscore and the parentheses surrounding the
> call to menu_get_help?

it is a macro from gettext, used to translate the string. Usually this
should only be used on string constants.

Gruss
Bernd

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unfamiliar notation
  2007-09-10  1:20 ` Bernd Eckenfels
@ 2007-09-10  1:46   ` Sam Ravnborg
  0 siblings, 0 replies; 4+ messages in thread
From: Sam Ravnborg @ 2007-09-10  1:46 UTC (permalink / raw)
  To: Bernd Eckenfels; +Cc: linux-kernel

On Mon, Sep 10, 2007 at 03:20:15AM +0200, Bernd Eckenfels wrote:
> In article <1189386541.7365.50.camel@Tachyon.home> you wrote:
> > What's the deal with the underscore and the parentheses surrounding the
> > call to menu_get_help?
> 
> it is a macro from gettext, used to translate the string. Usually this
> should only be used on string constants.
Correct.
And only in kconfig since this is the only piece of code supporting gettext in the kernel.

	Sam

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: unfamiliar notation
  2007-09-10  1:09 unfamiliar notation James C. Georgas
  2007-09-10  1:20 ` Bernd Eckenfels
@ 2007-09-11  2:15 ` Oleg Verych
  1 sibling, 0 replies; 4+ messages in thread
From: Oleg Verych @ 2007-09-11  2:15 UTC (permalink / raw)
  To: James C. Georgas; +Cc: linux-kernel

* Sun, 09 Sep 2007 21:09:01 -0400
* Organization: Georgas Software Solutions
>
> I just came across a notation that I haven't seen before. It's in
> scripts/mconf.c:
>
> 	str_append(&help, _(menu_get_help(menu)));
>
> What's the deal with the underscore and the parentheses surrounding the
> call to menu_get_help?
>
> James

James, text file called ABOUT-NLS is shipped in many open source
programs for more that ten years.

After that, you are asking such dumb questions in LKML? How reliable are
you skills and experience in userspace development to start with, huh?

> 	/\V

Rhetoric question, don't send anything back to list, please.
--
-o--=O`C
 #oo'L O
<___=E M

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-11  2:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-10  1:09 unfamiliar notation James C. Georgas
2007-09-10  1:20 ` Bernd Eckenfels
2007-09-10  1:46   ` Sam Ravnborg
2007-09-11  2:15 ` Oleg Verych

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox