summaryrefslogtreecommitdiffstats
path: root/mp_msg.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-08 22:48:50 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-03-08 22:53:12 +0200
commit81065d41b6d0844f138e0ad132d7861a03a4efc0 (patch)
tree8e1e8a7ec4919e35984a2863162b6b4f08050464 /mp_msg.h
parentb34a88e4f44ee2a926c8c30f8fb3954fc7d71b90 (diff)
downloadmpv-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mp_msg.h b/mp_msg.h
index b7c5f9afcb..a3567787e4 100644
--- a/mp_msg.h
+++ b/mp_msg.h
@@ -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