diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-03-08 22:48:50 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-03-08 22:53:12 +0200 |
commit | 81065d41b6d0844f138e0ad132d7861a03a4efc0 (patch) | |
tree | 8e1e8a7ec4919e35984a2863162b6b4f08050464 /mp_msg.h | |
parent | b34a88e4f44ee2a926c8c30f8fb3954fc7d71b90 (diff) | |
download | mpv-81065d41b6d0844f138e0ad132d7861a03a4efc0.tar.bz2 mpv-81065d41b6d0844f138e0ad132d7861a03a4efc0.tar.xz |
Add runtime translation support
Add support for gettext-based runtime translations. Enabled with
configure switch --enable-translation (no autodetection). Note that no
translation files are installed yet.
Diffstat (limited to 'mp_msg.h')
-rw-r--r-- | mp_msg.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -118,12 +118,12 @@ int mp_msg_test(int mod, int lev); #include "config.h" char *mp_gtext(const char *string); -#define mp_tmsg mp_msg void mp_msg_va(int mod, int lev, const char *format, va_list va); #ifdef __GNUC__ void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); +void mp_tmsg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4))); # ifdef MP_DEBUG # define mp_dbg(mod,lev, args... ) mp_msg(mod, lev, ## args ) # else @@ -131,6 +131,7 @@ void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format ( # endif #else // not GNU C void mp_msg(int mod, int lev, const char *format, ... ); +void mp_tmsg(int mod, int lev, const char *format, ...) # ifdef MP_DEBUG # define mp_dbg(mod,lev, ... ) mp_msg(mod, lev, __VA_ARGS__) # else |