diff options
author | lordjaxom <lordjaxom> | 2005-05-30 13:03:13 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-05-30 13:03:13 +0000 |
commit | 7ce72d9d02dde33576a85227fe396a3f07ebac0d (patch) | |
tree | 6e0fded9e8ffe8e1662cb84e2966e416bbc7c48c /display.c | |
parent | 000d86709136d1c863d1aea3fdbb844ebb37f7a0 (diff) | |
download | vdr-plugin-text2skin-7ce72d9d02dde33576a85227fe396a3f07ebac0d.tar.gz vdr-plugin-text2skin-7ce72d9d02dde33576a85227fe396a3f07ebac0d.tar.bz2 |
- added tokens RecordingLanguageCode, RecordingLanguageDescription
Diffstat (limited to 'display.c')
-rw-r--r-- | display.c | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -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: |