c - Underscore function -


i'm here looking @ c source code , i've found this:

fprintf(stderr, _("try `%s --help' more information.\n"), command); 

i saw underscore when had @ wxwidget, , read it's used internationalization. found horrible (the least intutive name ever), tought it's weird wxwidget convention.

now find again in alsa source. know comes from?

it comes gnu gettext, package designed ease internationalization process. _() function string wrapper. function replaces given string on runtime translation in system's language, if available (i.e. if shipped .mo file language program).


Comments

Popular posts from this blog

windows - Why does Vista not allow creation of shortcuts to "Programs" on a NonAdmin account? Not supposed to install apps from NonAdmin account? -

c++ - How do I get a multi line tooltip in MFC -

unit testing - How to mock PreferenceManager in Android? -