unfamiliar notation
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
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
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
* 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