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
Post a Comment