more changes

This commit is contained in:
John Bintz 2009-10-07 17:52:36 -04:00
parent f60656b738
commit 9f135d38fc
16 changed files with 705 additions and 289 deletions

View File

@ -75,7 +75,7 @@
</p>
<pre>
&lt;php if (function_exists('the_matching_transcript_excerpts')) {
&lt;?php if (function_exists('the_matching_transcript_excerpts')) {
the_matching_transcript_excerpts();
} ?&gt;</pre>

View File

@ -4,7 +4,7 @@
'capabilities' => array(__('Capabilities', 'what-did-they-say'), 'edit_users'),
'default-styles' => array(__('Styles', 'what-did-they-say'), 'edit_themes'),
'change-languages' => array(__('Languages', 'what-did-they-say'), 'change_languages'),
'shortcodes-info' => array(__('Short codes 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'),
);

View File

@ -1,10 +1,84 @@
=== What Did They Say?!? ===
Contributors: johncoswell
Donate link: http://www.comicpresspremium.com/
Tags: admin, comics
Donate link: http://www.coswellproductions.com/wordpress/wordpress-plugins
Tags: admin, comics, webcomics, transcript, video, audio
Requires at least: 2.8
Tested up to: 2.8.3
Stable tag: 0.1
Tested up to: 2.8.4
Stable tag: 0.9
Want to make multilingual transcriptions a breeze? Use What Did They Say?!? and let your users provide transcriptions to your work, in their language, quickly and securely.
What Did They Say?!? lets your users provide multilingual transcriptions to your media, in their language, quickly and securely.
== Description ==
Run a webcomic site? Post a lot of videos or audio files for your readers to enjoy? Wish you could easily and attractively present
transcripts for your media files...and even let dedicated users manage those transcripts for you? Then What Did They Day?!? is what you need!
**What Did They Say?!?** (WDTS) integrates fully with your WordPress site. You can use it without making any theme modifications, and you can customize
the output as little or as much as you want. Site search also searches transcript content. It's easy to add new languages to support.
And there's a complete transcript workflow for editing, submitting, and approving transcripts, so it's simple and safe to allow others
to provide transcripts. Backups are also easy, as transcript data is stored with each post -- no separate database tables to worry about.
== Installation ==
Download and unzip the latest version of **What Did They Say?!?** to your `wp-content/plugins` directory. If you plan on using custom transcript
filters, create the directory `wp-content/transcript-filters`.
**What Did They Say?!?** puts a menu item under Options. It also adds a meta box to post editing.
== Frequently Asked Questions ==
= How do I activate the automatic site integration? =
On the WDTS *Introduction* page, check **Enable automatic transcript embedding**. Some themes do not play nicely with this embedding
by default, so you may be asked to enable **Inject transcripts at level 100 instead of level 15** on the *Misc. Options* page.
= How do I add transcript excerpts to search results? =
In the appropriate place in your search results Loop, add the following Template Tag:
`<?php if (function_exists('the_matching_transcript_excerpts')) {
the_matching_transcript_excerpts();
} ?>`
= How do I create my own transcript filters and styles? =
There are two ways to do it:
* If the new filters and styles are for one particilar theme, add your filters and styles to that theme's functions.php.
* If the new filters and styles will go on different themes, or you want to distribute them, add them to the `wp-content/transcript-filters` directory.
If you're using the `wp-content/transcript-filters` directory, use the following process. This requries some technical knowledge:
* Create a new directory for your filter, using only lowercase characters, the numbers 0-9, dashes, and underscores.
* Inside of this directory place one .php/.inc file and/or one .css file.
* If you're overriding filters, create a new class in the PHP file that extends `WDTSDisplayFilters (defined in `classes/WDTSDisplayFilters.inc`) and override functions as necessary.
* If done correctly, the new filter will be available under the *Styles* tab.
= How does the transcript workflow work? =
Transcripts can be in one of two states: **queued** and **approved**. Users can interact with them depending upon the permissions given to them:
* Queued transcripts are only visible to the user who submitted the transcript and to users that can approve transcripts.
* Approved transcripts are visible to everyone.
* Users who can submit transcripts can create new queued transcripts and edit their queued transcripts.
* Once a transcript is approved, it can only be edited by users who can approve transcripts.
* Users who can approve transcripts can also directly edit the approved transcripts.
* If a user submits a transcript to the queue, they can delete it before it's approved.
Permissions are handed out based on role and is set under the *Capabilities* tab.
= How do short codes work? =
**Short codes** are the recommended way that you create your transcripts. They eliminate the dependency on particular HTML structures and styles, which means
it's trivial to rework how your transcripts look and behave. It also improves security as it's less likely that bad HTML will sneak into your transcripts.
Short codes information can be found under the *Short Codes Info* tab. Each transcript editing area has buttons that allow you to quickly insert the proper
short codes into your transcripts.
== Screenshots ==
1. The **What Did They Say?!?** admin screen, with tabs running across the top.
== Changelog ==
= 0.9 =
* Initial release, primarily for testing purposes.

View File

@ -11,228 +11,6 @@
<thead>
<tr><td rowspan="1" colspan="3">TestWhatDidTheySay</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Installed</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>What Did They Say?!?</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href,'what-did-they-say') and contains(@href,'activate')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Plugin activated.</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(text(), &quot;What Did They Say?!?&quot;)]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=exact:What Did They Say?!?</td>
<td></td>
</tr>
<!--Reset-->
<tr>
<td>assertTextPresent</td>
<td>Reset Settings to Default</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Reset What Did They Say?!?']</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure? You could leave transcriptions inaccessible.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>What Did They Say?!? options reset</td>
<td></td>
</tr>
<!--Capabilities-->
<tr>
<td>select</td>
<td>wdts[capabilities][submit_transcriptions]</td>
<td>label=Editor</td>
</tr>
<tr>
<td>select</td>
<td>wdts[capabilities][approve_transcriptions]</td>
<td>label=Editor</td>
</tr>
<tr>
<td>select</td>
<td>wdts[capabilities][change_languages]</td>
<td>label=Editor</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change capabilities']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>User capabilities updated.</td>
<td></td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>wdts[capabilities][submit_transcriptions]</td>
<td>Editor</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>wdts[capabilities][approve_transcriptions]</td>
<td>Editor</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>wdts[capabilities][change_languages]</td>
<td>Editor</td>
</tr>
<!--Make new language default-->
<tr>
<td>assertText</td>
<td>//th/span[contains(text(), &quot;English&quot;)]/../../td[1]</td>
<td>(yes)</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//th/span[contains(text(), &quot;German&quot;)]/../..//input[@value=&quot;Default&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>German set as default.</td>
<td></td>
</tr>
<tr>
<td>assertNotText</td>
<td>//th/span[contains(text(), &quot;English&quot;)]/../../td[1]</td>
<td>(yes)</td>
</tr>
<tr>
<td>assertText</td>
<td>//th/span[contains(text(), &quot;German&quot;)]/../../td[1]</td>
<td>(yes)</td>
</tr>
<!--Add a new language-->
<tr>
<td>select</td>
<td>//select[@name='wdts[code]']</td>
<td>label=Danish</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Add New Language']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Danish added.</td>
<td></td>
</tr>
<!--Delete a language-->
<tr>
<td>click</td>
<td>//input[@value='Delete']</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this language from the available list. Continue?</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Danish deleted.</td>
<td></td>
</tr>
<!--Rename a language-->
<tr>
<td>assertVisible</td>
<td>//span[contains(text(), &quot;German&quot;)]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//span[contains(text(), &quot;German&quot;)]/../..//a[contains(text(), &quot;Rename&quot;)]</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//span[contains(text(), &quot;German&quot;)]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//span[contains(text(), &quot;German&quot;)]/..//input[@name=&quot;wdts[name]&quot;]</td>
<td>Deutsch</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//span[contains(text(), &quot;German&quot;)]/..//input[@type=&quot;submit&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>German renamed to Deutsch.</td>
<td></td>
</tr>
<!--Reset Settings-->
<tr>
<td>assertTextPresent</td>
<td>Reset Settings to Default</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Reset What Did They Say?!?']</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure? You could leave transcriptions inaccessible.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>What Did They Say?!? options reset</td>
<td></td>
</tr>
<!--Meta Box-->
<tr>
<td>clickAndWait</td>

