diff options
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | display.c | 22 | ||||
-rw-r--r-- | xml/string.c | 5 | ||||
-rw-r--r-- | xml/string.h | 4 |
4 files changed, 28 insertions, 5 deletions
@@ -7,7 +7,7 @@ VDR Plugin 'text2skin' Revision History - updated finnish translations (thanks to Rolf Ahrenberg) - added tokens for Recording Info Display (RecordingName, RecordingDateTime, RecordingTitle, RecordingShortText, - RecordingDescription) + RecordingDescription, RecordingLanguageCode, RecordingLanguageDescription) 2005-02-06: Version 1.0 @@ -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: diff --git a/xml/string.c b/xml/string.c index 6f08eae..afc0c7a 100644 --- a/xml/string.c +++ b/xml/string.c @@ -1,5 +1,5 @@ /* - * $Id: string.c,v 1.16 2005/05/30 10:07:45 lordjaxom Exp $ + * $Id: string.c,v 1.17 2005/05/30 13:03:13 lordjaxom Exp $ */ #include "xml/string.h" @@ -39,7 +39,8 @@ static const char *Tokens[__COUNT_TOKEN__] = { // Menu Page "MenuTitle", "MenuGroup", "IsMenuGroup", "MenuItem", "IsMenuItem", "MenuCurrent", "IsMenuCurrent", "MenuText", "RecordingName", "RecordingDateTime", "RecordingTitle", - "RecordingShortText", "RecordingDescription", "ButtonRed", "ButtonGreen", + "RecordingShortText", "RecordingDescription", "RecordingLanguageCode", + "RecordingLanguageDescription", "ButtonRed", "ButtonGreen", "ButtonYellow", "ButtonBlue", "CanScrollUp", "CanScrollDown" }; diff --git a/xml/string.h b/xml/string.h index 5961bb0..7c3f30f 100644 --- a/xml/string.h +++ b/xml/string.h @@ -1,5 +1,5 @@ /* - * $Id: string.h,v 1.17 2005/05/30 10:07:45 lordjaxom Exp $ + * $Id: string.h,v 1.18 2005/05/30 13:03:13 lordjaxom Exp $ */ #ifndef VDR_TEXT2SKIN_XML_STRING_H @@ -119,6 +119,8 @@ enum exToken { tRecordingTitle, tRecordingShortText, tRecordingDescription, + tRecordingLanguageCode, + tRecordingLanguageDescription, // next four also in Channel and Replay display (if supported by vdr/plugin) tButtonRed, tButtonGreen, |