changeset 5101:870ba1ffdbf9

added mp_gettext macro for i18n
author alex
date Fri, 15 Mar 2002 21:07:48 +0000
parents c1eeb9416fd1
children 17f97ed8259e
files mp_msg.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mp_msg.h	Fri Mar 15 20:48:42 2002 +0000
+++ b/mp_msg.h	Fri Mar 15 21:07:48 2002 +0000
@@ -69,6 +69,14 @@
 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 )