mirror of https://github.com/mpv-player/mpv
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:
parent
00b39012b9
commit
7fcc5156dc
8
mp_msg.h
8
mp_msg.h
|
@ -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 )
|
||||||
|
|
Loading…
Reference in New Issue