W
WujcioL
//this is the code
#include <stdio.h>
#include <locale.h>
#include <libintl.h>
#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
// 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?
#include <stdio.h>
#include <locale.h>
#include <libintl.h>
#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
// 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?