On Thu, 2002-01-10 at 17:34, Daniel Feiglin wrote: > Several well known utilities like dd, fdformat use a function _(...) in the > error reporting calls. What does it do and where is it documented? (Checked GNU > V Library docs, cc docs - nothing doing.)
It enables the program to output locale-dependent text. The GNU gettext suite works with this macro. It has a define: #define _(String) gettext(String) It also has a tool that goes over your source files, extracts all the strings that are wrapped this way, writes them all out to a .po file and lets you create translations for all the text strings in your program. Then if everything is configured properly, they will automatically be loaded and used at runtime depending on the LANG environment variable. (The gettext function takes care of that.) -- Alex Shnitman <[EMAIL PROTECTED]> http://alexsh.hectic.net/ UIN 188956 PGP 0xEC5D619D / E1 F2 7B 6C A0 31 80 28 63 B8 02 BA 65 C7 8B BA ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]