summaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-05-30 13:03:13 +0000
committerlordjaxom <lordjaxom>2005-05-30 13:03:13 +0000
commit7ce72d9d02dde33576a85227fe396a3f07ebac0d (patch)
tree6e0fded9e8ffe8e1662cb84e2966e416bbc7c48c /display.c
parent000d86709136d1c863d1aea3fdbb844ebb37f7a0 (diff)
downloadvdr-plugin-text2skin-7ce72d9d02dde33576a85227fe396a3f07ebac0d.tar.gz
vdr-plugin-text2skin-7ce72d9d02dde33576a85227fe396a3f07ebac0d.tar.bz2
- added tokens RecordingLanguageCode, RecordingLanguageDescription
Diffstat (limited to 'display.c')
-rw-r--r--display.c22
1 files changed, 21 insertions, 1 deletions
diff --git a/display.c b/display.c
index e5a7f38..a21bc90 100644
--- a/display.c
+++ b/display.c
@@ -1,5 +1,5 @@
/*
- * $Id: display.c,v 1.21 2005/05/30 10:07:45 lordjaxom Exp $
+ * $Id: display.c,v 1.22 2005/05/30 13:03:13 lordjaxom Exp $
*/
#include "render.h"
@@ -1092,6 +1092,26 @@ cxType cText2SkinDisplayMenu::GetTokenData(const txToken &Token)
return mRecording != NULL
? (cxType)mRecording->Info()->Description()
: (cxType)false;
+
+ case tRecordingLanguageCode:
+ if (mRecording != NULL) {
+ const tComponent *c
+ = mRecording->Info()->Components()->Component(Token.Attrib.Number);
+ return c != NULL
+ ? (cxType)c->language
+ : (cxType)false;
+ }
+ return false;
+
+ case tRecordingLanguageDescription:
+ if (mRecording != NULL) {
+ const tComponent *c
+ = mRecording->Info()->Components()->Component(Token.Attrib.Number);
+ return c != NULL
+ ? (cxType)c->description
+ : (cxType)false;
+ }
+ return false;
#endif
default: