*****************************************************************************/
VLC_EXPORT( char *, vlc_gettext, ( const char *msgid ) LIBVLC_USED );
+static inline const char *vlc_pgettext( const char *ctx, const char *id )
+{
+ const char *tr = vlc_gettext( id );
+ return (tr == ctx) ? id : tr;
+}
+
/*****************************************************************************
* libvlc features
*****************************************************************************/
#endif
/* libintl support */
-#define _(str) vlc_gettext (str)
+#define _(str) gettext(str)
+#define gettext(str) vlc_gettext (str)
+#define pgettext(ctx,id) vlc_pgettext(ctx,id)
#if defined (ENABLE_NLS)
# include <libintl.h>