gst-plugins-nuvdemux/gst-libs/gst/gst-i18n-plugin.h
branchtrunk
changeset 60 98fa2109e716
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gst-plugins-nuvdemux/gst-libs/gst/gst-i18n-plugin.h	Fri Oct 27 19:10:56 2006 +0100
     1.3 @@ -0,0 +1,37 @@
     1.4 +/* GStreamer
     1.5 + * Copyright (C) 2004 Thomas Vander Stichele <thomas@apestaart.org>
     1.6 + *
     1.7 + * gst-i18n-plugins.h: internationalization macros for the GStreamer plugins
     1.8 + *
     1.9 + * This library is free software; you can redistribute it and/or
    1.10 + * modify it under the terms of the GNU Library General Public
    1.11 + * License as published by the Free Software Foundation; either
    1.12 + * version 2 of the License, or (at your option) any later version.
    1.13 + *
    1.14 + * This library is distributed in the hope that it will be useful,
    1.15 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    1.16 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1.17 + * Library General Public License for more details.
    1.18 + *
    1.19 + * You should have received a copy of the GNU Library General Public
    1.20 + * License along with this library; if not, write to the
    1.21 + * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    1.22 + * Boston, MA 02111-1307, USA.
    1.23 + */
    1.24 +
    1.25 +#ifndef __GST_I18N_PLUGIN_H__
    1.26 +#define __GST_I18N_PLUGIN_H__
    1.27 +
    1.28 +#include <locale.h>  /* some people need it and some people don't */
    1.29 +#include "gettext.h" /* included with gettext distribution and copied */
    1.30 +
    1.31 +#ifndef GETTEXT_PACKAGE
    1.32 +#error You must define GETTEXT_PACKAGE before including this header.
    1.33 +#endif
    1.34 +
    1.35 +/* we want to use shorthand _() for translating and N_() for marking */
    1.36 +#define _(String) dgettext (GETTEXT_PACKAGE, String)
    1.37 +#define N_(String) gettext_noop (String)
    1.38 +/* FIXME: if we need it, we can add Q_ as well, like in glib */
    1.39 +
    1.40 +#endif /* __GST_I18N_PLUGIN_H__ */