Ticket #4125: 4125-mythweb-deaf-signing.diff

File 4125-mythweb-deaf-signing.diff, 2.2 KB (added by Nick Morrott <<knowledgejunkie [at] gmail [dot] com>>, 16 years ago)

Adds deaf-signing support to MythWeb (v1)

  • mythplugins/mythweb/modules/_shared/lang/English_GB.lang

     
    166166"Date"
    167167"Date Formats"
    168168"Deactivated"
     169"Deaf Signed"
     170    Deaf Signed
    169171"Default"
    170172"Default MythVideo View"
    171173"Delete"
  • mythplugins/mythweb/modules/_shared/lang/English.lang

     
    163163"Date"
    164164"Date Formats"
    165165"Deactivated"
     166"Deaf Signed"
     167    Deaf Signed
    166168"Default"
    167169"Default MythVideo View"
    168170"Delete"
  • mythplugins/mythweb/modules/tv/includes/objects/Program.php

     
    7777    var $closecaptioned  = 0;
    7878    var $has_subtitles   = 0;
    7979    var $subtitled       = 0;
     80    var $deaf_signed     = 0;
    8081
    8182// The rest of these variables (which really need to get organized) are
    8283// calculated or queried separately from the db.
     
    247248        $this->closecaptioned = $this->subtitletype    & 0x01;
    248249        $this->has_subtitles  = $this->subtitletype    & 0x02;
    249250        $this->subtitled      = $this->subtitletype    & 0x04;
     251        $this->deaf_signed    = $this->subtitletype    & 0x08;
    250252    // Generate the star string, since mysql has issues with REPEAT() and
    251253    // decimals, and the backend doesn't do it for us, anyway.
    252254        $this->starstring = str_repeat(star_character, intVal($this->stars * max_stars));
     
    337339            $details[] = t('Subtitles Available');
    338340        if ($this->subtitled)
    339341            $details[] = t('Subtitled');
     342        if ($this->deaf_signed)
     343            $details[] = t('Deaf Signed');
    340344        if ($this->stereo)
    341345            $details[] = t('Stereo');
    342346        if ($this->mono)