Re: unfamiliar notation

2007-09-10 Thread Oleg Verych
* 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(, _(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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: unfamiliar notation

2007-09-10 Thread Oleg Verych
* 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
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: unfamiliar notation

2007-09-09 Thread Sam Ravnborg
On Mon, Sep 10, 2007 at 03:20:15AM +0200, Bernd Eckenfels wrote:
> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: unfamiliar notation

2007-09-09 Thread Bernd Eckenfels
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: unfamiliar notation

2007-09-09 Thread Bernd Eckenfels
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
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: unfamiliar notation

2007-09-09 Thread Sam Ravnborg
On Mon, Sep 10, 2007 at 03:20:15AM +0200, Bernd Eckenfels wrote:
 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
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/