premiereepg.c
branchtrunk
changeset 14 feccb11658b1
parent 12 5213337a6614
child 18 b55e482869c7
     1.1 --- a/premiereepg.c	Sat Dec 29 11:20:07 2007 +0100
     1.2 +++ b/premiereepg.c	Sat Dec 29 11:20:25 2007 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  /*
     1.5   * PremiereEpg plugin to VDR (C++)
     1.6   *
     1.7 - * (C) 2005-2006 Stefan Huelswitt <s.huelswitt@gmx.de>
     1.8 + * (C) 2005-2007 Stefan Huelswitt <s.huelswitt@gmx.de>
     1.9   *
    1.10   * This code is base on the commandline tool premiereepg2vdr
    1.11   * (C) 2004-2005 by Axel Katzur software@katzur.de
    1.12 @@ -33,6 +33,13 @@
    1.13  #include <libsi/section.h>
    1.14  #include <libsi/descriptor.h>
    1.15  
    1.16 +#if APIVERSNUM < 10401
    1.17 +#error You need at least VDR API version 1.4.1 for this plugin
    1.18 +#endif
    1.19 +#if APIVERSNUM < 10507
    1.20 +#define trNOOP(s) (s)
    1.21 +#endif
    1.22 +
    1.23  //#define DEBUG
    1.24  //#define DEBUG2
    1.25  
    1.26 @@ -50,12 +57,8 @@
    1.27  #define PMT_SCAN_TIMEOUT  10  // seconds
    1.28  #define PMT_SCAN_IDLE     300 // seconds
    1.29  
    1.30 -static const char *VERSION        = "0.0.7";
    1.31 -static const char *DESCRIPTION    = "Parses extended Premiere EPG data";
    1.32 -
    1.33 -#if APIVERSNUM < 10401
    1.34 -#error You need at least VDR API version 1.4.1 for this plugin
    1.35 -#endif
    1.36 +static const char *VERSION        = "0.0.8";
    1.37 +static const char *DESCRIPTION    = trNOOP("Parses extended Premiere EPG data");
    1.38  
    1.39  // --- cSetupPremiereEpg -------------------------------------------------------
    1.40  
    1.41 @@ -90,9 +93,8 @@
    1.42  
    1.43  // --- i18n --------------------------------------------------------------------
    1.44  
    1.45 +#if APIVERSNUM < 10507
    1.46  const tI18nPhrase Phrases[] = {
    1.47 -/*
    1.48 -*/
    1.49    { "PremiereEPG",
    1.50      "PremiereEPG",
    1.51      "", // TODO
    1.52 @@ -127,6 +129,23 @@
    1.53      "", // TODO
    1.54      "", // TODO
    1.55    },
    1.56 +  { "off",
    1.57 +    "aus",
    1.58 +    "", // TODO
    1.59 +    "", // TODO
    1.60 +    "", // TODO
    1.61 +    "", // TODO
    1.62 +    "", // TODO
    1.63 +    "", // TODO
    1.64 +    "", // TODO
    1.65 +    "", // TODO
    1.66 +    "", // TODO
    1.67 +    "", // TODO
    1.68 +    "", // TODO
    1.69 +    "", // TODO
    1.70 +    "", // TODO
    1.71 +    "", // TODO
    1.72 +  },
    1.73    { "Tag option events",
    1.74      "Options Events markieren",
    1.75      "", // TODO
    1.76 @@ -318,6 +337,7 @@
    1.77  
    1.78    { NULL }
    1.79    };
    1.80 +#endif
    1.81  
    1.82  // --- cMenuSetupPremiereEpg ------------------------------------------------------------
    1.83  
    1.84 @@ -509,11 +529,11 @@
    1.85              case 0xF0: // order information
    1.86                if(SetupPE.OrderInfo) {
    1.87                  static const char *text[] = {
    1.88 -                  "Ordernumber",
    1.89 -                  "Price",
    1.90 -                  "Ordering",
    1.91 -                  "SMS",
    1.92 -                  "WWW"
    1.93 +                  trNOOP("Ordernumber"),
    1.94 +                  trNOOP("Price"),
    1.95 +                  trNOOP("Ordering"),
    1.96 +                  trNOOP("SMS"),
    1.97 +                  trNOOP("WWW")
    1.98                    };
    1.99                  char buff[512];
   1.100                  int p=0;
   1.101 @@ -742,7 +762,9 @@
   1.102  
   1.103  bool cPluginPremiereEpg::Start(void)
   1.104  {
   1.105 +#if APIVERSNUM < 10507
   1.106    RegisterI18n(Phrases);
   1.107 +#endif
   1.108    for(int i=0; i<MAXDVBDEVICES; i++) {
   1.109      cDevice *dev=cDevice::GetDevice(i);
   1.110      if(dev) {