From 4ba031a7e2a9397eab0067575f29a282681f412e Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Thu, 11 Mar 2010 10:14:05 +0200 Subject: [PATCH] i18n: define dummy ngettext if i18n is disabled. We cannot blindly use gettext function and not define them when not using gettext. --- gst/gst-i18n-app.h | 1 + gst/gst-i18n-lib.h | 1 + 2 files changed, 2 insertions(+) diff --git a/gst/gst-i18n-app.h b/gst/gst-i18n-app.h index f94dd60067..06339b8bbb 100644 --- a/gst/gst-i18n-app.h +++ b/gst/gst-i18n-app.h @@ -36,6 +36,7 @@ #define _(String) String #define N_(String) String +#define ngettext(Singular,Plural,Count) ((Count>1)?Plural:Singular) #endif diff --git a/gst/gst-i18n-lib.h b/gst/gst-i18n-lib.h index 265dcae8ff..e4eb45ee74 100644 --- a/gst/gst-i18n-lib.h +++ b/gst/gst-i18n-lib.h @@ -39,6 +39,7 @@ #else #define _(String) String #define N_(String) String +#define ngettext(Singular,Plural,Count) ((Count>1)?Plural:Singular) #endif