[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: C programming: What does this construct in printf(_(" means?



shaulka@bezeqint.net writes:

> What does the construct
> 
>    _("What ever format string I use")
> 
> means in the context of printf?

This construct is often used for 'gettext'. gettext translates text
messages.

>From gettext's info page:

   Many packages use `_' (a simple underline) as a keyword, and write
`_("Translatable string")' instead of `gettext ("Translatable
string")'.

	moritz
-- 
Moritz Schulte <moritz@chaosdorf.de> http://www.chaosdorf.de/moritz/
Debian/GNU supporter - http://www.debian.org/ http://www.gnu.org/
GPG fingerprint = 3A14 3923 15BE FD57 FC06  B501 0841 2D7B 6F98 4199



Reply to: