Jörg Wendel wrote:
For plugin developers, I suggest to keep it simple in there. Its
probably a good idea to tr() the string just once and cache it afterwards.
this would be a nice change in the streamdev plugin.
The attached patch does it.
This patch has one side effect: The message wont be re-translated if the
selected VDR OSD language is changed, you have to restart to see
--- streamdev-server.c.bak 2006-11-15 14:29:20.000000000 +0100
+++ streamdev-server.c 2006-11-15 14:30:51.000000000 +0100
@@ -59,7 +59,9 @@
- return tr("Streaming active");
+ static const char *Message = NULL;
+ if (!Message) Message = tr("Streaming active");
+ return Message;
vdr mailing list