From ee98209ab84a338525e0dde9f62633bcf0b08078 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 12 Jan 2010 12:16:00 +0200 Subject: 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. --- mp_osd.h | 1 + 1 file changed, 1 insertion(+) (limited to 'mp_osd.h') 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 */ -- cgit v1.2.3