//this is the code
#include
#include
#include

#define _(String) gettext(String)

int main()
{
setlocale(LC_ALL,"");
bindtextdomain("test","lang");
textdomain("test");
printf(_("abcd"));
return 0;

}

// $ gcc test.c -o test
// xgettext test.c -k_ -o test.po
// msgid"abcd" msgmsg "efgh"
// msgfmt test.po -o test.mo
// cp test.mo lang/pl/LC_MESSAGES/test.mo
// But it don't work. Can you tell me why?