summaryrefslogtreecommitdiffstats
path: root/mp_osd.h
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-01-12 12:16:00 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-01-12 12:16:00 +0200
commitee98209ab84a338525e0dde9f62633bcf0b08078 (patch)
treeceea258c1cd6114278dbece609adf560d277dc86 /mp_osd.h
parent23e693d6d2e6d0da74b40ccb8a9f438a9dd846c2 (diff)
downloadmpv-ee98209ab84a338525e0dde9f62633bcf0b08078.tar.bz2
mpv-ee98209ab84a338525e0dde9f62633bcf0b08078.tar.xz
translations: add infrastructure for translated OSD messages
Add function set_osd_tmsg() which is a version of set_osd_msg that translates its format argument. Pass OSD message strings in the command.c property_osd_display table through mp_gtext before they're used.
Diffstat (limited to 'mp_osd.h')
-rw-r--r--mp_osd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/mp_osd.h b/mp_osd.h
index 77eaacd7d2..e80dadb8c2 100644
--- a/mp_osd.h
+++ b/mp_osd.h
@@ -23,6 +23,7 @@ struct MPContext;
void set_osd_bar(struct MPContext *mpctx, int type,const char* name,double min,double max,double val);
void set_osd_msg(int id, int level, int time, const char* fmt, ...);
+void set_osd_tmsg(int id, int level, int time, const char* fmt, ...);
void rm_osd_msg(int id);
#endif /* MPLAYER_MP_OSD_H */