summaryrefslogtreecommitdiffstats
path: root/mp_msg.h
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-15 21:07:48 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-03-15 21:07:48 +0000
commit7fcc5156dcea325c8580ddde2e402a87489dfe27 (patch)
tree5d14f4ae92425c4028930409ec843ba6742ca41e /mp_msg.h
parent00b39012b9a92ab672af839d68d02279a642d5ac (diff)
downloadmpv-7fcc5156dcea325c8580ddde2e402a87489dfe27.tar.bz2
mpv-7fcc5156dcea325c8580ddde2e402a87489dfe27.tar.xz
added mp_gettext macro for i18n
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5102 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mp_msg.h')
-rw-r--r--mp_msg.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/mp_msg.h b/mp_msg.h
index 3a291817c2..dad9f83345 100644
--- a/mp_msg.h
+++ b/mp_msg.h
@@ -69,6 +69,14 @@ extern int verbose; // defined in mplayer.c
void mp_msg_init(int verbose);
void mp_msg_c( int x, const char *format, ... );
+#include "config.h"
+
+#ifdef USE_I18N
+#include <libintl.h>
+#define mp_gettext(String) gettext(String)
+#else
+#define mp_gettext(String) String
+#endif
#ifdef __GNUC__
#define mp_msg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args )