I would like to use config.h file for internationalization, since the build system itself seems to recommend it:
/usr/include/glib-2.0/glib/gi18n-lib.h:27:2: error: #error You must define GETTEXT_PACKAGE before including gi18n-lib.h. Did you forget to include config.h?
So I wrote this in my config.h:
#ifndef _CONFIG_H_ #define _CONFIG_H_ #define GETTEXT_PACKAGE "i18n_test" #include <glib/gi18n-lib.h> #endif /* _CONFIG_H_ */
But then I get the message in the title when I run valac. What should be the proper way to prepare for internationalization then?