summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY6
-rw-r--r--PLUGINS/src/skincurses/HISTORY1
-rw-r--r--PLUGINS/src/skincurses/skincurses.c6
-rw-r--r--eit.c23
-rw-r--r--epg.c19
-rw-r--r--epg.h6
-rw-r--r--po/ca_ES.po6
-rw-r--r--po/cs_CZ.po6
-rw-r--r--po/da_DK.po6
-rw-r--r--po/de_DE.po6
-rw-r--r--po/el_GR.po6
-rw-r--r--po/es_ES.po6
-rw-r--r--po/et_EE.po6
-rw-r--r--po/fi_FI.po6
-rw-r--r--po/fr_FR.po6
-rw-r--r--po/hr_HR.po6
-rw-r--r--po/hu_HU.po6
-rw-r--r--po/it_IT.po6
-rw-r--r--po/lt_LT.po6
-rw-r--r--po/nl_NL.po6
-rw-r--r--po/nn_NO.po6
-rw-r--r--po/pl_PL.po6
-rw-r--r--po/pt_PT.po6
-rw-r--r--po/ro_RO.po6
-rw-r--r--po/ru_RU.po6
-rw-r--r--po/sk_SK.po6
-rw-r--r--po/sl_SI.po6
-rw-r--r--po/sv_SE.po6
-rw-r--r--po/tr_TR.po6
-rw-r--r--po/uk_UA.po6
-rw-r--r--po/zh_CN.po6
-rw-r--r--skinclassic.c8
-rw-r--r--skinsttng.c11
-rw-r--r--vdr.54
35 files changed, 202 insertions, 33 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index ad4af984..ca992d0e 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1088,6 +1088,7 @@ Rolf Ahrenberg <rahrenbe@cc.hut.fi>
for fixing compiler warnings "format not a string literal and no format arguments"
in some syslog calls
for a patch that was used to implement handling the "component descriptor" ("genre")
+ for a patch that was used to implement handling the "parental rating descriptor"
Ralf Klueber <ralf.klueber@vodafone.com>
for reporting a bug in cutting a recording if there is only a single editing mark
diff --git a/HISTORY b/HISTORY
index bb4d7337..605b0893 100644
--- a/HISTORY
+++ b/HISTORY
@@ -6260,3 +6260,9 @@ Video Disk Recorder Revision History
Ahrenberg). The 'classic', 'sttng' and 'curses' skins display the textual
representation of the content descriptors as "genre". The epg.data file stores
the genre using the tag character 'G'.
+- Implemented handling the "Parental Rating Descriptor" (based on a patch from Rolf
+ Ahrenberg). The 'classic', 'sttng' and 'curses' skins display the parental
+ rating (if given) in their event displays. The epg.data file stores
+ the parental rating using the tag character 'R'.
+ IMPORTANT NOTE: if VDR doesn't display a parental rating, this does not
+ necessarily mean that the given programme is suitable for all audiences!
diff --git a/PLUGINS/src/skincurses/HISTORY b/PLUGINS/src/skincurses/HISTORY
index b9f7aeb6..ca820f9b 100644
--- a/PLUGINS/src/skincurses/HISTORY
+++ b/PLUGINS/src/skincurses/HISTORY
@@ -83,3 +83,4 @@ VDR Plugin 'skincurses' Revision History
2010-01-03: Version 0.1.8
- Displaying "genre" in event descriptions.
+- Displaying "parental rating" in event descriptions.
diff --git a/PLUGINS/src/skincurses/skincurses.c b/PLUGINS/src/skincurses/skincurses.c
index f3caaba0..143b7124 100644
--- a/PLUGINS/src/skincurses/skincurses.c
+++ b/PLUGINS/src/skincurses/skincurses.c
@@ -3,7 +3,7 @@
*
* See the README file for copyright information and how to reach the author.
*
- * $Id: skincurses.c 2.1 2010/01/03 11:05:44 kls Exp $
+ * $Id: skincurses.c 2.2 2010/01/03 14:08:04 kls Exp $
*/
#include <ncurses.h>
@@ -402,6 +402,10 @@ void cSkinCursesDisplayMenu::SetEvent(const cEvent *Event)
osd->DrawText(ScOsdWidth - Utf8StrLen(buffer), y, buffer, clrBlack, clrYellow, &Font);
}
y += ts.Height();
+ if (Event->ParentalRating()) {
+ cString buffer = cString::sprintf(" %s ", *Event->GetParentalRatingString());
+ osd->DrawText(ScOsdWidth - Utf8StrLen(buffer), y, buffer, clrBlack, clrYellow, &Font);
+ }
y += 1;
ts.Set(osd, 0, y, ScOsdWidth, ScOsdHeight - y - 2, Event->Title(), &Font, clrCyan, clrBackground);
y += ts.Height();
diff --git a/eit.c b/eit.c
index e7e34dc4..15a2ac62 100644
--- a/eit.c
+++ b/eit.c
@@ -8,7 +8,7 @@
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
* Adapted to 'libsi' for VDR 1.3.0 by Marcel Wiesweg <marcel.wiesweg@gmx.de>.
*
- * $Id: eit.c 2.8 2010/01/03 11:18:56 kls Exp $
+ * $Id: eit.c 2.9 2010/01/03 13:39:48 kls Exp $
*/
#include "eit.h"
@@ -167,7 +167,26 @@ cEIT::cEIT(cSchedules *Schedules, int Source, u_char Tid, const u_char *Data, bo
pEvent->SetContents(Contents);
}
break;
- case SI::ParentalRatingDescriptorTag:
+ case SI::ParentalRatingDescriptorTag: {
+ int LanguagePreferenceRating = -1;
+ SI::ParentalRatingDescriptor *prd = (SI::ParentalRatingDescriptor *)d;
+ SI::ParentalRatingDescriptor::Rating Rating;
+ for (SI::Loop::Iterator it3; prd->ratingLoop.getNext(Rating, it3); ) {
+ if (I18nIsPreferredLanguage(Setup.EPGLanguages, Rating.languageCode, LanguagePreferenceRating)) {
+ int ParentalRating = (Rating.getRating() & 0xFF);
+ switch (ParentalRating) {
+ // values defined by the DVB standard (minimum age = rating + 3 years):
+ case 0x01 ... 0x0F: ParentalRating += 3; break;
+ // values defined by broadcaster CSAT (now why didn't they just use 0x07, 0x09 and 0x0D?):
+ case 0x11: ParentalRating = 10; break;
+ case 0x12: ParentalRating = 12; break;
+ case 0x13: ParentalRating = 16; break;
+ default: ParentalRating = 0;
+ }
+ pEvent->SetParentalRating(ParentalRating);
+ }
+ }
+ }
break;
case SI::PDCDescriptorTag: {
SI::PDCDescriptor *pd = (SI::PDCDescriptor *)d;
diff --git a/epg.c b/epg.c
index 83376ac8..e1cfe18d 100644
--- a/epg.c
+++ b/epg.c
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.c 2.3 2010/01/03 11:28:38 kls Exp $
+ * $Id: epg.c 2.4 2010/01/03 14:10:20 kls Exp $
*/
#include "epg.h"
@@ -113,6 +113,7 @@ cEvent::cEvent(tEventID EventID)
description = NULL;
components = NULL;
memset(contents, 0, sizeof(contents));
+ parentalRating = 0;
startTime = 0;
duration = 0;
vps = 0;
@@ -193,6 +194,11 @@ void cEvent::SetContents(uchar *Contents)
contents[i] = Contents[i];
}
+void cEvent::SetParentalRating(int ParentalRating)
+{
+ parentalRating = ParentalRating;
+}
+
void cEvent::SetStartTime(time_t StartTime)
{
if (startTime != StartTime) {
@@ -383,6 +389,13 @@ const char *cEvent::ContentToString(uchar Content)
return "";
}
+cString cEvent::GetParentalRatingString(void) const
+{
+ if (parentalRating)
+ return cString::sprintf(tr("ParentalRating$from %d"), parentalRating);
+ return NULL;
+}
+
cString cEvent::GetDateString(void) const
{
return DateString(startTime);
@@ -425,6 +438,8 @@ void cEvent::Dump(FILE *f, const char *Prefix, bool InfoOnly) const
fprintf(f, " %02X", Contents(i));
fprintf(f, "\n");
}
+ if (parentalRating)
+ fprintf(f, "%sR %d\n", Prefix, parentalRating);
if (components) {
for (int i = 0; i < components->NumComponents(); i++) {
tComponent *p = components->Component(i);
@@ -465,6 +480,8 @@ bool cEvent::Parse(char *s)
}
}
break;
+ case 'R': SetParentalRating(atoi(t));
+ break;
case 'X': if (!components)
components = new cComponents;
components->SetComponent(components->NumComponents(), t);
diff --git a/epg.h b/epg.h
index b1eed7e6..2f1f93c1 100644
--- a/epg.h
+++ b/epg.h
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.h 2.1 2010/01/03 11:17:20 kls Exp $
+ * $Id: epg.h 2.2 2010/01/03 14:01:55 kls Exp $
*/
#ifndef __EPG_H
@@ -77,6 +77,7 @@ private:
char *description; // Description of this event
cComponents *components; // The stream components of this event
uchar contents[MAXEVCONTENTS]; // Contents of this event
+ int parentalRating; // Parental rating of this event
time_t startTime; // Start time of this event
int duration; // Duration of this event in seconds
time_t vps; // Video Programming Service timestamp (VPS, aka "Programme Identification Label", PIL)
@@ -96,6 +97,7 @@ public:
const char *Description(void) const { return description; }
const cComponents *Components(void) const { return components; }
uchar Contents(int i = 0) const { return (0 <= i && i < MAXEVCONTENTS) ? contents[i] : 0; }
+ int ParentalRating(void) const { return parentalRating; }
time_t StartTime(void) const { return startTime; }
time_t EndTime(void) const { return startTime + duration; }
int Duration(void) const { return duration; }
@@ -105,6 +107,7 @@ public:
bool HasTimer(void) const;
bool IsRunning(bool OrAboutToStart = false) const;
static const char *ContentToString(uchar Content);
+ cString GetParentalRatingString(void) const;
cString GetDateString(void) const;
cString GetTimeString(void) const;
cString GetEndTimeString(void) const;
@@ -118,6 +121,7 @@ public:
void SetDescription(const char *Description);
void SetComponents(cComponents *Components); // Will take ownership of Components!
void SetContents(uchar *Contents);
+ void SetParentalRating(int ParentalRating);
void SetStartTime(time_t StartTime);
void SetDuration(int Duration);
void SetVps(time_t Vps);
diff --git a/po/ca_ES.po b/po/ca_ES.po
index 1849cd67..14f3c218 100644
--- a/po/ca_ES.po
+++ b/po/ca_ES.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-03-02 19:02+0100\n"
"Last-Translator: Luca Olivetti <luca@ventoso.org>\n"
"Language-Team: Catalanian\n"
@@ -279,6 +279,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Sense títol"
diff --git a/po/cs_CZ.po b/po/cs_CZ.po
index 9a9a1eb4..6394008e 100644
--- a/po/cs_CZ.po
+++ b/po/cs_CZ.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-02-28 15:00+0200\n"
"Last-Translator: Vladimír Bárta <vladimir.barta@k2atmitec.cz>, Jiøí Dobrý <jdobry@centrum.cz>\n"
"Language-Team: Czech\n"
@@ -277,6 +277,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Bez názvu"
diff --git a/po/da_DK.po b/po/da_DK.po
index c8cd3c4b..faa3632d 100644
--- a/po/da_DK.po
+++ b/po/da_DK.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Mogens Elneff <mogens@elneff.dk>\n"
"Language-Team: Danish\n"
@@ -276,6 +276,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Ingen titel"
diff --git a/po/de_DE.po b/po/de_DE.po
index 8e01ebfa..ff25a334 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2007-11-25 15:19+0200\n"
"Last-Translator: Klaus Schmidinger <kls@tvdr.de>\n"
"Language-Team: German\n"
@@ -276,6 +276,10 @@ msgstr "Unveröffentlicht"
msgid "Content$Live Broadcast"
msgstr "Live-Sendung"
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr "ab %d"
+
msgid "No title"
msgstr "Kein Titel"
diff --git a/po/el_GR.po b/po/el_GR.po
index 602c744a..2c310abc 100644
--- a/po/el_GR.po
+++ b/po/el_GR.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Dimitrios Dimitrakos <mail@dimitrios.de>\n"
"Language-Team: Greek\n"
@@ -276,6 +276,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "×ùñßò Ôßôëï"
diff --git a/po/es_ES.po b/po/es_ES.po
index 87f9a75f..6cb029ca 100644
--- a/po/es_ES.po
+++ b/po/es_ES.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-03-02 19:02+0100\n"
"Last-Translator: Luca Olivetti <luca@ventoso.org>\n"
"Language-Team: Spanish\n"
@@ -277,6 +277,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Sin título"
diff --git a/po/et_EE.po b/po/et_EE.po
index 7c041274..f8a0f601 100644
--- a/po/et_EE.po
+++ b/po/et_EE.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Arthur Konovalov <artlov@gmail.com>\n"
"Language-Team: Estonian\n"
@@ -276,6 +276,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Pealkiri puudub"
diff --git a/po/fi_FI.po b/po/fi_FI.po
index d76e2d8a..410bd67f 100644
--- a/po/fi_FI.po
+++ b/po/fi_FI.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2007-08-15 15:52+0200\n"
"Last-Translator: Rolf Ahrenberg <rahrenbe@cc.hut.fi>\n"
"Language-Team: Finnish\n"
@@ -279,6 +279,10 @@ msgstr "Julkaisematon"
msgid "Content$Live Broadcast"
msgstr "Suoralähetys"
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Ei esitystä"
diff --git a/po/fr_FR.po b/po/fr_FR.po
index 962b802d..9f2768a8 100644
--- a/po/fr_FR.po
+++ b/po/fr_FR.po
@@ -13,7 +13,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-02-27 18:14+0100\n"
"Last-Translator: Jean-Claude Repetto <jc@repetto.org>\n"
"Language-Team: French\n"
@@ -282,6 +282,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Sans titre"
diff --git a/po/hr_HR.po b/po/hr_HR.po
index 948b3e77..7d923afe 100644
--- a/po/hr_HR.po
+++ b/po/hr_HR.po
@@ -9,7 +9,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-03-17 19:00+0100\n"
"Last-Translator: Adrian Caval <anrxc@sysphere.org>\n"
"Language-Team: Croatian\n"
@@ -278,6 +278,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Bez naziva"
diff --git a/po/hu_HU.po b/po/hu_HU.po
index 17b6d995..1517920e 100644
--- a/po/hu_HU.po
+++ b/po/hu_HU.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2007-12-01 21:42+0200\n"
"Last-Translator: István Füley <ifuley@tigercomp.ro>\n"
"Language-Team: Hungarian\n"
@@ -279,6 +279,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "név nélkül"
diff --git a/po/it_IT.po b/po/it_IT.po
index 07b8fece..1a403add 100644
--- a/po/it_IT.po
+++ b/po/it_IT.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2009-11-28 22:50+0100\n"
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
"Language-Team: Italian\n"
@@ -283,6 +283,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Senza titolo"
diff --git a/po/lt_LT.po b/po/lt_LT.po
index 6e8e24fb..dd367546 100644
--- a/po/lt_LT.po
+++ b/po/lt_LT.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.9\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2009-10-17 14:19+0200\n"
"Last-Translator: Valdemaras Pipiras <varas@ambernet.lt>\n"
"Language-Team: Lithuanian\n"
@@ -276,6 +276,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Be pavadinimo"
diff --git a/po/nl_NL.po b/po/nl_NL.po
index c20c3dc7..3634438f 100644
--- a/po/nl_NL.po
+++ b/po/nl_NL.po
@@ -11,7 +11,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-02-26 17:20+0100\n"
"Last-Translator: Johan Schuring <johan.schuring@vetteblei.nl>\n"
"Language-Team: Dutch\n"
@@ -280,6 +280,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Geen titel"
diff --git a/po/nn_NO.po b/po/nn_NO.po
index 76bd5827..56975a56 100644
--- a/po/nn_NO.po
+++ b/po/nn_NO.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2007-08-12 14:17+0200\n"
"Last-Translator: Truls Slevigen <truls@slevigen.no>\n"
"Language-Team: Norwegian\n"
@@ -277,6 +277,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr ""
diff --git a/po/pl_PL.po b/po/pl_PL.po
index a7365761..0143db86 100644
--- a/po/pl_PL.po
+++ b/po/pl_PL.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-03-09 12:59+0100\n"
"Last-Translator: Michael Rakowski <mrak@gmx.de>\n"
"Language-Team: Polish\n"
@@ -277,6 +277,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Bez tytu³u"
diff --git a/po/pt_PT.po b/po/pt_PT.po
index 5f7f6c00..e863f8c7 100644
--- a/po/pt_PT.po
+++ b/po/pt_PT.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-03-18 17:04+0100\n"
"Last-Translator: anonymous\n"
"Language-Team: Portuguese\n"
@@ -276,6 +276,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Sem título"
diff --git a/po/ro_RO.po b/po/ro_RO.po
index 516ed8a8..79a2690f 100644
--- a/po/ro_RO.po
+++ b/po/ro_RO.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-02-25 00:39+0100\n"
"Last-Translator: Lucian Muresan <lucianm@users.sourceforge.net>\n"
"Language-Team: Romanian\n"
@@ -279,6 +279,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Fãrã titlu"
diff --git a/po/ru_RU.po b/po/ru_RU.po
index bc85ca9f..eb71a20d 100644
--- a/po/ru_RU.po
+++ b/po/ru_RU.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-12-15 14:37+0100\n"
"Last-Translator: Oleg Roitburd <oleg@roitburd.de>\n"
"Language-Team: Russian\n"
@@ -277,6 +277,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "±Õ× ÝÐ×ÒÐÝØï"
diff --git a/po/sk_SK.po b/po/sk_SK.po
index 2dcca200..5068882c 100644
--- a/po/sk_SK.po
+++ b/po/sk_SK.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2009-09-30 12:50+0100\n"
"Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n"
"Language-Team: Slovak\n"
@@ -277,6 +277,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Bez názvu"
diff --git a/po/sl_SI.po b/po/sl_SI.po
index 468c1f82..7b3b05f2 100644
--- a/po/sl_SI.po
+++ b/po/sl_SI.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-02-28 19:44+0100\n"
"Last-Translator: Matjaz Thaler <matjaz.thaler@guest.arnes.si>\n"
"Language-Team: Slovenian\n"
@@ -277,6 +277,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Brez naziva"
diff --git a/po/sv_SE.po b/po/sv_SE.po
index c3465715..17a1da6c 100644
--- a/po/sv_SE.po
+++ b/po/sv_SE.po
@@ -10,7 +10,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-03-12 18:25+0100\n"
"Last-Translator: Magnus Andersson <svankan@bahnhof.se>\n"
"Language-Team: Swedish\n"
@@ -279,6 +279,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "ingen titel"
diff --git a/po/tr_TR.po b/po/tr_TR.po
index da04f4c1..e921986e 100644
--- a/po/tr_TR.po
+++ b/po/tr_TR.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2008-02-28 00:33+0100\n"
"Last-Translator: Oktay Yolgeçen <oktay_73@yahoo.de>\n"
"Language-Team: Turkish\n"
@@ -276,6 +276,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Ýsim yok"
diff --git a/po/uk_UA.po b/po/uk_UA.po
index 9eb4b3e0..17c83716 100644
--- a/po/uk_UA.po
+++ b/po/uk_UA.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.7.7\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2009-05-31 13:17+0200\n"
"Last-Translator: Yarema aka Knedlyk <yupadmin@gmail.com>\n"
"Language-Team: Ukrainian\n"
@@ -276,6 +276,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "Без назви"
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 6c9e8871..1f6eaacd 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: VDR 1.6.0\n"
"Report-Msgid-Bugs-To: <vdr-bugs@tvdr.de>\n"
-"POT-Creation-Date: 2010-01-03 12:41+0100\n"
+"POT-Creation-Date: 2010-01-03 15:10+0100\n"
"PO-Revision-Date: 2009-09-23 23:50+0800\n"
"Last-Translator: Nan Feng <nfgx@21cn.com>\n"
"Language-Team: Chinese\n"
@@ -279,6 +279,10 @@ msgstr ""
msgid "Content$Live Broadcast"
msgstr ""
+#, c-format
+msgid "ParentalRating$from %d"
+msgstr ""
+
msgid "No title"
msgstr "没有标题"
diff --git a/skinclassic.c b/skinclassic.c
index 29486cb5..34efa0ac 100644
--- a/skinclassic.c
+++ b/skinclassic.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinclassic.c 2.1 2010/01/03 11:28:24 kls Exp $
+ * $Id: skinclassic.c 2.2 2010/01/03 14:08:17 kls Exp $
*/
#include "skinclassic.h"
@@ -345,6 +345,12 @@ void cSkinClassicDisplayMenu::SetEvent(const cEvent *Event)
osd->DrawText(x3 - w, y, buffer, Theme.Color(clrMenuEventVpsFg), Theme.Color(clrMenuEventVpsBg), font, w);
}
y += ts.Height();
+ if (Event->ParentalRating()) {
+ cString buffer = cString::sprintf(" %s ", *Event->GetParentalRatingString());
+ const cFont *font = cFont::GetFont(fontSml);
+ int w = font->Width(buffer);
+ osd->DrawText(x3 - w, y, buffer, Theme.Color(clrMenuEventVpsFg), Theme.Color(clrMenuEventVpsBg), font, w);
+ }
y += font->Height();
ts.Set(osd, x1, y, x2 - x1, y3 - y, Event->Title(), font, Theme.Color(clrMenuEventTitle), Theme.Color(clrBackground));
y += ts.Height();
diff --git a/skinsttng.c b/skinsttng.c
index 5042857b..ac92328b 100644
--- a/skinsttng.c
+++ b/skinsttng.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skinsttng.c 2.2 2010/01/03 10:46:09 kls Exp $
+ * $Id: skinsttng.c 2.3 2010/01/03 14:08:11 kls Exp $
*/
// Star Trek: The Next Generation® is a registered trademark of Paramount Pictures
@@ -593,6 +593,15 @@ void cSkinSTTNGDisplayMenu::SetEvent(const cEvent *Event)
osd->DrawEllipse (x6, y, x7 - 1, yb - 1, frameColor, 5);
}
y += ts.Height();
+ if (Event->ParentalRating()) {
+ cString buffer = cString::sprintf(" %s ", *Event->GetParentalRatingString());
+ const cFont *font = cFont::GetFont(fontSml);
+ int w = font->Width(buffer);
+ osd->DrawText(x4 - w, y, buffer, Theme.Color(clrMenuEventVps), frameColor, font, w);
+ int yb = y + font->Height();
+ osd->DrawRectangle(x5, y, x6 - 1, yb - 1, frameColor);
+ osd->DrawEllipse (x6, y, x7 - 1, yb - 1, frameColor, 5);
+ }
y += font->Height();
ts.Set(osd, xl, y, x4 - xl, y4 - y, Event->Title(), font, Theme.Color(clrMenuEventTitle), Theme.Color(clrBackground));
y += ts.Height();
diff --git a/vdr.5 b/vdr.5
index 716b4570..875a7ded 100644
--- a/vdr.5
+++ b/vdr.5
@@ -8,7 +8,7 @@
.\" License as specified in the file COPYING that comes with the
.\" vdr distribution.
.\"
-.\" $Id: vdr.5 2.10 2010/01/03 11:23:16 kls Exp $
+.\" $Id: vdr.5 2.11 2010/01/03 13:37:07 kls Exp $
.\"
.TH vdr 5 "10 Feb 2008" "1.6" "Video Disk Recorder Files"
.SH NAME
@@ -696,6 +696,7 @@ l l.
\fBS\fR@<short text>
\fBD\fR@<description>
\fBG\fR@<genre> <genre>...
+\fBR\fR@<parental rating>
\fBX\fR@<stream> <type> <language> <descr>
\fBV\fR@<vps time>
\fBe\fR@
@@ -726,6 +727,7 @@ l l.
<short text> @is the short text of the event (typically the name of the episode etc.)
<description> @is the description of the event (any '|' characters will be interpreted as newlines)
<genre> @is a two digit hex code, as defined in ETSI EN 300 468, table 28 (up to 4 genre codes are supported)
+<parental rating>@is the minimum age of the intended audience
<stream> @is the stream content (1 = video, 2 = audio, 3 = subtitles, 4 = AC3)
<type> @is the stream type according to ETSI EN 300 468
<language> @is the three letter language code (optionally two codes, separated by '+')