Blame gst/gst-i18n-app.h

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