/* * Copied from gnome-i18nP.h, because this header is typically not installed * * This file has to be included before any file from the GNOME libraries * to have this override the definitions that are pulled from the gnome-i18n.h * * the difference is that gnome-i18n.h is used for applications, and this is * used by libraries (because libraries have to use dcgettext instead of * gettext and they need to provide the translation domain, unlike apps). * * So you can just put this after you include config.h */ #ifndef __E_I18N_H__ #define __E_I18N_H__ #include <glib.h> #include "libgnome/gnome-defs.h" BEGIN_GNOME_DECLS #ifdef ENABLE_NLS # include <libintl.h> # undef _ # define _(String) dgettext (PACKAGE, String) # ifdef gettext_noop # define N_(String) gettext_noop (String) # else # define N_(String) (String) # endif #else /* Stubs that do something close enough. */ # define textdomain(String) (String) # define gettext(String) (String) # define dgettext(Domain,Message) (Message) # define dcgettext(Domain,Message,Type) (Message) # define bindtextdomain(Domain,Directory) (Domain) # define _(String) (String) # define N_(String) (String) #endif /* * Do not remove the following define, nor do surround it with ifdefs. * * If you get any `redefined' errors, it means that you are including * -incorrectly- a header file provided by gnome-libs before this file. * To correctly solve this issue include this file before any libgnome/ * libgnomeui headers */ #define __GNOME_I18N_H__ 1 /* This is copied staight out of the prototypes for gnome-i18n.h */ const char *gnome_i18n_get_language(void); GList *gnome_i18n_get_language_list (const gchar *category_name); void gnome_i18n_set_preferred_language (const char *val); const char *gnome_i18n_get_preferred_language (void); void gnome_i18n_init (void); END_GNOME_DECLS #endif /* __E_I18N_H__ */ <td> <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/about/'>about</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/'>summary</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/refs/?id=511c8913f34ea50b9e21aab53eb80f4edd0118c1'>refs</a><a class='active' href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/www/fpc-httpd20'>log</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/tree/www/fpc-httpd20?id=511c8913f34ea50b9e21aab53eb80f4edd0118c1'>tree</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/commit/www/fpc-httpd20?id=511c8913f34ea50b9e21aab53eb80f4edd0118c1'>commit</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/diff/www/fpc-httpd20?id=511c8913f34ea50b9e21aab53eb80f4edd0118c1'>diff</a><a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/stats/www/fpc-httpd20'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/www/fpc-httpd20'> <input type='hidden' name='id' value='511c8913f34ea50b9e21aab53eb80f4edd0118c1'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/?id=511c8913f34ea50b9e21aab53eb80f4edd0118c1'>root</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/www?id=511c8913f34ea50b9e21aab53eb80f4edd0118c1'>www</a>/<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/www/fpc-httpd20?id=511c8913f34ea50b9e21aab53eb80f4edd0118c1'>fpc-httpd20</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/cgit.cgi/freebsd-ports-graphics/log/www/fpc-httpd20?id=511c8913f34ea50b9e21aab53eb80f4edd0118c1&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr>