Skip to contentSkip to conversation

unfamiliar notation

DISCUSSION James C. Georgas 4 participants 4 messages Sep 10, 2007 – Sep 11, 2007

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
Quoted 2 lines · In article <[email protected]> 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

#2 lore raw
Quoted 6 lines · Bernd Eckenfels
Quoted 2 lines · In article <[email protected]> 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

#3 lore raw
In reply to James C. Georgas

* Sun, 09 Sep 2007 21:09:01 -0400
* Organization: Georgas Software Solutions

Quoted 10 lines

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?

Quoted 1 line
	/\V

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