From 81065d41b6d0844f138e0ad132d7861a03a4efc0 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Mon, 8 Mar 2010 22:48:50 +0200 Subject: 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. --- mp_msg.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mp_msg.h') 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 -- cgit v1.2.3