tweak some stuff

This commit is contained in:
John Bintz 2009-10-06 07:11:09 -04:00
parent 33588e1ba4
commit d651800bd8
4 changed files with 75 additions and 68 deletions

View File

@ -884,8 +884,9 @@ class WhatDidTheySayAdmin {
$options = get_option('what-did-they-say-options'); $options = get_option('what-did-they-say-options');
$nonce = wp_create_nonce('what-did-they-say'); $nonce = wp_create_nonce('what-did-they-say');
$transcript_count = (int)$wpdb->get_var($wpdb->prepare("SELECT count($wpdb->postmeta.meta_key) FROM $wpdb->postmeta WHERE $wpdb->postmeta.meta_key = 'approved_transcripts'"));
$suggested_amount = 20 + ((int)$wpdb->get_var($wpdb->prepare("SELECT count($wpdb->postmeta.meta_key) FROM $wpdb->postmeta WHERE $wpdb->postmeta.meta_key = 'approved_transcripts'")) * 0.1); $suggested_amount = 20 + ($transcript_count * 0.1);
include('partials/admin.inc'); include('partials/admin.inc');
} }

View File

@ -33,7 +33,7 @@
name="wdts[use_nl2br]" name="wdts[use_nl2br]"
value="yes" value="yes"
<?php echo ($options['use_nl2br'] ? 'checked="checked"' : '') ?> /> <?php echo ($options['use_nl2br'] ? 'checked="checked"' : '') ?> />
<?php _e('Turn transcript line breaks into HTML new lines (nl2br())', 'what-did-they-say') ?> <?php _e('Turn transcript line breaks into HTML new lines (uses <a href="http://us2.php.net/nl2br" target="external">nl2br()</a>)', 'what-did-they-say') ?>
</label> </label>
<label> <label>
@ -41,10 +41,10 @@
name="wdts[allow_html]" name="wdts[allow_html]"
value="yes" value="yes"
<?php echo ($options['allow_html'] ? 'checked="checked"' : '') ?> /> <?php echo ($options['allow_html'] ? 'checked="checked"' : '') ?> />
<?php _e('Allow HTML in transcripts. If disabled, only short codes are allowed. Script and style tags are always filtered out.', 'what-did-they-say') ?> <?php _e('Allow HTML in transcripts. If disabled, only short codes are allowed, which is <strong>recommended</strong>. Script, style, and link tags are <strong>always</strong> filtered out.', 'what-did-they-say') ?>
</label> </label>
<p>By default, transcripts should be hidden on these types of pages:</p> <p><?php _e('By default, transcripts should start hidden on these types of pages:', 'what-did-they-say') ?></p>
<div style="margin: 0 2em"> <div style="margin: 0 2em">
<label> <label>

View File

