I am new to the gettext and Gtk+ programming world. First of all, I am developing an application on windows using the gtk+ library.
I read that glib integrates the gettext library and makes the translation more "friendly" by providing some wrappers.
I follow the documentation from the glib library and include the glib/gi18n.h
header and mark all the strings for translation with the _()
macro.
Then I downloaded gettext for windows from the Gnuwin32 project, but when I try to extract the strings with xgettext nothing happens. I have to use gettext()
and not use the macro that the glib provides in order to be able to extract the strings. There must be some way to extract the strings with the glib macro and I know I'm missing something but can't figure out what.