Blame gst-libs/gst/gst-i18n-plugin.h

Packit 1f69a5
/* GStreamer
Packit 1f69a5
 * Copyright (C) 2004 Thomas Vander Stichele <thomas@apestaart.org>
Packit 1f69a5
 *
Packit 1f69a5
 * gst-i18n-plugins.h: internationalization macros for the GStreamer plugins
Packit 1f69a5
 *
Packit 1f69a5
 * This library is free software; you can redistribute it and/or
Packit 1f69a5
 * modify it under the terms of the GNU Library General Public
Packit 1f69a5
 * License as published by the Free Software Foundation; either
Packit 1f69a5
 * version 2 of the License, or (at your option) any later version.
Packit 1f69a5
 *
Packit 1f69a5
 * This library is distributed in the hope that it will be useful,
Packit 1f69a5
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 1f69a5
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 1f69a5
 * Library General Public License for more details.
Packit 1f69a5
 *
Packit 1f69a5
 * You should have received a copy of the GNU Library General Public
Packit 1f69a5
 * License along with this library; if not, write to the
Packit 1f69a5
 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
Packit 1f69a5
 * Boston, MA 02110-1301, USA.
Packit 1f69a5
 */
Packit 1f69a5
Packit 1f69a5
#ifndef __GST_I18N_PLUGIN_H__
Packit 1f69a5
#define __GST_I18N_PLUGIN_H__
Packit 1f69a5
Packit 1f69a5
#ifndef GETTEXT_PACKAGE
Packit 1f69a5
#error You must define GETTEXT_PACKAGE before including this header.
Packit 1f69a5
#endif
Packit 1f69a5
Packit 1f69a5
#ifdef ENABLE_NLS
Packit 1f69a5
Packit 1f69a5
#include <locale.h>
Packit 1f69a5
Packit 1f69a5
#include "gettext.h" /* included with gettext distribution and copied */
Packit 1f69a5
Packit 1f69a5
/* we want to use shorthand _() for translating and N_() for marking */
Packit 1f69a5
#define _(String) dgettext (GETTEXT_PACKAGE, String)
Packit 1f69a5
#define N_(String) gettext_noop (String)
Packit 1f69a5
/* FIXME: if we need it, we can add Q_ as well, like in glib */
Packit 1f69a5
Packit 1f69a5
#else
Packit 1f69a5
#define _(String) String
Packit 1f69a5
#define N_(String) String
Packit 1f69a5
#define ngettext(Singular,Plural,Count) ((Count>1)?Plural:Singular)
Packit 1f69a5
Packit 1f69a5
#endif
Packit 1f69a5
Packit 1f69a5
#endif /* __GST_I18N_PLUGIN_H__ */