WordPress.org

Plugin Directory

Changeset 167415


Ignore:
Timestamp:
10/27/09 00:14:23 (8 years ago)
Author:
johncoswell
Message:

imports, credits, comicpress 2.8 theme, and edit posts feedback

Location:
what-did-they-say/trunk
Files:
7 added
20 edited

Legend:

Unmodified
Added
Removed
  • what-did-they-say/trunk/classes/WDTSDisplayFilters.inc

    r161898 r167415  
    2020   */ 
    2121  function the_media_transcript($transcript, $content = "") { 
    22     $content = do_shortcode($transcript); 
     22    $content = $this->_process_transcript_content($transcript); 
     23    return array($transcript, '<div class="wdts-transcript">' . $content . '</div>'); 
     24  } 
     25 
     26  function the_approved_credit($user, $content = '') { 
     27    return '<div class="wdts-approved-credit">' . sprintf(__('Written by %1$s <strong>%2$s</strong>', 'what-did-they-say'), get_avatar($user->ID, 20), $user->display_name) . '</div>'; 
     28  } 
     29 
     30  function _process_transcript_content($transcript) { 
     31    $content = do_shortcode($transcript['transcript']); 
    2332    $options = get_option('what-did-they-say-options'); 
    2433    if ($options['use_nl2br']) { $content = nl2br($content); } 
    25     return array($transcript, '<div class="wdts-transcript">' . $content . '</div>'); 
     34 
     35    if ($options['show_approved_credit']) { 
     36      $user = get_userdata($transcript['user_id']); 
     37      if (!empty($user)) { 
     38        $content .= apply_filters('the_approved_credit', $user, ''); 
     39      } 
     40    } 
     41 
     42    return $content; 
    2643  } 
    2744 
  • what-did-they-say/trunk/classes/WDTSTranscript.inc

    r163529 r167415  
    3535   */ 
    3636  function save_transcript($transcript_info) { 
    37     $user = wp_get_current_user(); 
    38     if (!empty($user)) { 
    39       $transcript_info = (array)$transcript_info; 
    40       $transcript_info['user_id'] = $user->ID; 
     37    $transcript_info = (array)$transcript_info; 
     38    if (!isset($transcript_info['user_id'])) { 
     39      $user = wp_get_current_user(); 
     40      if (!empty($user)) { 
     41        $transcript_info['user_id'] = $user->ID; 
     42      } 
     43    } 
     44    if (isset($transcript_info['user_id'])) { 
    4145      unset($transcript_info['key']); 
    4246 
  • what-did-they-say/trunk/classes/WhatDidTheySayAdmin.inc

    r163529 r167415  
    2020    'excerpt_distance' => 30, 
    2121    'use_nl2br' => false, 
     22    'show_approved_credit' => true, 
    2223    'high_insertion_level' => false, 
    2324    'hide_transcript' => array( 
     
    3940  var $is_ajax = false; 
    4041 
     42  var $_import_chunk_size = 20; 
     43 
    4144  /** 
    4245   * Initialize the admin interface. 
     
    5659  } 
    5760   
    58   /** 
    59    * Initialize the object. 
    60    */ 
    61   function init() { 
    62         global $wpdb; 
    63          
     61  function _set_up_capabilities() { 
    6462    // set up capabilities 
    6563    $this->capabilities = array( 
     
    6866      'change_languages'      => __('Change the available languages', 'what-did-they-say') 
    6967    ); 
    70  
     68  } 
     69   
     70  /** 
     71   * Initialize the object. 
     72   */ 
     73  function init() { 
     74    global $wpdb; 
     75     
     76    $this->_set_up_capabilities(); 
     77     
    7178    // does this copy of wdts?!? reference new options? 
    7279    $options = get_option('what-did-they-say-options'); 
     
    135142      array('the_media_transcript', 2), 
    136143      array('the_language_name', 2), 
     144      array('the_approved_credit', 2), 
    137145      array('the_matching_transcript_excerpts', 3), 
    138146      array('the_transcript_language_name', 3), 
     
    174182    } 
    175183 
    176         // sidebar widget 
    177       wp_register_sidebar_widget('what-did-they-say', __('What Did They Say?!? Transcript', 'what-did-they-say'), array(&$this, 'transcript_sidebar_widget'), array('description' => __('Show the transcript for the current post.', 'what-did-they-say'))); 
     184    // sidebar widget 
     185    wp_register_sidebar_widget('what-did-they-say', __('What Did They Say?!? Transcript', 'what-did-they-say'), array(&$this, 'transcript_sidebar_widget'), array('description' => __('Show the transcript for the current post.', 'what-did-they-say'))); 
    178186 
    179187    // handle form submission 
     
    204212      if (isset($_REQUEST['wdts']['_nonce'])) { 
    205213        if (wp_verify_nonce($_REQUEST['wdts']['_nonce'], 'what-did-they-say')) { 
    206                     if (($_REQUEST['wdts']['post_id'] <= 0) && ($_POST['post_ID'] > 0)) { 
    207                         $_REQUEST['wdts']['post_id'] = $_POST['post_ID']; 
    208                     } 
     214          if (($_REQUEST['wdts']['post_id'] <= 0) && ($_POST['post_ID'] > 0)) { 
     215            $_REQUEST['wdts']['post_id'] = $_POST['post_ID']; 
     216          } 
    209217 
    210218          $this->handle_update($_REQUEST['wdts']); 
     
    218226      $this->transcript_count = (int)$wpdb->get_var($wpdb->prepare("SELECT count($wpdb->postmeta.meta_key) FROM $wpdb->postmeta WHERE $wpdb->postmeta.meta_key = 'approved_transcripts'")); 
    219227    } 
    220     } 
    221  
    222     /** Widget **/ 
    223  
    224     function transcript_sidebar_widget() { 
    225         transcripts_display(); 
    226     } 
     228  } 
     229 
     230  /** Widget **/ 
     231 
     232  function transcript_sidebar_widget() { 
     233    transcripts_display(); 
     234  } 
    227235 
    228236  /** Actions **/ 
     
    316324      ); 
    317325 
     326      if (current_user_can('approve_transcriptions')) { 
     327        add_submenu_page( 
     328          'tools.php', 
     329          __('Import Transcripts', 'what-did-they-say'), 
     330          __('Import Transcripts', 'what-did-they-say'), 
     331          'approve_transcriptions', 
     332          'import-transcripts', 
     333          array(&$this, 'manage_import_transcripts') 
     334        ); 
     335      } 
     336 
    318337      if ($plugin_page == "manage-wdts") { 
    319338        $this->read_language_file(); 
     
    323342        $this->plugin_data = get_plugin_data($this->_parent_file); 
    324343 
    325                 if ($this->transcript_count == 0) { 
    326                     $this->notices[] = __('Welcome to <strong>What Did They Say?!?</strong> To get started, read the <strong>Introduction</strong>, and then <strong>How It Works</strong>.', 'what-did-they-say'); 
    327                 } elseif ($this->transcript_count < 10) { 
    328                     $this->notices[] = __('Is <strong>What Did They Say?!?</strong> working out for you? Let John know via email (<a href="mailto:john@coswellproductions.com">john@coswellproductions.com</a>) or Twitter (<a href="http://twitter.com/JohnBintz">@JohnBintz</a>).', 'what-did-they-say'); 
    329                 } 
     344        if ($this->transcript_count == 0) { 
     345          $this->notices[] = __('Welcome to <strong>What Did They Say?!?</strong> To get started, read the <strong>Introduction</strong>, and then <strong>How It Works</strong>.', 'what-did-they-say'); 
     346        } elseif ($this->transcript_count < 10) { 
     347          $this->notices[] = __('Is <strong>What Did They Say?!?</strong> working out for you? Let John know via email (<a href="mailto:john@coswellproductions.com">john@coswellproductions.com</a>) or Twitter (<a href="http://twitter.com/JohnBintz">@JohnBintz</a>).', 'what-did-they-say'); 
     348        } 
     349      } 
     350 
     351      if (strpos($pagenow, 'edit') === 0) { 
     352        wp_enqueue_style('wdts-admin', plugin_dir_url(dirname(__FILE__)) . 'css/wdts-admin.css'); 
    330353      } 
    331354 
     
    363386        wp_enqueue_script('edit-transcripts', plugin_dir_url(dirname(__FILE__)) . 'js/edit-transcripts.js', array('scriptaculous-effects', 'wdts-script')); 
    364387 
    365           add_action('wp_head', array(&$this, 'include_editor_javascript')); 
    366             } 
     388        add_action('wp_head', array(&$this, 'include_editor_javascript')); 
     389      } 
    367390    } 
    368391  } 
     
    391414 
    392415    array_splice($keys, $index, 0, array('transcripts')); 
    393     array_splice($values, $index, 0, __('Trans')); 
     416    array_splice($values, $index, 0, __('<span class="wdts-posts-queued-icon">&nbsp;</span> <span class="wdts-posts-approved-icon">&nbsp;</span>')); 
    394417 
    395418    return array_combine($keys, $values); 
     
    401424  function manage_posts_custom_column($name, $post_id) { 
    402425    if ($name === "transcripts") { 
    403       $queued_transcript_object = new WDTSQueuedTranscript($post_id); 
    404  
    405       if (($queued_count = $queued_transcript_object->count()) > 0) { 
    406         printf(__('%s queued', 'what-did-they-say'), $queued_count); 
     426      foreach (array('Queued' => __('Queued', 'what-did-they-say'), 'Approved' => __('Approved', 'what-did-they-say')) as $type => $label) { 
     427        $class = "WDTS${type}Transcript"; 
     428        $transcript_object = new $class($post_id); 
     429        $style = strtolower($type); 
     430 
     431        $count = 0; 
     432        foreach ($transcript_object->get_transcripts() as $language => $transcript_info) { 
     433          if (!empty($transcript_info['transcript'])) { $count++; } 
     434        } 
     435 
     436        if ($count > 0) { 
     437          echo "<span title=\"${label}\" class=\"wdts-posts-${style}-icon\">" . $count . '</span>&nbsp;'; 
     438        } 
    407439      } 
    408440    } 
     
    546578  } 
    547579 
     580  function _get_transcript_posts() { 
     581    global $wpdb; 
     582     
     583    return $wpdb->get_col("SELECT post_id FROM $wpdb->postmeta WHERE meta_key = 'transcript'"); 
     584  } 
     585 
     586  function import_transcripts($language_code) { 
     587    $modified = 0; 
     588    $post_ids = $this->_get_transcript_posts(); 
     589    if (!empty($post_ids)) { 
     590      $modified = 0; 
     591      foreach ($post_ids as $post_id) { 
     592        if ($transcript = get_post_meta($post_id, 'transcript', true)) { 
     593          $approved_transcript_manager = new WDTSApprovedTranscript($post_id); 
     594          $approved_transcript_manager->save_transcript(array( 
     595            'language' => $language_code, 
     596            'transcript' => $transcript 
     597          )); 
     598        } 
     599        delete_post_meta($post_id, 'transcript'); 
     600 
     601        $modified++; 
     602         
     603        if ($modified >= $this->_import_chunk_size) { break; } 
     604      } 
     605    } 
     606    return $modified; 
     607  } 
    548608 
    549609  /** Handle data updates **/ 
     610 
     611  /** 
     612   * Filter input for harmful things. 
     613   * @param string|array $node Either a string or an array of strings to process. 
     614   * @return string|array Either a processed string or an array of processed strings. 
     615   */ 
     616  function _clean_child($node) { 
     617    if (is_array($node)) { 
     618      $new_nodes = array(); 
     619      foreach ($node as $key => $n) { 
     620        $new_nodes[$key] = $this->_clean_child($n); 
     621      } 
     622      return $new_nodes; 
     623    } else { 
     624      $options = get_option('what-did-they-say-options'); 
     625 
     626      $node = (string)$node; 
     627      foreach (array('script', 'style', 'link') as $tag) { $node = preg_replace("#<${tag}.*/${tag}>#", '', $node); } 
     628      if (!$options['allow_html']) { $node = strip_tags($node); } 
     629 
     630      return $node; 
     631    } 
     632  } 
    550633 
    551634  /** 
     
    562645        if (!empty($result)) { $this->notices[] = $result; } 
    563646      } 
    564     } 
    565   } 
    566  
    567   function _clean_child($node) { 
    568     if (is_array($node)) { 
    569       $new_nodes = array(); 
    570       foreach ($node as $key => $n) { 
    571         $new_nodes[$key] = $this->_clean_child($n); 
    572       } 
    573       return $new_nodes; 
    574     } else { 
    575       $options = get_option('what-did-they-say-options'); 
    576  
    577       $node = (string)$node; 
    578       foreach (array('script', 'style', 'link') as $tag) { $node = preg_replace("#<${tag}.*/${tag}>#", '', $node); } 
    579       if (!$options['allow_html']) { $node = strip_tags($node); } 
    580        
    581       return $node; 
    582647    } 
    583648  } 
     
    617682  } 
    618683 
     684  function handle_update_import_legacy($info) { 
     685    $this->is_ajax = true; 
     686 
     687    $result = $this->import_transcripts($info['language']); 
     688    if ($result === false) { $result = 'false'; } 
     689 
     690    header("X-JSON: '${result}'"); 
     691    exit(0); 
     692  } 
     693 
    619694  function handle_update_update_queued_transcript($info) { 
    620695    $this->is_ajax = true; 
     
    650725      $approved_transcript_manager = new WDTSApprovedTranscript($info['post_id']); 
    651726 
    652       foreach ($info['transcripts'] as $language => $transcript) { 
     727      foreach ($info['transcripts'] as $language => $transcript_info) { 
    653728        $approved_transcript_manager->save_transcript(array( 
    654           'language' => $language, 
    655           'transcript' => $transcript 
     729          'language'   => $language, 
     730          'transcript' => $transcript_info['transcript'], 
     731          'user_id'    => $transcript_info['user_id'] 
    656732        )); 
    657733      } 
     
    688764 
    689765  /** 
     766   * Approve a transcript. 
     767   */ 
     768  function _approve_transcript($post_id, $key) { 
     769    $approved_transcript_manager = new WDTSApprovedTranscript($post_id); 
     770    $queued_transcript_manager   = new WDTSQueuedTranscript($post_id); 
     771 
     772    if (($transcript = $queued_transcript_manager->delete_transcript_by_key($key)) !== false) { 
     773      $approved_transcript_manager->save_transcript($transcript); 
     774      return true; 
     775    } 
     776    return false; 
     777  } 
     778 
     779  /** 
    690780   * Handle transcript approval. 
    691781   */ 
     
    694784 
    695785    if (current_user_can('approve_transcriptions')) { 
    696       $approved_transcript_manager = new WDTSApprovedTranscript($info['post_id']); 
    697       $queued_transcript_manager  = new WDTSQueuedTranscript($info['post_id']); 
    698        
    699       if (($transcript = $queued_transcript_manager->delete_transcript_by_key($info['key'])) !== false) { 
    700         $approved_transcript_manager->save_transcript($transcript); 
    701         return; 
    702       } 
    703       header('HTTP/1.1 500 Internal Server Error'); 
     786      if (!$this->_approve_transcript($info['post_id'], $info['key'])) { 
     787        header('HTTP/1.1 500 Internal Server Error'); 
     788      } 
    704789      return; 
    705790    } 
     
    733818      $options = get_option('what-did-they-say-options'); 
    734819 
    735       foreach (array('load_default_styles', 'use_nl2br', 'transcript_effects', 'allow_html') as $field) { $options[$field] = isset($info[$field]);  } 
     820      foreach (array('load_default_styles', 'use_nl2br', 'transcript_effects', 'allow_html', 'show_approved_credit') as $field) { $options[$field] = isset($info[$field]);  } 
    736821      $options['excerpt_distance'] = !empty($info['excerpt_distance']) ? $info['excerpt_distance'] : 30; 
    737822      foreach (array_keys($options['hide_transcript']) as $type) { 
     
    848933 
    849934      foreach ((array)$users as $user) { 
    850         $user_capabilities = array(); 
    851  
    852         foreach (array_keys($this->capabilities) as $key) { 
    853           if (isset($info['user_capabilities'][$user->ID])) { 
    854             if (isset($info['user_capabilities'][$user->ID][$key])) { 
    855               $user_capabilities[$key] = true; 
    856             } 
    857           } 
    858         } 
    859  
    860         if (!empty($user_capabilities)) { 
    861           update_usermeta($user->ID, 'transcript_capabilities', $user_capabilities); 
    862         } else { 
    863           delete_usermeta($user->ID, 'transcript_capabilities'); 
     935        if (isset($info['user_capabilities'][$user->ID])) { 
     936          $this->_update_user_perms($user->ID, $info['user_capabilities'][$user->ID]); 
    864937        } 
    865938      } 
     
    868941    } 
    869942    return $updated; 
     943  } 
     944   
     945  function _update_user_perms($user_id, $perms) { 
     946    $user_capabilities = array(); 
     947 
     948    foreach (array_keys($this->capabilities) as $key) { 
     949      if (isset($perms[$key])) { $user_capabilities[$key] = true; } 
     950    } 
     951     
     952    if (!empty($user_capabilities)) { 
     953      update_usermeta($user_id, 'transcript_capabilities', $user_capabilities); 
     954    } else { 
     955      delete_usermeta($user_id, 'transcript_capabilities'); 
     956    } 
    870957  } 
    871958 
     
    9901077    $suggested_amount = 20 + ($this->transcript_count * 0.1); 
    9911078 
    992     $users = $wpdb->get_results("SELECT ID, user_login from $wpdb->users ORDER BY user_login"); 
     1079    $users = $wpdb->get_results("SELECT ID, user_login, display_name from $wpdb->users ORDER BY user_login"); 
    9931080 
    9941081    include('partials/admin.inc'); 
     
    9991086   */ 
    10001087  function manage_transcriptions_meta_box() { 
    1001     global $post; 
     1088    global $post, $wpdb; 
    10021089 
    10031090    $options = get_option('what-did-they-say-options'); 
     
    10151102    $language_options = new WDTSLanguageOptions(); 
    10161103 
     1104    $users = $wpdb->get_results("SELECT ID, user_login, display_name from $wpdb->users ORDER BY user_login"); 
     1105 
    10171106    $nonce = wp_create_nonce('what-did-they-say'); 
    10181107    include('partials/meta-box.inc'); 
    10191108  } 
     1109   
     1110  function manage_import_transcripts() { 
     1111    global $wpdb; 
     1112     
     1113    $options = get_option('what-did-they-say-options'); 
     1114     
     1115    $legacy_transcript_count = (int)$wpdb->get_var($wpdb->prepare("SELECT count($wpdb->postmeta.meta_key) FROM $wpdb->postmeta WHERE $wpdb->postmeta.meta_key = 'transcript'")); 
     1116    $nonce = wp_create_nonce('what-did-they-say'); 
     1117 
     1118    include('partials/import-transcripts.inc'); 
     1119  } 
    10201120} 
    10211121 
  • what-did-they-say/trunk/classes/partials/_default-styles.inc

    r163323 r167415  
    3737      </label> 
    3838 
     39      <label> 
     40        <input type="checkbox" 
     41               name="wdts[show_approved_credit]" 
     42               value="yes" 
     43               <?php echo ($options['show_approved_credit'] ? 'checked="checked"' : '') ?> /> 
     44        <?php _e('Give credit to the transcriber on approved transcripts.', 'what-did-they-say') ?> 
     45      </label> 
     46       
    3947      <label> 
    4048        <input type="checkbox" 
  • what-did-they-say/trunk/classes/partials/_show-sample-transcript.inc

    r163323 r167415  
    66  </head> 
    77  <body> 
    8     <div class="wdts-transcript"> 
    9       <?php echo do_shortcode(implode("\n", $sample_transcript)) ?> 
    10     </div> 
     8    <?php echo end(apply_filters('the_media_transcript', array('transcript' => implode("\n", $sample_transcript), 'user_id' => 1), '')) ?> 
    119  </body> 
    1210</html> 
  • what-did-they-say/trunk/classes/partials/meta-box.inc

    r163323 r167415  
    4949          if ($transcript['language'] == $code) { $approved_transcript_text = $transcript['transcript']; break; } 
    5050        } ?> 
    51         <textarea class="edit-transcript" name="wdts[transcripts][<?php echo $code ?>]" style="display: none; width: 99%; height: 200px"><?php echo $approved_transcript_text ?></textarea> 
     51        <div class="edit-transcript-<?php echo $code ?> edit-transcript" style="display: none"> 
     52          <textarea name="wdts[transcripts][<?php echo $code ?>][transcript]" style="width: 99%; height: 200px"><?php echo $approved_transcript_text ?></textarea> 
     53          <?php _e('User to credit: ', 'what-did-they-say') ?> 
     54          <select name="wdts[transcripts][<?php echo $code ?>][user_id]"> 
     55            <?php foreach ($users as $user) { ?> 
     56              <option value="<?php echo $user->ID ?>" 
     57                      <?php echo ($user->ID == $transcript['user_id']) ? 'selected="selected"' : '' ?>><?php echo $user->display_name ?> (<?php echo $user->user_login ?>)</option> 
     58            <?php } ?> 
     59          </select> 
     60          <?php 
     61           
     62          ?> 
     63        </div> 
    5264      <?php } ?> 
    5365      <?php if (!is_admin()) { ?> 
  • what-did-they-say/trunk/css/wdts-admin.css

    r163323 r167415  
    106106} 
    107107 
     108.widefat .column-transcripts { 
     109  padding-top: 8px; 
     110} 
     111 
     112.wdts-posts-queued-icon, .wdts-posts-approved-icon { 
     113  background: url(../graphics/transcript-icon-background.png) 1px 1px no-repeat; 
     114  font-size: 9px; 
     115  padding: 2px 6px; 
     116  color: white 
     117} 
     118.wdts-posts-queued-icon { 
     119  background-color: #c99 
     120} 
     121 
     122.wdts-posts-approved-icon { 
     123  background-color: #aaa 
     124} 
     125 
    108126body { 
    109127  overflow-x: hidden 
  • what-did-they-say/trunk/css/wdts-defaults.css

    r161898 r167415  
    4040  margin: 0.5em 0; 
    4141} 
     42 
     43.wdts-approved-credit { 
     44  padding-top: 3px; 
     45  margin-top: 3px; 
     46  border-top: dotted #666 1px 
     47} 
  • what-did-they-say/trunk/js/edit-transcripts.js

    r163323 r167415  
    1515      if (language_selector) { 
    1616        var switch_transcripts = function() { 
    17           container.select('.edit-transcript').each(function(t) { 
    18             (t.name == 'wdts[transcripts][' + $F(language_selector) + ']') ? t.show() : t.hide(); 
     17          container.select('.edit-transcript').each(function(h) { 
     18            h.hasClassName('edit-transcript-' + $F(language_selector)) ? h.show() : h.hide(); 
    1919          }); 
    2020        }; 
     
    120120        }; 
    121121 
    122         container.select('textarea').each(function(t) { 
     122        container.select('textarea, select').each(function(t) { 
    123123          parameters[t.name] = t.value; 
    124124        }); 
  • what-did-they-say/trunk/readme.txt

    r163529 r167415  
    55Requires at least: 2.8 
    66Tested up to: 2.9 
    7 Stable tag: 0.9.2 
     7Stable tag: 0.9.3 
    88 
    99What Did They Say?!? lets your users provide multilingual transcriptions to your media, in their language, quickly and securely. 
     
    2525 
    2626**What Did They Say?!?** puts a menu item under Options. It also adds a meta box to post editing and a new column in the Edit Posts lists which 
    27 indicates how many transcripts are awaiting approval. 
     27indicates how many transcripts are awaiting approval. The Import Transcripts option appears under Tools. 
    2828 
    2929== Frequently Asked Questions == 
     
    3333On the WDTS *Introduction* page, check **Enable automatic transcript embedding**. Some themes do not play nicely with this embedding 
    3434by default, so you may be asked to enable **Inject transcripts at level 100 instead of level 15** on the *Misc. Options* page. 
     35 
     36= How do I import my legacy transcripts? = 
     37 
     38If you were using a theme, such as ComicPress, that supports storing transcripts in the "transcript" post metadata field, you can now 
     39import all of those transcripts into What Did They Say?!? and gain improved control over your transcripts. Under the Tools menu is an 
     40option called "Import Transcripts." You can import your legacy transcripts from there. Be sure to back up your database first! 
    3541 
    3642= How do I add transcript excerpts to search results? = 
     
    6672* Users who can approve transcripts can also directly edit the approved transcripts. 
    6773* If a user submits a transcript to the queue, they can delete it before it's approved. 
     74* When approved, the original submitter will be given credit for each approved transcript that's displayed. 
    6875 
    6976Permissions are handed out in two ways and are set under the *Capabilities* tab. 
     
    93100== Changelog == 
    94101 
     102= 0.9.3 = 
     103* Import from legacy transcript systems implemented. 
     104* Can now show the name and Gravatar of the user who created the approved transcripts. 
     105* New filter theme to match ComicPress 2.8. 
     106* Improved visual feedback for number of queued/approved transcripts per post. 
    95107= 0.9.2 = 
    96108* JavaScript bugfixes. 
  • what-did-they-say/trunk/test/WDTSLanguageOptionsTest.php

    r161898 r167415  
    33require_once('PHPUnit/Framework.php'); 
    44require_once(dirname(__FILE__) . '/../classes/WDTSLanguageOptions.inc'); 
    5 require_once(dirname(__FILE__) . '/../../mockpress/mockpress.php'); 
     5require_once('MockPress/mockpress.php'); 
    66 
    77class WDTSLanguageOptionsTest extends PHPUnit_Framework_TestCase { 
  • what-did-they-say/trunk/test/WDTSTranscriptOptionsTest.php

    r161898 r167415  
    22 
    33require_once('PHPUnit/Framework.php'); 
    4 require_once(dirname(__FILE__) . '/../../mockpress/mockpress.php'); 
     4require_once('MockPress/mockpress.php'); 
    55require_once(dirname(__FILE__) . '/../classes/WDTSTranscriptOptions.inc'); 
    66 
  • what-did-they-say/trunk/test/WDTSTranscriptTest.php

    r161898 r167415  
    22 
    33require_once('PHPUnit/Framework.php'); 
    4 require_once(dirname(__FILE__) . '/../../mockpress/mockpress.php'); 
     4require_once('MockPress/mockpress.php'); 
    55require_once(dirname(__FILE__) . '/../classes/WDTSTranscript.inc'); 
    66 
     
    4242    $this->w->save_transcript(array( 
    4343      'language' => 'en', 
    44       'transcript' => 'this is another transcript' 
     44      'transcript' => 'this is another transcript', 
     45      'user_id' => 2 
    4546    )); 
    4647 
     
    5051          'language' => 'en', 
    5152          'transcript' => 'this is another transcript', 
    52           'user_id' => 1, 
     53          'user_id' => 2, 
    5354          'key' => 0 
    5455        )  
     
    6970          'language' => 'en', 
    7071          'transcript' => 'this is another transcript', 
    71           'user_id' => 1, 
     72          'user_id' => 2, 
    7273          'key' => 0 
    7374        ),  
     
    9697          'language' => 'en', 
    9798          'transcript' => 'this is another transcript', 
    98           'user_id' => 1, 
     99          'user_id' => 2, 
    99100          'key' => 0 
    100101        ),  
  • what-did-they-say/trunk/test/WhatDidTheySayAdminTest.php

    r163529 r167415  
    22 
    33require_once('PHPUnit/Framework.php'); 
    4 require_once(dirname(__FILE__) . '/../../mockpress/mockpress.php'); 
     4require_once('MockPress/mockpress.php'); 
     5 
    56require_once(dirname(__FILE__) . '/../classes/WhatDidTheySayAdmin.inc'); 
     7require_once(dirname(__FILE__) . '/../classes/WDTSTranscriptClasses.inc'); 
    68 
    79class WhatDidTheySayAdminTest extends PHPUnit_Framework_TestCase { 
     
    6264    ), $result['capabilities']); 
    6365  } 
     66   
     67  function testUpdateUserPerms() { 
     68    $admin = new WhatDidTheySayAdmin(); 
     69    $admin->_set_up_capabilities(); 
     70 
     71    update_usermeta(1, 'transcript_capabilities', array( 
     72      'submit_transcriptions' => true 
     73    )); 
     74 
     75    $admin->_update_user_perms(1, array( 
     76      'approve_transcriptions' => 'yes' 
     77    )); 
     78     
     79    $this->assertEquals(array( 
     80      'approve_transcriptions' => true 
     81    ), get_usermeta(1, 'transcript_capabilities')); 
     82  } 
     83 
     84  /** 
     85   * Integration. 
     86   */ 
     87  function testPerformImport() { 
     88    $admin = $this->getMock('WhatDidTheySayAdmin', array('_get_transcript_posts')); 
     89    $admin->_import_chunk_size = 1; 
     90 
     91    wp_insert_user(array('ID' => 1)); 
     92    wp_set_current_user(1); 
     93 
     94    _set_user_capabilities('approve_transcriptions'); 
     95 
     96    for ($i = 1; $i <= 2; ++$i) { 
     97      wp_insert_post(array('ID' => $i)); 
     98      update_post_meta($i, "transcript", "this is my transcript"); 
     99    } 
     100 
     101    $admin->expects($this->once())->method('_get_transcript_posts')->will($this->returnValue(array(1,2))); 
     102    $this->assertEquals(1, $admin->import_transcripts('en')); 
     103 
     104    $this->assertEquals('', get_post_meta(1, "transcript", true)); 
     105    $this->assertEquals('this is my transcript', get_post_meta(2, "transcript", true)); 
     106 
     107    $this->assertEquals(array( 
     108      array( 
     109        'language' => 'en', 
     110        'transcript' => 'this is my transcript', 
     111        'user_id' => 1, 
     112        'key' => 0 
     113      ) 
     114    ), get_post_meta(1, 'approved_transcripts', true)); 
     115 
     116    delete_post_meta(2, 'transcript'); 
     117 
     118    $admin = $this->getMock('WhatDidTheySayAdmin', array('_get_transcript_posts')); 
     119    $admin->_import_chunk_size = 1; 
     120     
     121    $admin->expects($this->once())->method('_get_transcript_posts')->will($this->returnValue(array())); 
     122 
     123    $this->assertEquals(0, $admin->import_transcripts('en')); 
     124  } 
     125 
     126  function providerTestCleanChild() { 
     127    return array( 
     128      array( 
     129        array( 
     130          'script' => '<script>remove</script>test', 
     131          'style' => '<style>remove</style>test', 
     132          'link' => '<link>remove</link>test', 
     133          'keep' => '<b>remove</b>test' 
     134        ), 
     135        array( 
     136          'allow_html' => true 
     137        ), 
     138        array( 
     139          'script' => 'test', 
     140          'style' => 'test', 
     141          'link' => 'test', 
     142          'keep' => '<b>remove</b>test' 
     143        ), 
     144      ), 
     145      array( 
     146        array( 
     147          'remove' => '<b>remove</b>test', 
     148          'children' => array( 
     149            'alsoremove' => '<i>remove</i>test' 
     150          ) 
     151        ), 
     152        array( 
     153          'allow_html' => false 
     154        ), 
     155        array( 
     156          'remove' => 'removetest', 
     157          'children' => array( 
     158            'alsoremove' => 'removetest', 
     159          ) 
     160        ), 
     161      ), 
     162    ); 
     163  } 
     164 
     165  /** 
     166   * @dataProvider providerTestCleanChild 
     167   */ 
     168  function testCleanChild($nodes, $options, $expected_result) { 
     169    $admin = new WhatDidTheySayAdmin(); 
     170     
     171    update_option('what-did-they-say-options', $options); 
     172 
     173    $this->assertEquals($expected_result, $admin->_clean_child($nodes)); 
     174  } 
     175 
     176  function testApproveTranscript() { 
     177    wp_insert_post(array('ID' => 1)); 
     178    update_post_meta(1, "queued_transcripts", array( 
     179      array( 
     180        'language' => 'en', 
     181        'transcript' => 'This is a test transcript', 
     182        'user_id' => 5, 
     183        'key' => 1 
     184      ) 
     185    )); 
     186 
     187    $admin = new WhatDidTheySayAdmin(); 
     188 
     189    $this->assertTrue($admin->_approve_transcript(1, 1)); 
     190 
     191    $this->assertEquals( 
     192      array( 
     193        array( 
     194          'language' => 'en', 
     195          'transcript' => 'This is a test transcript', 
     196          'user_id' => 5, 
     197          'key' => 0 
     198        ) 
     199      ), 
     200      get_post_meta(1, "approved_transcripts", true) 
     201    ); 
     202 
     203    $this->assertEquals( 
     204      array(), get_post_meta(1, "queued_transcripts", true) 
     205    ); 
     206  } 
    64207} 
    65208 
  • what-did-they-say/trunk/test/selenium/TestCreatePost.html

    r161898 r167415  
    2424<tr> 
    2525    <td>type</td> 
    26     <td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td> 
     26    <td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td> 
    2727    <td>This is a test transcript inserted on creation.</td> 
    2828</tr> 
     
    4949<tr> 
    5050    <td>assertValue</td> 
    51     <td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td> 
     51    <td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td> 
    5252    <td>This is a test transcript inserted on creation.</td> 
    5353</tr> 
  • what-did-they-say/trunk/test/selenium/TestMetaboxApprovedTranscriptEditing.html

    r161898 r167415  
    44<head profile="http://selenium-ide.openqa.org/profiles/test-case"> 
    55<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> 
    6 <link rel="selenium.base" href="" /> 
     6<link rel="selenium.base" href="http://comicpress.local/" /> 
    77<title>TestMetaboxApprovedTranscriptEditing</title> 
    88</head> 
     
    2424<tr> 
    2525    <td>assertVisible</td> 
    26     <td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td> 
     26    <td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td> 
    2727    <td></td> 
    2828</tr> 
    2929<tr> 
    3030    <td>type</td> 
    31     <td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td> 
     31    <td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td> 
    3232    <td>This is a test transcript.</td> 
     33</tr> 
     34<tr> 
     35    <td>select</td> 
     36    <td>//select[@name=&quot;wdts[transcripts][en][user_id]&quot;]</td> 
     37    <td>index=1</td> 
    3338</tr> 
    3439<tr> 
     
    3944<tr> 
    4045    <td>assertVisible</td> 
    41     <td>//textarea[@name=&quot;wdts[transcripts][de]&quot;]</td> 
     46    <td>//textarea[@name=&quot;wdts[transcripts][de][transcript]&quot;]</td> 
    4247    <td></td> 
    4348</tr> 
    4449<tr> 
    4550    <td>assertNotVisible</td> 
    46     <td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td> 
     51    <td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td> 
    4752    <td></td> 
    4853</tr> 
    4954<tr> 
    5055    <td>type</td> 
    51     <td>//textarea[@name=&quot;wdts[transcripts][de]&quot;]</td> 
     56    <td>//textarea[@name=&quot;wdts[transcripts][de][transcript]&quot;]</td> 
    5257    <td>Dies ist ein Test transcript.</td> 
     58</tr> 
     59<tr> 
     60    <td>select</td> 
     61    <td>//select[@name=&quot;wdts[transcripts][de][user_id]&quot;]</td> 
     62    <td>index=2</td> 
    5363</tr> 
    5464<tr> 
     
    6474<tr> 
    6575    <td>assertValue</td> 
    66     <td>//textarea[@name=&quot;wdts[transcripts][en]&quot;]</td> 
     76    <td>//textarea[@name=&quot;wdts[transcripts][en][transcript]&quot;]</td> 
    6777    <td>This is a test transcript.</td> 
    6878</tr> 
    6979<tr> 
    7080    <td>assertValue</td> 
    71     <td>//textarea[@name=&quot;wdts[transcripts][de]&quot;]</td> 
     81    <td>//textarea[@name=&quot;wdts[transcripts][de][transcript]&quot;]</td> 
    7282    <td>Dies ist ein Test transcript.</td> 
     83</tr> 
     84<tr> 
     85    <td>assertSelectedIndex</td> 
     86    <td>//select[@name=&quot;wdts[transcripts][en][user_id]&quot;]</td> 
     87    <td>1</td> 
     88</tr> 
     89<tr> 
     90    <td>assertSelectedIndex</td> 
     91    <td>//select[@name=&quot;wdts[transcripts][de][user_id]&quot;]</td> 
     92    <td>2</td> 
    7393</tr> 
    7494 
  • what-did-they-say/trunk/test/selenium/TestResetOptions.html

    r163323 r167415  
    2424<tr> 
    2525    <td>pause</td> 
    26     <td>500</td> 
     26    <td>1000</td> 
    2727    <td></td> 
    2828</tr> 
  • what-did-they-say/trunk/test/selenium/TestSuiteWhatDidTheySay.html

    r163323 r167415  
    1010<tr><td><b>Test Suite</b></td></tr> 
    1111<tr><td><a href="TestActivation.html">TestActivation</a></td></tr> 
     12<tr><td><a href="TestJavaScriptWorking.html">TestJavaScriptWorking</a></td></tr> 
    1213<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr> 
    1314<tr><td><a href="TestChangeCapabilities.html">TestChangeCapabilities</a></td></tr> 
     
    2526<tr><td><a href="TestCreatePost.html">TestCreatePost</a></td></tr> 
    2627<tr><td><a href="TestMetaboxApprovedTranscriptEditing.html">TestMetaboxApprovedTranscriptEditing</a></td></tr> 
     28<tr><td><a href="TestInlineEditor.html">TestInlineEditor</a></td></tr> 
    2729<tr><td><a href="TestDeletePost.html">TestDeletePost</a></td></tr> 
    2830<tr><td><a href="TestThemeEditorWorks.html">TestThemeEditorWorks</a></td></tr> 
  • what-did-they-say/trunk/what-did-they-say.php

    r163529 r167415  
    44Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/ 
    55Description: Manage and display text transcriptions of comics, videos, or other media. 
    6 Version: 0.9.2 
     6Version: 0.9.3 
    77Author: John Bintz 
    88Author URI: http://www.coswellproductions.com/wordpress/ 
     
    2424along with this program; if not, write to the Free Software 
    2525Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA 
     26 
    2627*/ 
    2728 
     
    136137  if (!empty($post_transcripts)) { 
    137138    foreach ($post_transcripts as $transcript) { 
    138       extract($transcript, EXTR_PREFIX_ALL, "transcript"); 
    139       $transcript_transcript = trim($transcript_transcript); 
    140       if (!empty($transcript_transcript)) { 
    141         $transcripts[$transcript_language] = $transcript_transcript; 
     139      $transcript_text = trim($transcript['transcript']); 
     140      if (!empty($transcript_text)) { 
     141        $transcripts[$transcript['language']] = $transcript; 
    142142      } 
    143143    } 
     
    164164 
    165165        foreach ($transcripts as $code => $transcript) { 
    166           $transcript = end(apply_filters('the_media_transcript', $transcript)); 
     166          $transcript_text = end(apply_filters('the_media_transcript', $transcript, '')); 
    167167 
    168168          $output[] = end(apply_filters('the_transcript_language_name', $language_format, $code, '')); 
    169169 
    170           $output[] = '<div class="transcript-holder ' . $code . '">' . $transcript . '</div>'; 
     170          $output[] = '<div class="transcript-holder ' . $code . '">' . $transcript_text . '</div>'; 
    171171        } 
    172172        $output[] = '</div>'; 
     
    182182 */ 
    183183function the_media_transcript_queue_editor() { 
    184   global $post; 
     184  global $post, $wpdb; 
    185185 
    186186  if (current_user_can('submit_transcriptions')) { 
     
    192192 
    193193    $options = get_option('what-did-they-say-options'); 
     194 
     195    $users = $wpdb->get_results("SELECT ID, user_login from $wpdb->users ORDER BY user_login"); 
    194196 
    195197    foreach (array('Approved', 'Queued') as $name) { 
  • what-did-they-say/trunk/what-did-they-say.pot

    r163539 r167415  
    77msgid "" 
    88msgstr "" 
    9 "Project-Id-Version: what-did-they-say 0.9.2\n" 
     9"Project-Id-Version: what-did-they-say 0.9.3\n" 
    1010"Report-Msgid-Bugs-To: \n" 
    11 "POT-Creation-Date: 2009-10-14 22:03-0400\n" 
     11"POT-Creation-Date: 2009-10-26 19:46-0400\n" 
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" 
     
    1717"Content-Transfer-Encoding: 8bit\n" 
    1818 
    19 #: what-did-they-say.php:218 
     19#: transcript-filters/comicpress/ComicPressTranscriptBasic.inc:33 
     20#: transcript-filters/comicpress/ComicPressTranscriptBasic.inc:34 
     21msgid "Transcript" 
     22msgstr "" 
     23 
     24#: what-did-they-say.php:220 
    2025msgid "Edit/Add Transcripts" 
    2126msgstr "" 
    2227 
    23 #: what-did-they-say.php:221 
     28#: what-did-they-say.php:223 
    2429#, php-format 
    2530msgid "%d queued" 
     
    8287msgstr "" 
    8388 
    84 #: classes/partials/meta-box.inc:37 
     89#: classes/partials/meta-box.inc:37 classes/partials/import-transcripts.inc:23 
    8590#: classes/partials/_manage-queued-transcripts.inc:35 
    8691msgid "Language:" 
    8792msgstr "" 
    8893 
    89 #: classes/partials/meta-box.inc:54 
     94#: classes/partials/meta-box.inc:53 
     95msgid "User to credit: " 
     96msgstr "" 
     97 
     98#: classes/partials/meta-box.inc:66 
    9099msgid "Update All Transcripts" 
    91100msgstr "" 
    92101 
    93 #: classes/partials/meta-box.inc:58 
     102#: classes/partials/meta-box.inc:70 
    94103msgid "" 
    95104"Uh oh...there's a problem with automatic embedding. Enable &quot;Inject " 
     
    204213 
    205214#: classes/partials/_default-styles.inc:44 
     215msgid "Give credit to the transcriber on approved transcripts." 
     216msgstr "" 
     217 
     218#: classes/partials/_default-styles.inc:52 
    206219msgid "" 
    207220"Allow HTML in transcripts. If disabled, only short codes are allowed, which " 
     
    210223msgstr "" 
    211224 
    212 #: classes/partials/_default-styles.inc:47 
     225#: classes/partials/_default-styles.inc:55 
    213226msgid "By default, transcripts should start hidden on these types of pages:" 
    214227msgstr "" 
    215228 
    216 #: classes/partials/_default-styles.inc:55 
     229#: classes/partials/_default-styles.inc:63 
    217230msgid "On the home page" 
    218231msgstr "" 
    219232 
    220 #: classes/partials/_default-styles.inc:63 
     233#: classes/partials/_default-styles.inc:71 
    221234msgid "On individual post pages" 
    222235msgstr "" 
    223236 
    224 #: classes/partials/_default-styles.inc:69 
     237#: classes/partials/_default-styles.inc:77 
    225238msgid "Use the selected transcript filter set:" 
    226239msgstr "" 
    227240 
    228 #: classes/partials/_default-styles.inc:71 
     241#: classes/partials/_default-styles.inc:79 
    229242#: classes/partials/_change-languages.inc:19 
    230243msgid "(default)" 
    231244msgstr "" 
    232245 
    233 #: classes/partials/_default-styles.inc:82 
     246#: classes/partials/_default-styles.inc:90 
    234247msgid "" 
    235248"(Hint: Use the above to preview your filters and style while you work on " 
     
    237250msgstr "" 
    238251 
    239 #: classes/partials/_default-styles.inc:84 
     252#: classes/partials/_default-styles.inc:92 
    240253msgid "Change default styles" 
    241254msgstr "" 
    242255 
    243 #: classes/partials/_default-styles.inc:87 
     256#: classes/partials/_default-styles.inc:95 
    244257msgid "Transcript Line Breaks" 
    245258msgstr "" 
    246259 
    247 #: classes/partials/_default-styles.inc:89 
     260#: classes/partials/_default-styles.inc:97 
    248261msgid "" 
    249262"If you're using short codes or HTML to construct your transcripts, you don't " 
     
    251264msgstr "" 
    252265 
    253 #: classes/partials/_default-styles.inc:91 
     266#: classes/partials/_default-styles.inc:99 
    254267msgid "Default CSS Selectors Information" 
    255268msgstr "" 
    256269 
    257 #: classes/partials/_default-styles.inc:93 
     270#: classes/partials/_default-styles.inc:101 
    258271msgid "" 
    259272"By default, the following CSS selectors are used by <strong>What Did They " 
     
    261274msgstr "" 
    262275 
    263 #: classes/partials/_default-styles.inc:96 
     276#: classes/partials/_default-styles.inc:104 
    264277msgid "The container for the transcript" 
    265278msgstr "" 
    266279 
    267 #: classes/partials/_default-styles.inc:98 
     280#: classes/partials/_default-styles.inc:106 
    268281msgid "Character dialog" 
    269282msgstr "" 
    270283 
    271 #: classes/partials/_default-styles.inc:100 
     284#: classes/partials/_default-styles.inc:108 
    272285msgid "The character's name" 
    273286msgstr "" 
    274287 
    275 #: classes/partials/_default-styles.inc:102 
     288#: classes/partials/_default-styles.inc:110 
    276289msgid "" 
    277290"The direction the characters is speaking in/from (off-stage, to another " 
     
    279292msgstr "" 
    280293 
    281 #: classes/partials/_default-styles.inc:104 
     294#: classes/partials/_default-styles.inc:112 
    282295msgid "A scene heading" 
    283296msgstr "" 
    284297 
    285 #: classes/partials/_default-styles.inc:106 
     298#: classes/partials/_default-styles.inc:114 
    286299msgid "Action within a scene" 
    287300msgstr "" 
    288301 
    289 #: classes/partials/_default-styles.inc:109 
     302#: classes/partials/_default-styles.inc:117 
    290303msgid "Overriding Filters" 
    291304msgstr "" 
    292305 
    293 #: classes/partials/_default-styles.inc:112 
     306#: classes/partials/_default-styles.inc:120 
    294307msgid "" 
    295308"If you want to override how transcript HTML is structured, create hooks in " 
     
    297310msgstr "" 
    298311 
    299 #: classes/partials/_default-styles.inc:113 
     312#: classes/partials/_default-styles.inc:121 
    300313msgid "" 
    301314"All of them return the same parameters that are passed in as an array(), " 
     
    303316msgstr "" 
    304317 
    305 #: classes/partials/_default-styles.inc:118 
     318#: classes/partials/_default-styles.inc:126 
    306319msgid "Output <code>$content</code> contains the HTML for dialog blocks." 
    307320msgstr "" 
    308321 
    309 #: classes/partials/_default-styles.inc:121 
     322#: classes/partials/_default-styles.inc:129 
    310323msgid "Output <code>$content</code> contains the HTML for scene action blocks." 
    311324msgstr "" 
    312325 
    313 #: classes/partials/_default-styles.inc:124 
     326#: classes/partials/_default-styles.inc:132 
    314327msgid "" 
    315328"Ouptut <code>$content</code> contains the HTML for scene heading blocks." 
    316329msgstr "" 
    317330 
    318 #: classes/partials/_default-styles.inc:127 
     331#: classes/partials/_default-styles.inc:135 
    319332msgid "Output <code>$content</code> contains the HTML for a single transcript." 
    320333msgstr "" 
    321334 
    322 #: classes/partials/_default-styles.inc:130 
     335#: classes/partials/_default-styles.inc:138 
    323336msgid "Output <code>$content</code> contains the HTML for a language name." 
    324337msgstr "" 
    325338 
    326 #: classes/partials/_default-styles.inc:133 
     339#: classes/partials/_default-styles.inc:141 
    327340msgid "" 
    328341"Output <code>$content</code> contains the HTML for all the provided <code>" 
     
    330343msgstr "" 
    331344 
    332 #: classes/partials/_default-styles.inc:136 
     345#: classes/partials/_default-styles.inc:144 
    333346#, php-format 
    334347msgid "" 
     
    338351msgstr "" 
    339352 
    340 #: classes/partials/_default-styles.inc:139 
     353#: classes/partials/_default-styles.inc:147 
    341354msgid "" 
    342355"Output <code>$content</code> contains three elements: a container (.wdts-" 
     
    345358msgstr "" 
    346359 
    347 #: classes/partials/_default-styles.inc:143 
     360#: classes/partials/_default-styles.inc:151 
    348361msgid "" 
    349362"A filter in your theme that would change the display of langauge names would " 
     
    447460msgstr "" 
    448461 
     462#: classes/partials/import-transcripts.inc:4 
     463#: classes/WhatDidTheySayAdmin.inc:329 classes/WhatDidTheySayAdmin.inc:330 
     464msgid "Import Transcripts" 
     465msgstr "" 
     466 
     467#: classes/partials/import-transcripts.inc:6 
     468msgid "" 
     469"Import transcripts from your current setup into <strong>What Did They Say?!?" 
     470"</strong>" 
     471msgstr "" 
     472 
     473#: classes/partials/import-transcripts.inc:7 
     474msgid "" 
     475"Currently, the import supports pulling transcripts from the &quot;" 
     476"transcript&quot; metadata field." 
     477msgstr "" 
     478 
     479#: classes/partials/import-transcripts.inc:8 
     480msgid "" 
     481"This field is used by some webcomic themes to store and display transcripts." 
     482msgstr "" 
     483 
     484#: classes/partials/import-transcripts.inc:12 
     485msgid "<strong>You have no legacy transcripts!</strong>" 
     486msgstr "" 
     487 
     488#: classes/partials/import-transcripts.inc:16 
     489#, php-format 
     490msgid "" 
     491"<strong>You have %d legacy transcripts.</strong< Click the button below to " 
     492"import them into <strong>What Did They Say?!?</strong>" 
     493msgstr "" 
     494 
     495#: classes/partials/import-transcripts.inc:17 
     496msgid "<strong>Make sure you've backed up your database first!</strong>" 
     497msgstr "" 
     498 
     499#: classes/partials/import-transcripts.inc:18 
     500msgid "" 
     501"<strong>This will also overwrite any WDTS? transcripts that are already in " 
     502"the chosen language for each modified post!</strong>" 
     503msgstr "" 
     504 
     505#: classes/partials/import-transcripts.inc:32 
     506msgid "Import transcripts" 
     507msgstr "" 
     508 
     509#: classes/partials/import-transcripts.inc:51 
     510msgid "imported..." 
     511msgstr "" 
     512 
     513#: classes/partials/import-transcripts.inc:66 
     514msgid "There was a problem during import!" 
     515msgstr "" 
     516 
     517#: classes/partials/import-transcripts.inc:73 
     518msgid "Import complete! Total number imported:" 
     519msgstr "" 
     520 
    449521#: classes/partials/_change-languages.inc:3 classes/partials/admin.inc:7 
    450522msgid "Languages" 
     
    509581 
    510582#: classes/partials/admin.inc:15 classes/partials/admin.inc:51 
    511 #: classes/WhatDidTheySayAdmin.inc:311 classes/WhatDidTheySayAdmin.inc:312 
     583#: classes/WhatDidTheySayAdmin.inc:319 classes/WhatDidTheySayAdmin.inc:320 
    512584msgid "What Did They Say?!?" 
    513585msgstr "" 
     
    786858msgstr "" 
    787859 
     860#: classes/WhatDidTheySayAdmin.inc:64 
     861msgid "Submit transcriptions to a post" 
     862msgstr "" 
     863 
     864#: classes/WhatDidTheySayAdmin.inc:65 
     865msgid "Approve transcriptions to a post" 
     866msgstr "" 
     867 
    788868#: classes/WhatDidTheySayAdmin.inc:66 
    789 msgid "Submit transcriptions to a post" 
    790 msgstr "" 
    791  
    792 #: classes/WhatDidTheySayAdmin.inc:67 
    793 msgid "Approve transcriptions to a post" 
    794 msgstr "" 
    795  
    796 #: classes/WhatDidTheySayAdmin.inc:68 
    797869msgid "Change the available languages" 
    798870msgstr "" 
    799871 
    800 #: classes/WhatDidTheySayAdmin.inc:177 
     872#: classes/WhatDidTheySayAdmin.inc:185 
    801873msgid "What Did They Say?!? Transcript" 
    802874msgstr "" 
    803875 
    804 #: classes/WhatDidTheySayAdmin.inc:177 
     876#: classes/WhatDidTheySayAdmin.inc:185 
    805877msgid "Show the transcript for the current post." 
    806878msgstr "" 
    807879 
    808 #: classes/WhatDidTheySayAdmin.inc:326 
     880#: classes/WhatDidTheySayAdmin.inc:345 
    809881msgid "" 
    810882"Welcome to <strong>What Did They Say?!?</strong> To get started, read the " 
     
    812884msgstr "" 
    813885 
    814 #: classes/WhatDidTheySayAdmin.inc:328 
     886#: classes/WhatDidTheySayAdmin.inc:347 
    815887msgid "" 
    816888"Is <strong>What Did They Say?!?</strong> working out for you? Let John know " 
     
    820892msgstr "" 
    821893 
    822 #: classes/WhatDidTheySayAdmin.inc:349 
     894#: classes/WhatDidTheySayAdmin.inc:372 
    823895msgid "Manage Transcripts" 
    824896msgstr "" 
    825897 
    826 #: classes/WhatDidTheySayAdmin.inc:393 
    827 msgid "Trans" 
    828 msgstr "" 
    829  
    830 #: classes/WhatDidTheySayAdmin.inc:406 
    831 #, php-format 
    832 msgid "%s queued" 
    833 msgstr "" 
    834  
    835 #: classes/WhatDidTheySayAdmin.inc:599 
     898#: classes/WhatDidTheySayAdmin.inc:416 
     899msgid "" 
     900"<span class=\"wdts-posts-queued-icon\">&nbsp;</span> <span class=\"wdts-" 
     901"posts-approved-icon\">&nbsp;</span>" 
     902msgstr "" 
     903 
     904#: classes/WhatDidTheySayAdmin.inc:426 
     905msgid "Queued" 
     906msgstr "" 
     907 
     908#: classes/WhatDidTheySayAdmin.inc:426 
     909msgid "Approved" 
     910msgstr "" 
     911 
     912#: classes/WhatDidTheySayAdmin.inc:664 
    836913msgid "Transcript added to queue." 
    837914msgstr "" 
    838915 
    839 #: classes/WhatDidTheySayAdmin.inc:601 
     916#: classes/WhatDidTheySayAdmin.inc:666 
    840917msgid "Transcript not added to queue." 
    841918msgstr "" 
    842919 
    843 #: classes/WhatDidTheySayAdmin.inc:677 
     920#: classes/WhatDidTheySayAdmin.inc:753 
    844921msgid "Transcripts updated." 
    845922msgstr "" 
    846923 
    847 #: classes/WhatDidTheySayAdmin.inc:746 
     924#: classes/WhatDidTheySayAdmin.inc:831 
    848925msgid "Default styles option updated." 
    849926msgstr "" 
    850927 
    851 #: classes/WhatDidTheySayAdmin.inc:762 
     928#: classes/WhatDidTheySayAdmin.inc:847 
    852929msgid "Insertion level updated." 
    853930msgstr "" 
    854931 
    855 #: classes/WhatDidTheySayAdmin.inc:780 
     932#: classes/WhatDidTheySayAdmin.inc:865 
    856933#, php-format 
    857934msgid "%s deleted." 
    858935msgstr "" 
    859936 
    860 #: classes/WhatDidTheySayAdmin.inc:782 
     937#: classes/WhatDidTheySayAdmin.inc:867 
    861938msgid "Language not deleted!" 
    862939msgstr "" 
    863940 
    864 #: classes/WhatDidTheySayAdmin.inc:789 
     941#: classes/WhatDidTheySayAdmin.inc:874 
    865942#, php-format 
    866943msgid "%s added." 
    867944msgstr "" 
    868945 
    869 #: classes/WhatDidTheySayAdmin.inc:791 
     946#: classes/WhatDidTheySayAdmin.inc:876 
    870947msgid "Language not added!" 
    871948msgstr "" 
    872949 
    873 #: classes/WhatDidTheySayAdmin.inc:797 
     950#: classes/WhatDidTheySayAdmin.inc:882 
    874951#, php-format 
    875952msgid "%s set as default." 
    876953msgstr "" 
    877954 
    878 #: classes/WhatDidTheySayAdmin.inc:799 
     955#: classes/WhatDidTheySayAdmin.inc:884 
    879956msgid "Language not set as default!" 
    880957msgstr "" 
    881958 
    882 #: classes/WhatDidTheySayAdmin.inc:805 
     959#: classes/WhatDidTheySayAdmin.inc:890 
    883960#, php-format 
    884961msgid "%1$s renamed to %2$s." 
    885962msgstr "" 
    886963 
    887 #: classes/WhatDidTheySayAdmin.inc:807 
     964#: classes/WhatDidTheySayAdmin.inc:892 
    888965msgid "Language not renamed!" 
    889966msgstr "" 
    890967 
    891 #: classes/WhatDidTheySayAdmin.inc:830 
     968#: classes/WhatDidTheySayAdmin.inc:915 
    892969msgid "User capabilities updated." 
    893970msgstr "" 
    894971 
    895 #: classes/WhatDidTheySayAdmin.inc:867 
     972#: classes/WhatDidTheySayAdmin.inc:940 
    896973msgid "Per-user permissions updated." 
    897974msgstr "" 
    898975 
    899 #: classes/WhatDidTheySayAdmin.inc:882 
     976#: classes/WhatDidTheySayAdmin.inc:969 
    900977msgid "<strong>What Did They Say?!?</strong> options reset." 
    901978msgstr "" 
    902979 
    903 #: classes/WhatDidTheySayAdmin.inc:901 
     980#: classes/WhatDidTheySayAdmin.inc:988 
    904981msgid "<strong>What Did They Say?!?</strong> core options changed." 
    905982msgstr "" 
    906983 
    907 #: classes/WDTSDisplayFilters.inc:52 
     984#: classes/WDTSDisplayFilters.inc:27 
     985#, php-format 
     986msgid "Written by %1$s <strong>%2$s</strong>" 
     987msgstr "" 
     988 
     989#: classes/WDTSDisplayFilters.inc:69 
    908990#, php-format 
    909991msgid "Transcript: %s" 
    910992msgstr "" 
    911993 
    912 #: classes/WDTSDisplayFilters.inc:81 
     994#: classes/WDTSDisplayFilters.inc:98 
    913995#, php-format 
    914996msgid "%s transcript excerpt:" 
Note: See TracChangeset for help on using the changeset viewer.