improve feedback on whether or not transcripts can be edited
This commit is contained in:
parent
16a2900fef
commit
53ed1df9f8
@ -202,6 +202,16 @@ function the_media_transcript_queue_editor() {
|
||||
$nonce = wp_create_nonce('what-did-they-say');
|
||||
$new_transcript_id = md5(rand());
|
||||
|
||||
$show_editor = false;
|
||||
if (current_user_can('submit_transcriptions')) {
|
||||
if (current_user_can('approve_transcriptions')) {
|
||||
$show_editor = true;
|
||||
} else {
|
||||
$show_editor = $transcript_options->are_new_transcripts_allowed();
|
||||
}
|
||||
}
|
||||
|
||||
if ($show_editor) {
|
||||
?>
|
||||
<div style="display:none">
|
||||
<span id="wdts-opener-<?php echo $id = md5(rand()) ?>">[ <a href="#"><?php _e('Edit/Add Transcripts', 'what-did-they-say') ?></a> ]</span>
|
||||
@ -239,6 +249,7 @@ function the_media_transcript_queue_editor() {
|
||||
</script>
|
||||
<?php }
|
||||
}
|
||||
}
|
||||
|
||||
function wdts_header_wrapper($text) {
|
||||
if (is_admin()) {
|
||||
|
@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: what-did-they-say 0.9.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2009-10-14 07:49-0400\n"
|
||||
"POT-Creation-Date: 2009-10-14 07:54-0400\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
|
Loading…
Reference in New Issue
Block a user