View File

@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="http://comicpress.local/" />
<title>TestActivation</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestActivation</td></tr>
</thead><tbody>
<tr>
<td>open</td>
<td>/wp-admin/</td>
<td></td>
</tr>
<tr>
<td>storeElementPresent</td>
<td>//a[contains(@href,'manage-wdts')]</td>
<td>not_activated</td>
</tr>
<tr>
<td>gotoIf</td>
<td>!${not_activated}</td>
<td>not_activated</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[@href=&quot;plugins.php&quot;]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href,&quot;what-did-they-say&quot;) and contains(@href,&quot;deactivate&quot;)]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Plugin deactivated.</td>
<td></td>
</tr>
<tr>
<td>label</td>
<td>not_activated</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>link=Installed</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>What Did They Say?!?</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href,'what-did-they-say') and contains(@href,'activate')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Plugin activated.</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//a[contains(text(), &quot;What Did They Say?!?&quot;)]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>TestAddLanguage</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestAddLanguage</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=exact:What Did They Say?!?</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>wdts-tab-change-languages</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>//select[@name='wdts[code]']</td>
<td>label=Danish</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Add New Language']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Danish added.</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//span[text()=&quot;Danish&quot;]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>TestChangeCapabilities</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestChangeCapabilities</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=exact:What Did They Say?!?</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>wdts-tab-capabilities</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>wdts[capabilities][submit_transcriptions]</td>
<td>label=Editor</td>
</tr>
<tr>
<td>select</td>
<td>wdts[capabilities][approve_transcriptions]</td>
<td>label=Editor</td>
</tr>
<tr>
<td>select</td>
<td>wdts[capabilities][change_languages]</td>
<td>label=Editor</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//input[@value='Change capabilities']</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>User capabilities updated.</td>
<td></td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>wdts[capabilities][submit_transcriptions]</td>
<td>Editor</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>wdts[capabilities][approve_transcriptions]</td>
<td>Editor</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>wdts[capabilities][change_languages]</td>
<td>Editor</td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>TestChangeDefaultLanguage</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestChangeDefaultLanguage</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=exact:What Did They Say?!?</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>wdts-tab-change-languages</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//form/input[@value=&quot;en&quot;]/../input[@disabled]</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//th/span[contains(text(), &quot;German&quot;)]/../..//input[@value=&quot;Default&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>German set as default.</td>
<td></td>
</tr>
<tr>
<td>assertElementNotPresent</td>
<td>//form/input[@value=&quot;en&quot;]/../input[@disabled]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//form/input[@value=&quot;de&quot;]/../input[@disabled]</td>
<td></td>
</tr>
<tr>
<td>assertElementPresent</td>
<td>//form/input[@value=&quot;de&quot;]/../input[@disabled]</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>TestDeactivate</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestDeactivate</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Installed</td>
<td></td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//a[contains(@href,'what-did-they-say') and contains(@href,'deactivate')]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Plugin deactivated.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>TestDeleteLanguage</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestDeleteLanguage</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=exact:What Did They Say?!?</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>wdts-tab-change-languages</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//form/input[@value=&quot;de&quot;]/../input[@value='Delete']</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this language from the available list. Continue?</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>German deleted.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,97 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>TestMetaboxApprovedTranscriptEditing</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestMetaboxApprovedTranscriptEditing</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=Add New</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>title</td>
<td>WDTS Test Post</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post published.</td>
<td></td>
</tr>
<tr>
<td>storeValue</td>
<td>post_ID</td>
<td>post_id</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>wdts-language</td>
<td>English</td>
</tr>
<tr>
<td>type</td>
<td>wdts-transcripts-en</td>
<td>This is a test transcript.</td>
</tr>
<tr>
<td>select</td>
<td>wdts-language</td>
<td>label=German</td>
</tr>
<tr>
<td>type</td>
<td>wdts-transcripts-de</td>
<td>Dies ist ein Test transcript.</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>publish</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Post updated.</td>
<td></td>
</tr>
<tr>
<td>assertValue</td>
<td>wdts-transcripts-en</td>
<td>This is a test transcript.</td>
</tr>
<tr>
<td>assertValue</td>
<td>wdts-transcripts-de</td>
<td>Dies ist ein Test transcript.</td>
</tr>
<tr>
<td>click</td>
<td>link=Delete</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>You are about to delete this post 'WDTS Test Post'<br />&nbsp;&nbsp;'Cancel' to stop, 'OK' to delete.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,57 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>TestRenameLanguage</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestRenameLanguage</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=exact:What Did They Say?!?</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>wdts-tab-change-languages</td>
<td></td>
</tr>
<tr>
<td>assertVisible</td>
<td>//span[contains(text(), &quot;German&quot;)]</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//span[contains(text(), &quot;German&quot;)]/../..//a[contains(text(), &quot;Rename&quot;)]</td>
<td></td>
</tr>
<tr>
<td>assertNotVisible</td>
<td>//span[contains(text(), &quot;German&quot;)]</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>//span[contains(text(), &quot;German&quot;)]/..//input[@name=&quot;wdts[name]&quot;]</td>
<td>Deutsch</td>
</tr>
<tr>
<td>clickAndWait</td>
<td>//span[contains(text(), &quot;German&quot;)]/..//input[@type=&quot;submit&quot;]</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>German renamed to Deutsch.</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="selenium.base" href="" />
<title>TestResetOptions</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">TestResetOptions</td></tr>
</thead><tbody>
<tr>
<td>clickAndWait</td>
<td>link=exact:What Did They Say?!?</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>wdts-tab-misc-options</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>Reset Settings to Default</td>
<td></td>
</tr>
<tr>
<td>click</td>
<td>//input[@value='Reset What Did They Say?!?']</td>
<td></td>
</tr>
<tr>
<td>assertConfirmation</td>
<td>Are you sure? You could leave transcriptions inaccessible.</td>
<td></td>
</tr>
<tr>
<td>waitForPageToLoad</td>
<td>30000</td>
<td></td>
</tr>
<tr>
<td>assertTextPresent</td>
<td>What Did They Say?!? options reset</td>
<td></td>
</tr>
</tbody></table>
</body>
</html>

