summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-06 19:54:38 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-06 19:56:57 +0300
commit7394680e4eb7b21cd8bf38b973ff66881889be26 (patch)
treeb17bc8c28977c56f3321e60ae38c09fcdbe473c8
parent91d0d3a0824c755608c1c69d6b1192d114a50a96 (diff)
downloadmpv-7394680e4eb7b21cd8bf38b973ff66881889be26.tar.bz2
mpv-7394680e4eb7b21cd8bf38b973ff66881889be26.tar.xz
Add temporary no-op translation function stubs
-rw-r--r--codec-cfg.c1
-rw-r--r--mp_msg.c5
-rw-r--r--mp_msg.h6
3 files changed, 12 insertions, 0 deletions
diff --git a/codec-cfg.c b/codec-cfg.c
index 8956d96601..659108ff3a 100644
--- a/codec-cfg.c
+++ b/codec-cfg.c
@@ -29,6 +29,7 @@
#include "config.h"
#include "mp_msg.h"
#ifdef CODECS2HTML
+#define mp_tmsg mp_msg
#ifdef __GNUC__
#define mp_msg(t, l, m, args...) fprintf(stderr, m, ##args)
#else
diff --git a/mp_msg.c b/mp_msg.c
index 6cd6f8e121..d736782ce1 100644
--- a/mp_msg.c
+++ b/mp_msg.c
@@ -223,3 +223,8 @@ void mp_msg(int mod, int lev, const char *format, ... ){
fprintf(stream, "%s", tmp);
fflush(stream);
}
+
+char *mp_gtext(const char *string)
+{
+ return string;
+}
diff --git a/mp_msg.h b/mp_msg.h
index 0f2776f922..3a81603992 100644
--- a/mp_msg.h
+++ b/mp_msg.h
@@ -4,6 +4,9 @@
// defined in mplayer.c and mencoder.c
extern int verbose;
+/* No-op macro to mark translated strings in the sources */
+#define _(x) x
+
// verbosity elevel:
/* Only messages level MSGL_FATAL-MSGL_STATUS should be translated,
@@ -111,6 +114,9 @@ int mp_msg_test(int mod, int lev);
#include "config.h"
+char *mp_gtext(const char *string);
+#define mp_tmsg mp_msg
+
#ifdef __GNUC__
void mp_msg(int mod, int lev, const char *format, ... ) __attribute__ ((format (printf, 3, 4)));
# ifdef MP_DEBUG