2006-08-02 22:39:06 -07:00
|
|
|
/*
|
|
|
|
* mooi18n.h
|
|
|
|
*
|
|
|
|
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* See COPYING file that comes with this distribution.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __MOO_I18N_H__
|
|
|
|
#define __MOO_I18N_H__
|
|
|
|
|
|
|
|
#include <config.h>
|
2006-08-02 23:54:07 -07:00
|
|
|
#include <glib/gstrfuncs.h>
|
|
|
|
#include <libintl.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef ENABLE_NLS
|
|
|
|
|
2006-08-05 00:07:56 -07:00
|
|
|
#define _(String) moo_gettext (String)
|
|
|
|
#define Q_(String) g_strip_context ((String), moo_gettext (String))
|
2006-08-02 23:54:07 -07:00
|
|
|
#define N_(String) (String)
|
|
|
|
#define D_(String,Domain) dgettext (Domain, String)
|
2006-08-03 00:29:39 -07:00
|
|
|
#define QD_(String,Domain) g_strip_context ((String), D_ (String, Domain))
|
2006-08-02 23:54:07 -07:00
|
|
|
|
2006-08-05 00:07:56 -07:00
|
|
|
const char *moo_gettext (const char *string);
|
2006-08-02 23:54:07 -07:00
|
|
|
|
|
|
|
#else /* !ENABLE_NLS */
|
|
|
|
|
|
|
|
#define _(String) (String)
|
|
|
|
#define N_(String) (String)
|
2006-08-03 00:29:39 -07:00
|
|
|
#define Q_(String) g_strip_context ((String), (String))
|
2006-08-02 23:54:07 -07:00
|
|
|
#define D_(String,Domain) (String)
|
2006-08-03 00:29:39 -07:00
|
|
|
#define QD_(String,Domain) g_strip_context ((String), (String))
|
2006-08-02 23:54:07 -07:00
|
|
|
#define textdomain(String) (String)
|
|
|
|
#define gettext(String) (String)
|
|
|
|
#define dgettext(Domain,String) (String)
|
|
|
|
#define dcgettext(Domain,String,Type) (String)
|
|
|
|
#define bindtextdomain(Domain,Directory) (Domain)
|
|
|
|
#define bind_textdomain_codeset(Domain,Codeset) (Codeset)
|
|
|
|
|
|
|
|
#endif /* !ENABLE_NLS */
|
|
|
|
|
|
|
|
|
|
|
|
G_END_DECLS
|
2006-08-02 22:39:06 -07:00
|
|
|
|
|
|
|
#endif /* __MOO_I18N_H__ */
|