View File

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" />
<title>Test Suite</title>
</head>
<body>
<table id="suiteTable" cellpadding="1" cellspacing="1" border="1" class="selenium"><tbody>
<tr><td><b>Test Suite</b></td></tr>
<tr><td><a href="TestActivation.html">TestActivation</a></td></tr>
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
<tr><td><a href="TestChangeCapabilities.html">TestChangeCapabilities</a></td></tr>
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
<tr><td><a href="TestChangeDefaultLanguage.html">TestChangeDefaultLanguage</a></td></tr>
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
<tr><td><a href="TestAddLanguage.html">TestAddLanguage</a></td></tr>
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
<tr><td><a href="TestDeleteLanguage.html">TestDeleteLanguage</a></td></tr>
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
<tr><td><a href="TestRenameLanguage.html">TestRenameLanguage</a></td></tr>
<tr><td><a href="TestResetOptions.html">TestResetOptions</a></td></tr>
<tr><td><a href="TestMetaboxApprovedTranscriptEditing.html">TestMetaboxApprovedTranscriptEditing</a></td></tr>
<tr><td><a href="TestDeactivate.html">TestDeactivate</a></td></tr>
</tbody></table>
</body>
</html>

View File

@ -3,7 +3,7 @@
Plugin Name: What Did They Say?!?
Plugin URI: http://www.coswellproductions.com/wordpress/wordpress-plugins/
Description: Manage and display text transcriptions of comics, videos, or other media.
Version: 0.1
Version: 0.9
Author: John Bintz
Author URI: http://www.coswellproductions.com/wordpress/
Text Domain: what-did-they-say

