diff options
author | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-15 21:07:48 +0000 |
---|---|---|
committer | alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-03-15 21:07:48 +0000 |
commit | 7fcc5156dcea325c8580ddde2e402a87489dfe27 (patch) | |
tree | 5d14f4ae92425c4028930409ec843ba6742ca41e /mp_msg.h | |
parent | 00b39012b9a92ab672af839d68d02279a642d5ac (diff) | |
download | mpv-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.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 ) |