From 7ce72d9d02dde33576a85227fe396a3f07ebac0d Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Mon, 30 May 2005 13:03:13 +0000 Subject: - added tokens RecordingLanguageCode, RecordingLanguageDescription --- display.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'display.c') 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: -- cgit v1.2.3