View File

@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: what-did-they-say 0.1\n"
"Project-Id-Version: what-did-they-say 0.9\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-10-06 07:11-0400\n"
"POT-Creation-Date: 2009-10-07 12:43-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"
@ -145,11 +145,11 @@ msgstr ""
msgid "Transcript update failure!"
msgstr ""
#: classes/partials/_editor-script.inc:16 classes/WhatDidTheySayAdmin.inc:264
#: classes/partials/_editor-script.inc:16 classes/WDTSDisplayFilters.inc:10
msgid "Show transcripts"
msgstr ""
#: classes/partials/_editor-script.inc:17 classes/WhatDidTheySayAdmin.inc:265
#: classes/partials/_editor-script.inc:17 classes/WDTSDisplayFilters.inc:11
msgid "Hide transcripts"
msgstr ""
@ -220,100 +220,104 @@ msgstr ""
msgid "On individual post pages"
msgstr ""
#: classes/partials/_default-styles.inc:66
#: classes/partials/_default-styles.inc:69
msgid "Use the selected transcript filter set:"
msgstr ""
#: classes/partials/_default-styles.inc:79
msgid "Change default styles"
msgstr ""
#: classes/partials/_default-styles.inc:69
#: classes/partials/_default-styles.inc:82
msgid "Transcript Line Breaks"
msgstr ""
#: classes/partials/_default-styles.inc:71
#: classes/partials/_default-styles.inc:84
msgid ""
"If you're using short codes or HTML to construct your transcripts, you don't "
"need to enable transcript line breaks."
msgstr ""
#: classes/partials/_default-styles.inc:73
#: classes/partials/_default-styles.inc:86
msgid "Default CSS Selectors Information"
msgstr ""
#: classes/partials/_default-styles.inc:75
#: classes/partials/_default-styles.inc:88
msgid ""
"By default, the following CSS selectors are used by <strong>What Did They "
"Say?!?</strong>:"
msgstr ""
#: classes/partials/_default-styles.inc:78
#: classes/partials/_default-styles.inc:91
msgid "The container for the transcript"
msgstr ""
#: classes/partials/_default-styles.inc:80
#: classes/partials/_default-styles.inc:93
msgid "Character dialog"
msgstr ""
#: classes/partials/_default-styles.inc:82
#: classes/partials/_default-styles.inc:95
msgid "The character's name"
msgstr ""
#: classes/partials/_default-styles.inc:84
#: classes/partials/_default-styles.inc:97
msgid ""
"The direction the characters is speaking in/from (off-stage, to another "
"character)"
msgstr ""
#: classes/partials/_default-styles.inc:86
#: classes/partials/_default-styles.inc:99
msgid "A scene heading"
msgstr ""
#: classes/partials/_default-styles.inc:88
#: classes/partials/_default-styles.inc:101
msgid "Action within a scene"
msgstr ""
#: classes/partials/_default-styles.inc:91
#: classes/partials/_default-styles.inc:104
msgid "Overriding Filters"
msgstr ""
#: classes/partials/_default-styles.inc:94
#: classes/partials/_default-styles.inc:107
msgid ""
"If you want to override how transcript HTML is structured, create hooks in "
"your theme that implement the following filters."
msgstr ""
#: classes/partials/_default-styles.inc:95
#: classes/partials/_default-styles.inc:108
msgid ""
"All of them return the same parameters that are passed in as an array(), "
"with the return <code>$content</code> containing the filter output."
msgstr ""
#: classes/partials/_default-styles.inc:100
#: classes/partials/_default-styles.inc:113
msgid "Output <code>$content</code> contains the HTML for dialog blocks."
msgstr ""
#: classes/partials/_default-styles.inc:103
#: classes/partials/_default-styles.inc:116
msgid "Output <code>$content</code> contains the HTML for scene action blocks."
msgstr ""
#: classes/partials/_default-styles.inc:106
#: classes/partials/_default-styles.inc:119
msgid ""
"Ouptut <code>$content</code> contains the HTML for scene heading blocks."
msgstr ""
#: classes/partials/_default-styles.inc:109
#: classes/partials/_default-styles.inc:122
msgid "Output <code>$content</code> contains the HTML for a single transcript."
msgstr ""
#: classes/partials/_default-styles.inc:112
#: classes/partials/_default-styles.inc:125
msgid "Output <code>$content</code> contains the HTML for a language name."
msgstr ""
#: classes/partials/_default-styles.inc:115
#: classes/partials/_default-styles.inc:128
msgid ""
"Output <code>$content</code> contains the HTML for all the provided <code>"
"$transcripts</code> that match <code>$search_string</code>."
msgstr ""
#: classes/partials/_default-styles.inc:118
#: classes/partials/_default-styles.inc:131
#, php-format
msgid ""
"Output <code>$content</code> contains the sprintf() format string for how "
@ -321,14 +325,14 @@ msgid ""
"code>."
msgstr ""
#: classes/partials/_default-styles.inc:121
#: classes/partials/_default-styles.inc:134
msgid ""
"Output <code>$content</code> contains three elements: a container (.wdts-"
"transcript-opener), and an opener &amp; closer in the container (.wdts-"
"opener and .wdts-container)."
msgstr ""
#: classes/partials/_default-styles.inc:125
#: classes/partials/_default-styles.inc:138
msgid ""
"A filter in your theme that would change the display of langauge names would "
"look like the following:"
@ -480,7 +484,7 @@ msgid "Capabilities"
msgstr ""
#: classes/partials/admin.inc:7
msgid "Short codes Info"
msgid "Short Codes Info"
msgstr ""
#: classes/partials/admin.inc:8
@ -488,7 +492,7 @@ msgid "Misc. Options"
msgstr ""
#: classes/partials/admin.inc:14 classes/partials/admin.inc:47
#: classes/WhatDidTheySayAdmin.inc:207 classes/WhatDidTheySayAdmin.inc:208
#: classes/WhatDidTheySayAdmin.inc:249 classes/WhatDidTheySayAdmin.inc:250
msgid "What Did They Say?!?"
msgstr ""
@ -628,96 +632,96 @@ msgstr ""
msgid "Hey, where are the keys?"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:56
#: classes/WhatDidTheySayAdmin.inc:59
msgid "Submit transcriptions to a post"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:57
#: classes/WhatDidTheySayAdmin.inc:60
msgid "Approve transcriptions to a post"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:58
#: classes/WhatDidTheySayAdmin.inc:61
msgid "Change the available languages"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:231
#: classes/WhatDidTheySayAdmin.inc:273
msgid "Manage Transcripts"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:306
#, php-format
msgid "Transcript: %s"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:335
#, php-format
msgid "%s transcript excerpt:"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:568
#: classes/WhatDidTheySayAdmin.inc:481
msgid "Transcript added to queue."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:570
#: classes/WhatDidTheySayAdmin.inc:483
msgid "Transcript not added to queue."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:641
#: classes/WhatDidTheySayAdmin.inc:554
msgid "Transcripts updated."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:704
#: classes/WhatDidTheySayAdmin.inc:623
msgid "Default styles option updated."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:720
#: classes/WhatDidTheySayAdmin.inc:639
msgid "Insertion level updated."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:738
#: classes/WhatDidTheySayAdmin.inc:657
#, php-format
msgid "%s deleted."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:740
#: classes/WhatDidTheySayAdmin.inc:659
msgid "Language not deleted!"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:747
#: classes/WhatDidTheySayAdmin.inc:666
#, php-format
msgid "%s added."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:749
#: classes/WhatDidTheySayAdmin.inc:668
msgid "Language not added!"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:755
#: classes/WhatDidTheySayAdmin.inc:674
#, php-format
msgid "%s set as default."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:757
#: classes/WhatDidTheySayAdmin.inc:676
msgid "Language not set as default!"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:763
#: classes/WhatDidTheySayAdmin.inc:682
#, php-format
msgid "%1$s renamed to %2$s."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:765
#: classes/WhatDidTheySayAdmin.inc:684
msgid "Language not renamed!"
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:788
#: classes/WhatDidTheySayAdmin.inc:707
msgid "User capabilities updated."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:807
#: classes/WhatDidTheySayAdmin.inc:726
msgid "<strong>What Did They Say?!?</strong> options reset."
msgstr ""
#: classes/WhatDidTheySayAdmin.inc:826
#: classes/WhatDidTheySayAdmin.inc:745
msgid "<strong>What Did They Say?!?</strong> core options changed."
msgstr ""
#: classes/WDTSDisplayFilters.inc:52
#, php-format
msgid "Transcript: %s"
msgstr ""
#: classes/WDTSDisplayFilters.inc:81
#, php-format
msgid "%s transcript excerpt:"
msgstr ""