show number queued and gravatars

This commit is contained in:
John Bintz 2009-10-14 21:17:47 -04:00
parent 09565a8f0a
commit df970bc6ae
4 changed files with 36 additions and 24 deletions

View File

@ -19,9 +19,7 @@
<?php if (!empty($transcripts_to_show)) { ?> <?php if (!empty($transcripts_to_show)) { ?>
<h3 style="margin-top: 0.5em"><?php echo $title ?></h3> <h3 style="margin-top: 0.5em"><?php echo $title ?></h3>
<?php <?php
foreach ($transcripts_to_show as $transcript) { foreach ($transcripts_to_show as $transcript) { include('_display-queued-transcript.inc'); }
include('_display-queued-transcript.inc');
}
?> ?>
<?php } ?> <?php } ?>

View File

@ -2,9 +2,11 @@
<input type="hidden" name="wdts[language]" value="<?php echo $transcript['language'] ?>" /> <input type="hidden" name="wdts[language]" value="<?php echo $transcript['language'] ?>" />
<input type="hidden" name="wdts[post_id]" value="<?php echo $post->ID ?>" /> <input type="hidden" name="wdts[post_id]" value="<?php echo $post->ID ?>" />
<input type="hidden" name="wdts[key]" value="<?php echo $transcript['key'] ?>" /> <input type="hidden" name="wdts[key]" value="<?php echo $transcript['key'] ?>" />
<p><?php <p>
<?php
echo get_avatar($transcript['user_id'], 20);
printf( printf(
__('From <strong>%s</strong> in <strong>%s</strong>:', 'what-did-they-say'), __('<strong>%s</strong> in <strong>%s</strong>:', 'what-did-they-say'),
$transcript_user->display_name, $transcript_user->display_name,
$language_options->get_language_name($transcript['language']) $language_options->get_language_name($transcript['language'])
) )

View File

@ -214,7 +214,15 @@ function the_media_transcript_queue_editor() {
if ($show_editor) { if ($show_editor) {
?> ?>
<div style="display:none"> <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> <span id="wdts-opener-<?php echo $id = md5(rand()) ?>">[
<a href="#"><?php _e('Edit/Add Transcripts', 'what-did-they-say') ?></a>
<?php if (current_user_can('approve_transcriptions')) {
$queued_count = count($queued_transcript_object->get_transcripts());
if ($queued_count > 0) { ?>
(<strong><?php printf(__('%d queued', 'what-did-they-say'), $queued_count) ?></strong>)
<?php }
} ?>
]</span>
</div> </div>
<noscript> <noscript>
<p>JavaScript is required to edit transcripts.</p> <p>JavaScript is required to edit transcripts.</p>

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: what-did-they-say 0.9.1\n" "Project-Id-Version: what-did-they-say 0.9.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-10-14 20:49-0400\n" "POT-Creation-Date: 2009-10-14 21:08-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -659,7 +659,7 @@ msgid ""
"Give specified users permissions above and beyond their role permissions." "Give specified users permissions above and beyond their role permissions."
msgstr "" msgstr ""
#: classes/partials/_capabilities.inc:64 #: classes/partials/_capabilities.inc:71
msgid "Update per-user permissions" msgid "Update per-user permissions"
msgstr "" msgstr ""
@ -818,71 +818,75 @@ msgstr ""
msgid "Manage Transcripts" msgid "Manage Transcripts"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:551 #: classes/WhatDidTheySayAdmin.inc:563
msgid "Transcript added to queue." msgid "Transcript added to queue."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:553 #: classes/WhatDidTheySayAdmin.inc:565
msgid "Transcript not added to queue." msgid "Transcript not added to queue."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:629 #: classes/WhatDidTheySayAdmin.inc:641
msgid "Transcripts updated." msgid "Transcripts updated."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:698 #: classes/WhatDidTheySayAdmin.inc:710
msgid "Default styles option updated." msgid "Default styles option updated."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:714 #: classes/WhatDidTheySayAdmin.inc:726
msgid "Insertion level updated." msgid "Insertion level updated."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:732 #: classes/WhatDidTheySayAdmin.inc:744
#, php-format #, php-format
msgid "%s deleted." msgid "%s deleted."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:734 #: classes/WhatDidTheySayAdmin.inc:746
msgid "Language not deleted!" msgid "Language not deleted!"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:741 #: classes/WhatDidTheySayAdmin.inc:753
#, php-format #, php-format
msgid "%s added." msgid "%s added."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:743 #: classes/WhatDidTheySayAdmin.inc:755
msgid "Language not added!" msgid "Language not added!"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:749 #: classes/WhatDidTheySayAdmin.inc:761
#, php-format #, php-format
msgid "%s set as default." msgid "%s set as default."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:751 #: classes/WhatDidTheySayAdmin.inc:763
msgid "Language not set as default!" msgid "Language not set as default!"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:757 #: classes/WhatDidTheySayAdmin.inc:769
#, php-format #, php-format
msgid "%1$s renamed to %2$s." msgid "%1$s renamed to %2$s."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:759 #: classes/WhatDidTheySayAdmin.inc:771
msgid "Language not renamed!" msgid "Language not renamed!"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:782 #: classes/WhatDidTheySayAdmin.inc:794
msgid "User capabilities updated." msgid "User capabilities updated."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:801 #: classes/WhatDidTheySayAdmin.inc:831
msgid "Per-user permissions updated."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:846
msgid "<strong>What Did They Say?!?</strong> options reset." msgid "<strong>What Did They Say?!?</strong> options reset."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:820 #: classes/WhatDidTheySayAdmin.inc:865
msgid "<strong>What Did They Say?!?</strong> core options changed." msgid "<strong>What Did They Say?!?</strong> core options changed."
msgstr "" msgstr ""