/*
  Copyright (C) 2008-2009, Parrot Foundation.
  $Id: gettext_c.in 37385 2009-03-13 19:25:41Z coke $
*/

#define PACKAGE   "hello"
#define LOCALEDIR "."

#include <stdio.h>
#include <stdlib.h>
#include <libintl.h>
#include <locale.h>

int
main(int argc, char *argv[])
{
    setlocale(LC_ALL, "");
    bindtextdomain(PACKAGE, LOCALEDIR);
    textdomain(PACKAGE);

    printf(gettext("Hello, world!\n"));

    return EXIT_SUCCESS;
}

/*
 * Local variables:
 *   c-file-style: "parrot"
 * End:
 * vim: expandtab shiftwidth=4:
 */
