You need to include libintl.h, initialize language domain and mark all your messages as possible to translate.
The general program template looks like (from:
http://www.gnu.org/software/gettext/manual/gettext.html, section 4):
Code:
int
main (int argc, char *argv[])
{
...
setlocale (LC_ALL, "");
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
...
}
where PACKAGE may be the name of your program and LOCALEDIR points to the place the translations will be installed (for development it may be your project directory, but check if Anjuta has not defined them already for you).
Then, marking the strings. Usually such define is used:
#define _(String) gettext (String)
That gives you a macro, which is used this way:
printf (_("Translated text"));
You simply put all strings (visible ones) in _() macro.
The rest (extracting strings, building .po and .mo files) should be done by the Makefile. I recommend gtetext manual in case of problems (link was above).