added mp_gettext macro for i18n

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5102 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2002-03-15 21:07:48 +00:00
parent 00b39012b9
commit 7fcc5156dc
1 changed files with 8 additions and 0 deletions

View File

@ -69,6 +69,14 @@ extern int verbose; // defined in mplayer.c
void mp_msg_init(int verbose); void mp_msg_init(int verbose);
void mp_msg_c( int x, const char *format, ... ); 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__ #ifdef __GNUC__
#define mp_msg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args ) #define mp_msg(mod,lev, args... ) mp_msg_c((mod<<8)|lev, ## args )