@ -4,7 +4,7 @@
'capabilities' => array(__('Capabilities', 'what-did-they-say'), 'edit_users'), 'capabilities' => array(__('Capabilities', 'what-did-they-say'), 'edit_users'),
'default-styles' => array(__('Styles', 'what-did-they-say'), 'edit_themes'), 'default-styles' => array(__('Styles', 'what-did-they-say'), 'edit_themes'),
'change-languages' => array(__('Languages', 'what-did-they-say'), 'change_languages'), 'change-languages' => array(__('Languages', 'what-did-they-say'), 'change_languages'),
'shortcodes-info' => array(__('Shortcodes Info', 'what-did-they-say'), 'submit_transcriptions'), 'shortcodes-info' => array(__('Short codes Info', 'what-did-they-say'), 'submit_transcriptions'),
'misc-options' => array(__('Misc. Options', 'what-did-they-say'), 'manage_options'), 'misc-options' => array(__('Misc. Options', 'what-did-they-say'), 'manage_options'),
); );
@ -45,7 +45,7 @@
<p> <p>
<a href="<?php echo $PluginURI ?>"><?php _e('What Did They Say?!?', 'what-did-they-say') ?></a> Version <?php echo $Version ?> is &copy; 2009 <?php echo $Author ?>. <a href="<?php echo $PluginURI ?>"><?php _e('What Did They Say?!?', 'what-did-they-say') ?></a> Version <?php echo $Version ?> is &copy; 2009 <?php echo $Author ?>.
<?php printf(__('Might I suggest a $%0.2f donation?', 'what-did-they-say'), $suggested_amount) ?> <?php printf(__('Might I suggest a $%1$0.2f donation for your %2$d transcripts?', 'what-did-they-say'), $suggested_amount, $transcript_count) ?>
</p> </p>
</div> </div>
</div> </div>

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: what-did-they-say 0.1\n" "Project-Id-Version: what-did-they-say 0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-10-04 23:19-0400\n" "POT-Creation-Date: 2009-10-06 07:01-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"
@ -16,11 +16,11 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: what-did-they-say.php:213 #: what-did-they-say.php:214
msgid "Edit/Add Transcripts" msgid "Edit/Add Transcripts"
msgstr "" msgstr ""
#: what-did-they-say.php:215 #: what-did-they-say.php:220
msgid "Manage Transcripts:" msgid "Manage Transcripts:"
msgstr "" msgstr ""
@ -145,11 +145,11 @@ msgstr ""
msgid "Transcript update failure!" msgid "Transcript update failure!"
msgstr "" msgstr ""
#: classes/partials/_editor-script.inc:16 classes/WhatDidTheySayAdmin.inc:153 #: classes/partials/_editor-script.inc:16 classes/WhatDidTheySayAdmin.inc:264
msgid "Show transcripts" msgid "Show transcripts"
msgstr "" msgstr ""
#: classes/partials/_editor-script.inc:17 classes/WhatDidTheySayAdmin.inc:154 #: classes/partials/_editor-script.inc:17 classes/WhatDidTheySayAdmin.inc:265
msgid "Hide transcripts" msgid "Hide transcripts"
msgstr "" msgstr ""
@ -199,108 +199,114 @@ msgstr ""
msgid "Turn transcript line breaks into HTML new lines (nl2br())" msgid "Turn transcript line breaks into HTML new lines (nl2br())"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:47 #: classes/partials/_default-styles.inc:44
msgid "On the home page" msgid ""
"Allow HTML in transcripts. If disabled, only short codes are allowed. Script "
"and style tags are always filtered out."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:55 #: classes/partials/_default-styles.inc:55
msgid "On individual post pages" msgid "On the home page"
msgstr ""
#: classes/partials/_default-styles.inc:58
msgid "Change default styles"
msgstr ""
#: classes/partials/_default-styles.inc:61
msgid "Transcript Line Breaks"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:63 #: classes/partials/_default-styles.inc:63
msgid "On individual post pages"
msgstr ""
#: classes/partials/_default-styles.inc:66
msgid "Change default styles"
msgstr ""
#: classes/partials/_default-styles.inc:69
msgid "Transcript Line Breaks"
msgstr ""
#: classes/partials/_default-styles.inc:71
msgid "" msgid ""
"If you're using short codes or HTML to construct your transcripts, you don't " "If you're using short codes or HTML to construct your transcripts, you don't "
"need to enable transcript line breaks." "need to enable transcript line breaks."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:65 #: classes/partials/_default-styles.inc:73
msgid "Default CSS Selectors Information" msgid "Default CSS Selectors Information"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:67 #: classes/partials/_default-styles.inc:75
msgid "" msgid ""
"By default, the following CSS selectors are used by <strong>What Did They " "By default, the following CSS selectors are used by <strong>What Did They "
"Say?!?</strong>:" "Say?!?</strong>:"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:70 #: classes/partials/_default-styles.inc:78
msgid "The container for the transcript" msgid "The container for the transcript"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:72 #: classes/partials/_default-styles.inc:80
msgid "Character dialog" msgid "Character dialog"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:74 #: classes/partials/_default-styles.inc:82
msgid "The character's name" msgid "The character's name"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:76 #: classes/partials/_default-styles.inc:84
msgid "" msgid ""
"The direction the characters is speaking in/from (off-stage, to another " "The direction the characters is speaking in/from (off-stage, to another "
"character)" "character)"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:78 #: classes/partials/_default-styles.inc:86
msgid "A scene heading" msgid "A scene heading"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:80 #: classes/partials/_default-styles.inc:88
msgid "Action within a scene" msgid "Action within a scene"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:83 #: classes/partials/_default-styles.inc:91
msgid "Overriding Filters" msgid "Overriding Filters"
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:86 #: classes/partials/_default-styles.inc:94
msgid "" msgid ""
"If you want to override how transcript HTML is structured, create hooks in " "If you want to override how transcript HTML is structured, create hooks in "
"your theme that implement the following filters." "your theme that implement the following filters."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:87 #: classes/partials/_default-styles.inc:95
msgid "" msgid ""
"All of them return the same parameters that are passed in as an array(), " "All of them return the same parameters that are passed in as an array(), "
"with the return <code>$content</code> containing the filter output." "with the return <code>$content</code> containing the filter output."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:92 #: classes/partials/_default-styles.inc:100
msgid "Output <code>$content</code> contains the HTML for dialog blocks." msgid "Output <code>$content</code> contains the HTML for dialog blocks."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:95 #: classes/partials/_default-styles.inc:103
msgid "Output <code>$content</code> contains the HTML for scene action blocks." msgid "Output <code>$content</code> contains the HTML for scene action blocks."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:98 #: classes/partials/_default-styles.inc:106
msgid "" msgid ""
"Ouptut <code>$content</code> contains the HTML for scene heading blocks." "Ouptut <code>$content</code> contains the HTML for scene heading blocks."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:101 #: classes/partials/_default-styles.inc:109
msgid "Output <code>$content</code> contains the HTML for a single transcript." msgid "Output <code>$content</code> contains the HTML for a single transcript."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:104 #: classes/partials/_default-styles.inc:112
msgid "Output <code>$content</code> contains the HTML for a language name." msgid "Output <code>$content</code> contains the HTML for a language name."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:107 #: classes/partials/_default-styles.inc:115
msgid "" msgid ""
"Output <code>$content</code> contains the HTML for all the provided <code>" "Output <code>$content</code> contains the HTML for all the provided <code>"
"$transcripts</code> that match <code>$search_string</code>." "$transcripts</code> that match <code>$search_string</code>."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:110 #: classes/partials/_default-styles.inc:118
#, php-format #, php-format
msgid "" msgid ""
"Output <code>$content</code> contains the sprintf() format string for how " "Output <code>$content</code> contains the sprintf() format string for how "
@ -308,14 +314,14 @@ msgid ""
"code>." "code>."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:113 #: classes/partials/_default-styles.inc:121
msgid "" msgid ""
"Output <code>$content</code> contains three elements: a container (.wdts-" "Output <code>$content</code> contains three elements: a container (.wdts-"
"transcript-opener), and an opener &amp; closer in the container (.wdts-" "transcript-opener), and an opener &amp; closer in the container (.wdts-"
"opener and .wdts-container)." "opener and .wdts-container)."
msgstr "" msgstr ""
#: classes/partials/_default-styles.inc:117 #: classes/partials/_default-styles.inc:125
msgid "" msgid ""
"A filter in your theme that would change the display of langauge names would " "A filter in your theme that would change the display of langauge names would "
"look like the following:" "look like the following:"
@ -475,7 +481,7 @@ msgid "Misc. Options"
msgstr "" msgstr ""
#: classes/partials/admin.inc:14 classes/partials/admin.inc:47 #: classes/partials/admin.inc:14 classes/partials/admin.inc:47
#: classes/WhatDidTheySayAdmin.inc:775 classes/WhatDidTheySayAdmin.inc:776 #: classes/WhatDidTheySayAdmin.inc:207 classes/WhatDidTheySayAdmin.inc:208
msgid "What Did They Say?!?" msgid "What Did They Say?!?"
msgstr "" msgstr ""
@ -611,96 +617,96 @@ msgstr ""
msgid "Hey, where are the keys?" msgid "Hey, where are the keys?"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:54 #: classes/WhatDidTheySayAdmin.inc:56
msgid "Submit transcriptions to a post" msgid "Submit transcriptions to a post"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:55 #: classes/WhatDidTheySayAdmin.inc:57
msgid "Approve transcriptions to a post" msgid "Approve transcriptions to a post"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:56 #: classes/WhatDidTheySayAdmin.inc:58
msgid "Change the available languages" msgid "Change the available languages"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:310 #: classes/WhatDidTheySayAdmin.inc:231
msgid "Manage Transcripts"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:306
#, php-format #, php-format
msgid "Transcript: %s" msgid "Transcript: %s"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:328 #: classes/WhatDidTheySayAdmin.inc:335
#, php-format #, php-format
msgid "%s transcript excerpt:" msgid "%s transcript excerpt:"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:426 #: classes/WhatDidTheySayAdmin.inc:568
msgid "Transcript added to queue." msgid "Transcript added to queue."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:428 #: classes/WhatDidTheySayAdmin.inc:570
msgid "Transcript not added to queue." msgid "Transcript not added to queue."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:499 #: classes/WhatDidTheySayAdmin.inc:641
msgid "Transcripts updated." msgid "Transcripts updated."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:582 #: classes/WhatDidTheySayAdmin.inc:704
msgid "Default styles option updated." msgid "Default styles option updated."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:598 #: classes/WhatDidTheySayAdmin.inc:720
msgid "Insertion level updated." msgid "Insertion level updated."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:616 #: classes/WhatDidTheySayAdmin.inc:738
#, php-format #, php-format
msgid "%s deleted." msgid "%s deleted."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:618 #: classes/WhatDidTheySayAdmin.inc:740
msgid "Language not deleted!" msgid "Language not deleted!"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:625 #: classes/WhatDidTheySayAdmin.inc:747
#, php-format #, php-format
msgid "%s added." msgid "%s added."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:627 #: classes/WhatDidTheySayAdmin.inc:749
msgid "Language not added!" msgid "Language not added!"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:633 #: classes/WhatDidTheySayAdmin.inc:755
#, php-format #, php-format
msgid "%s set as default." msgid "%s set as default."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:635 #: classes/WhatDidTheySayAdmin.inc:757
msgid "Language not set as default!" msgid "Language not set as default!"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:641 #: classes/WhatDidTheySayAdmin.inc:763
#, php-format #, php-format
msgid "%1$s renamed to %2$s." msgid "%1$s renamed to %2$s."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:643 #: classes/WhatDidTheySayAdmin.inc:765
msgid "Language not renamed!" msgid "Language not renamed!"
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:666 #: classes/WhatDidTheySayAdmin.inc:788
msgid "User capabilities updated." msgid "User capabilities updated."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:685 #: classes/WhatDidTheySayAdmin.inc:807
msgid "<strong>What Did They Say?!?</strong> options reset." msgid "<strong>What Did They Say?!?</strong> options reset."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:704 #: classes/WhatDidTheySayAdmin.inc:826
msgid "<strong>What Did They Say?!?</strong> core options changed." msgid "<strong>What Did They Say?!?</strong> core options changed."
msgstr "" msgstr ""
#: classes/WhatDidTheySayAdmin.inc:799
msgid "Manage Transcripts"
msgstr ""