Plugin Directory

Changeset 1267016


Ignore:
Timestamp:
10/16/2015 12:23:52 AM (10 years ago)
Author:
csixty4
Message:

Preparing for WordPress.org Language Packs

Location:
daves-wordpress-live-search/trunk
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • daves-wordpress-live-search/trunk/admin/admin_footer.tpl.php

    r771341 r1267016  
    11<?php if ( !defined( 'ABSPATH' ) ) die( "Cannot access files directly." ); ?>
    22
    3 <p><?php printf( __( "Do you find this plugin useful? Consider a donation to %sCat Guardians%s, a wonderful no-kill shelter where I volunteer.", 'dwls' ), '<a href="http://catguardians.org">', '</a>' ); ?></p>
    4 <p><?php printf( __( "Please help make Dave's WordPress Live Search available to people all over the world. Visit %sour translation tool%s and help translate. Thanks Crowdin for hosting this project's translation efforts!", 'dwls' ), '<a href="http://crowdin.net/project/daves-wordpress-live-search">', '</a>' ); ?></p>
     3<p><?php printf( __( "Do you find this plugin useful? Consider a donation to %sCat Guardians%s, a wonderful no-kill shelter where I volunteer.", 'daves-wordpress-live-search' ), '<a href="http://catguardians.org">', '</a>' ); ?></p>
  • daves-wordpress-live-search/trunk/admin/admin_header.tpl.php

    r1225121 r1267016  
    1616<div class="wrap">
    1717<?php if( $wp_pre_4_3 ) : ?><h2><?php else : ?><h1><?php endif; ?>
    18     <?php _e( "Dave's WordPress Live Search Options", 'dwls' ); ?>
     18    <?php _e( "Dave's WordPress Live Search Options", 'daves-wordpress-live-search' ); ?>
    1919<?php if( $wp_pre_4_3 ) : ?></h2><?php else : ?></h1><?php endif; ?>
    2020<ul class="subsubsub">
     
    2525<?php foreach( $tabs as $tab_param => $tab_label ) : ?>
    2626<li class="<?php echo $tab_param; ?>">
    27     <a href="<?php echo add_query_arg( 'tab', $tab_param, $_SERVER['REQUEST_URI'] ); ?>" class=" <?php if( $current_tab === $tab_param ) : ?>current<?php endif; ?>"><?php _e( $tab_label, 'dwls' ); ?></a><?php if( $tab_param !== $last_tab_param ) : ?> |<?php endif; ?>
     27    <a href="<?php echo add_query_arg( 'tab', $tab_param, $_SERVER['REQUEST_URI'] ); ?>" class=" <?php if( $current_tab === $tab_param ) : ?>current<?php endif; ?>"><?php _e( $tab_label, 'daves-wordpress-live-search' ); ?></a><?php if( $tab_param !== $last_tab_param ) : ?> |<?php endif; ?>
    2828</li>
    2929<?php endforeach; ?>
  • daves-wordpress-live-search/trunk/admin/daves-wordpress-live-search-admin-advanced.tpl.php

    r771341 r1267016  
    33<?php include dirname( __FILE__ ) . "/admin_header.tpl.php"; ?>
    44<tr valign="top">
    5 <th scope="row"><?php _e( "Exceptions", 'dwls' ); ?></th>
     5<th scope="row"><?php _e( "Exceptions", 'daves-wordpress-live-search' ); ?></th>
    66
    77<td>
    88<?php $permalinkFormat = get_option( 'permalink_structure' ); ?>
    99
    10 <div><span class="setting-description"><?php printf( __( "Enter the %s of pages which should not have live searching, one per line. The * wildcard can be used at the start or end of a line. For example: %s", 'dwls' ), empty( $permalinkFormat ) ? __( 'paths', 'dwls' ) : __( 'permalinks' ), '<ul style="list-style-type:disc;margin-left: 3em;">' . empty( $permalinkFormat ) ? '<li>?page_id=123</li><li>page_id=1*</li>' : '<li>about</li><li>employee-*</li>' . '</ul>' ); ?>
     10<div><span class="setting-description"><?php printf( __( "Enter the %s of pages which should not have live searching, one per line. The * wildcard can be used at the start or end of a line. For example: %s", 'daves-wordpress-live-search' ), empty( $permalinkFormat ) ? __( 'paths', 'daves-wordpress-live-search' ) : __( 'permalinks' ), '<ul style="list-style-type:disc;margin-left: 3em;">' . empty( $permalinkFormat ) ? '<li>?page_id=123</li><li>page_id=1*</li>' : '<li>about</li><li>employee-*</li>' . '</ul>' ); ?>
    1111
    12 <p><strong><?php _e( "NOTE", 'dwls' ); ?>:</strong> <?php _e( "These pages will still be returned in search results. This only disables the Live Search feature for the search box on these pages.", 'dwls' ); ?></p></span></div>
     12<p><strong><?php _e( "NOTE", 'daves-wordpress-live-search' ); ?>:</strong> <?php _e( "These pages will still be returned in search results. This only disables the Live Search feature for the search box on these pages.", 'daves-wordpress-live-search' ); ?></p></span></div>
    1313<textarea name="daves-wordpress-live-search_exceptions" id="daves-wordpress-live-search_exceptions" rows="5" cols="60"><?php echo $exceptions; ?></textarea></td>
    1414</tr>
     
    1616<!-- X Offset -->
    1717<tr valign="top">
    18 <th scope="row"><?php _e( "Search Results box X offset", 'dwls' ); ?></th>
     18<th scope="row"><?php _e( "Search Results box X offset", 'daves-wordpress-live-search' ); ?></th>
    1919
    2020<td>
    21 <div><span class="setting-description"><?php _e( "Use this setting to move the search results box left or right to align exactly with your theme's search field. Value is in pixels. Negative values move the box to the left, positive values move it to the right.", 'dwls' ); ?></span></div>
     21<div><span class="setting-description"><?php _e( "Use this setting to move the search results box left or right to align exactly with your theme's search field. Value is in pixels. Negative values move the box to the left, positive values move it to the right.", 'daves-wordpress-live-search' ); ?></span></div>
    2222
    2323<input type="text" name="daves-wordpress-live-search_xoffset" id="daves-wordpress-live-search_xoffset" value="<?php echo $xOffset; ?>"</td>
     
    2626<!-- Y Offset -->
    2727<tr valign="top">
    28 <th scope="row"><?php _e( "Search Results box Y offset", 'dwls' ); ?></th>
     28<th scope="row"><?php _e( "Search Results box Y offset", 'daves-wordpress-live-search' ); ?></th>
    2929
    3030<td>
    31 <div><span class="setting-description"><?php _e( "Use this setting to move the search results box up or down to align exactly with your theme's search field. Value is in pixels. Negative values move the box up, positive values move it down.", 'dwls' ); ?></span></div>
     31<div><span class="setting-description"><?php _e( "Use this setting to move the search results box up or down to align exactly with your theme's search field. Value is in pixels. Negative values move the box up, positive values move it down.", 'daves-wordpress-live-search' ); ?></span></div>
    3232
    3333<input type="text" name="daves-wordpress-live-search_yoffset" id="daves-wordpress-live-search_yoffset" value="<?php echo $yOffset; ?>"</td>
     
    3636<!-- Apply the_content filter -->
    3737<tr valign="top">
    38 <th scope="row"><?php _e( "Enable content filter", 'dwls' ); ?></th>
     38<th scope="row"><?php _e( "Enable content filter", 'daves-wordpress-live-search' ); ?></th>
    3939
    40 <td><input type="checkbox" name="daves-wordpress-live-search_apply_content_filter" id="daves-wordpress-live-search_apply_content_filter" value="true" <?php checked( $applyContentFilter ); ?> /> <label for="daves-wordpress-live-search_apply_content_filter"><?php _e("Allow other plugins to filter the content before looking for a thumbnail. This will affect Live Search performance, so only enable this if you really need it.", 'dwls'); ?></label></td>
     40<td><input type="checkbox" name="daves-wordpress-live-search_apply_content_filter" id="daves-wordpress-live-search_apply_content_filter" value="true" <?php checked( $applyContentFilter ); ?> /> <label for="daves-wordpress-live-search_apply_content_filter"><?php _e("Allow other plugins to filter the content before looking for a thumbnail. This will affect Live Search performance, so only enable this if you really need it.", 'daves-wordpress-live-search'); ?></label></td>
    4141</tr>
    4242
  • daves-wordpress-live-search/trunk/admin/daves-wordpress-live-search-admin-appearance.tpl.php

    r771341 r1267016  
    33<?php include dirname( __FILE__ ) . "/admin_header.tpl.php"; ?>
    44<tr valign="top">
    5 <th scope="row"><?php _e( "Display Metadata", 'dwls' ); ?></th>
     5<th scope="row"><?php _e( "Display Metadata", 'daves-wordpress-live-search' ); ?></th>
    66
    77<td>
    88    <input type="hidden" name="daves-wordpress-live-search_display_post_meta" value="" />
    9     <input type="checkbox" name="daves-wordpress-live-search_display_post_meta" id="daves-wordpress-live-search_display_post_meta" value="true" <?php checked( $displayPostMeta ); ?> /> <label for="daves-wordpress-live-search_display_post_meta"><?php _e( "Display author & date for every search result", 'dwls' ); ?></label>
     9    <input type="checkbox" name="daves-wordpress-live-search_display_post_meta" id="daves-wordpress-live-search_display_post_meta" value="true" <?php checked( $displayPostMeta ); ?> /> <label for="daves-wordpress-live-search_display_post_meta"><?php _e( "Display author & date for every search result", 'daves-wordpress-live-search' ); ?></label>
    1010</td>
    1111</tr>
     
    1313<!-- Display post thumbnail -->
    1414<tr valign="top">
    15 <th scope="row"><?php _e( "Display Post Thumbnail", 'dwls' ); ?></th>
     15<th scope="row"><?php _e( "Display Post Thumbnail", 'daves-wordpress-live-search' ); ?></th>
    1616
    1717<td>
    1818    <input type="hidden" name="daves-wordpress-live-search_thumbs" value="" />
    19     <input type="checkbox" name="daves-wordpress-live-search_thumbs" id="daves-wordpress-live-search_thumbs" value="true" <?php checked( $showThumbs ); ?> /> <label for="daves-wordpress-live-search_thumbs"><?php _e( "Display thumbnail images for every search result with at least one image", 'dwls' ); ?></label>
     19    <input type="checkbox" name="daves-wordpress-live-search_thumbs" id="daves-wordpress-live-search_thumbs" value="true" <?php checked( $showThumbs ); ?> /> <label for="daves-wordpress-live-search_thumbs"><?php _e( "Display thumbnail images for every search result with at least one image", 'daves-wordpress-live-search' ); ?></label>
    2020</td>
    2121</tr>
     
    2323<!-- Display post excerpt -->
    2424<tr valign="top">
    25 <th scope="row"><?php _e( "Display Post Excerpt", 'dwls' ); ?></th>
     25<th scope="row"><?php _e( "Display Post Excerpt", 'daves-wordpress-live-search' ); ?></th>
    2626
    2727<td>
    2828    <input type="hidden" name="daves-wordpress-live-search_excerpt" value="" />
    29     <input type="checkbox" name="daves-wordpress-live-search_excerpt" id="daves-wordpress-live-search_excerpt" value="true" <?php checked( $showExcerpt ); ?> /> <label for="daves-wordpress-live-search_excerpt"><?php printf( __( "Display an excerpt for every search result. If the post doesn't have one, use the first %s characters.", 'dwls' ), "<input type=\"text\" name=\"daves-wordpress-live-search_excerpt_length\" id=\"daves-wordpress-live-search_excerpt_length\" value=\"$excerptLength\" size=\"3\" />"); ?></label>
     29    <input type="checkbox" name="daves-wordpress-live-search_excerpt" id="daves-wordpress-live-search_excerpt" value="true" <?php checked( $showExcerpt ); ?> /> <label for="daves-wordpress-live-search_excerpt"><?php printf( __( "Display an excerpt for every search result. If the post doesn't have one, use the first %s characters.", 'daves-wordpress-live-search' ), "<input type=\"text\" name=\"daves-wordpress-live-search_excerpt_length\" id=\"daves-wordpress-live-search_excerpt_length\" value=\"$excerptLength\" size=\"3\" />"); ?></label>
    3030</td>
    3131</tr>
     
    3333<!-- Display 'more results' -->
    3434<tr valign="top">
    35 <th scope="row"><?php _e( "Display &quot;View more results&quot; link", 'dwls' ); ?></th>
     35<th scope="row"><?php _e( "Display &quot;View more results&quot; link", 'daves-wordpress-live-search' ); ?></th>
    3636
    3737<td>
    3838    <input type="hidden" name="daves-wordpress-live-search_more_results" value="" />
    39     <input type="checkbox" name="daves-wordpress-live-search_more_results" id="daves-wordpress-live-search_more_results" value="true" <?php checked( $showMoreResultsLink ); ?> /> <label for="daves-wordpress-live-search_more_results"><?php _e( "Display the &quot;View more results&quot; link after the search results.", 'dwls' ); ?></label>
     39    <input type="checkbox" name="daves-wordpress-live-search_more_results" id="daves-wordpress-live-search_more_results" value="true" <?php checked( $showMoreResultsLink ); ?> /> <label for="daves-wordpress-live-search_more_results"><?php _e( "Display the &quot;View more results&quot; link after the search results.", 'daves-wordpress-live-search' ); ?></label>
    4040</td>
    4141</tr>
     
    4343<!-- CSS styles -->
    4444<tr valign="top">
    45 <td colspan="2"><h3><?php _e( "Styles", 'dwls' ); ?></h3></td>
     45<td colspan="2"><h3><?php _e( "Styles", 'daves-wordpress-live-search' ); ?></h3></td>
    4646</tr>
    4747
     
    4949<th scope="row"> </th>
    5050<td>
    51 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_gray" value="default_gray" <?php checked( $cssOption, 'default_gray' ); ?> /> <label for="daves-wordpress-live-search_css_default_gray"><?php _e( "Default Gray", 'dwls' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in gray.", 'dwls' ); ?></span>
     51<input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_gray" value="default_gray" <?php checked( $cssOption, 'default_gray' ); ?> /> <label for="daves-wordpress-live-search_css_default_gray"><?php _e( "Default Gray", 'daves-wordpress-live-search' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in gray.", 'daves-wordpress-live-search' ); ?></span>
    5252<br /><br />
    53 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_red" value="default_red" <?php checked( $cssOption, 'default_red' ); ?> /> <label for="daves-wordpress-live-search_css_default_red"><?php _e( "Default Red", 'dwls' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in red", 'dwls' ); ?></span>
     53<input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_red" value="default_red" <?php checked( $cssOption, 'default_red' ); ?> /> <label for="daves-wordpress-live-search_css_default_red"><?php _e( "Default Red", 'daves-wordpress-live-search' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in red", 'daves-wordpress-live-search' ); ?></span>
    5454<br /><br />
    55 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_blue" value="default_blue" <?php checked( $cssOption, 'default_blue' ); ?> /> <label for="daves-wordpress-live-search_css_default_blue"><?php _e( "Default Blue", 'dwls' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in blue", 'dwls' ); ?></span>
     55<input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_default_blue" value="default_blue" <?php checked( $cssOption, 'default_blue' ); ?> /> <label for="daves-wordpress-live-search_css_default_blue"><?php _e( "Default Blue", 'daves-wordpress-live-search' ); ?></label><br /><span class="setting-description"><?php _e( "Default style in blue", 'daves-wordpress-live-search' ); ?></span>
    5656<br /><br />
    5757
    5858<?php if( $color_picker_supported ) : ?>
    5959
    60 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_custom" value="custom" <?php checked( $cssOption, 'custom' ); ?> /> <label for="daves-wordpress-live-search_css_custom"><?php _e( "Custom", 'dwls' ); ?></label><br /><span class="setting-description"><?php _e( "Customize the search results display here", 'dwls' ); ?></span>
     60<input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_custom" value="custom" <?php checked( $cssOption, 'custom' ); ?> /> <label for="daves-wordpress-live-search_css_custom"><?php _e( "Custom", 'daves-wordpress-live-search' ); ?></label><br /><span class="setting-description"><?php _e( "Customize the search results display here", 'daves-wordpress-live-search' ); ?></span>
    6161
    6262<div id="custom_colors" style="display:none;">
     
    6868<div id="custom_colors_options">
    6969
    70 <div><label><?php _e("Width (in pixels)", 'dwls'); ?></label><input type="number" name="daves-wordpress-live-search_custom[width]" id="daves-wordpress-live-search_custom_width" value="<?php if(!empty($customOptions['width'])) echo $customOptions['width']; else echo "250" ?>" /></div>
     70<div><label><?php _e("Width (in pixels)", 'daves-wordpress-live-search'); ?></label><input type="number" name="daves-wordpress-live-search_custom[width]" id="daves-wordpress-live-search_custom_width" value="<?php if(!empty($customOptions['width'])) echo $customOptions['width']; else echo "250" ?>" /></div>
    7171
    72 <div><label><?php _e("Title", 'dwls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[title]" id="daves-wordpress-live-search_custom_title" value="<?php if(!empty($customOptions['title'])) echo $customOptions['title']; ?>" data-default-color="#000" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
     72<div><label><?php _e("Title", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[title]" id="daves-wordpress-live-search_custom_title" value="<?php if(!empty($customOptions['title'])) echo $customOptions['title']; ?>" data-default-color="#000" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
    7373
    74 <div><label><?php _e("Excerpt", 'dwls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[fg]" id="daves-wordpress-live-search_custom_fg" value="<?php if(!empty($customOptions['fg'])) echo $customOptions['fg']; ?>" data-default-color="#000" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
     74<div><label><?php _e("Excerpt", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[fg]" id="daves-wordpress-live-search_custom_fg" value="<?php if(!empty($customOptions['fg'])) echo $customOptions['fg']; ?>" data-default-color="#000" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
    7575
    76 <div><label><?php _e("Background", 'dwls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[bg]" id="daves-wordpress-live-search_custom_bg" value="<?php if(!empty($customOptions['bg'])) echo $customOptions['bg']; ?>" data-default-color="#ddd" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
     76<div><label><?php _e("Background", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[bg]" id="daves-wordpress-live-search_custom_bg" value="<?php if(!empty($customOptions['bg'])) echo $customOptions['bg']; ?>" data-default-color="#ddd" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
    7777
    78 <div><label><?php _e("Hover Background", 'dwls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[hoverbg]" id="daves-wordpress-live-search_custom_hoverbg" value="<?php if(!empty($customOptions['hoverbg'])) echo $customOptions['hoverbg']; ?>" data-default-color="#fff" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
     78<div><label><?php _e("Hover Background", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[hoverbg]" id="daves-wordpress-live-search_custom_hoverbg" value="<?php if(!empty($customOptions['hoverbg'])) echo $customOptions['hoverbg']; ?>" data-default-color="#fff" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
    7979
    80 <div><label><?php _e("Divider", 'dwls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[divider]" id="daves-wordpress-live-search_custom_divider" value="<?php if(!empty($customOptions['divider'])) echo $customOptions['divider']; ?>" data-default-color="#aaa" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
     80<div><label><?php _e("Divider", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[divider]" id="daves-wordpress-live-search_custom_divider" value="<?php if(!empty($customOptions['divider'])) echo $customOptions['divider']; ?>" data-default-color="#aaa" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
    8181
    82 <div><label><?php _e("Footer Background", 'dwls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[footbg]" id="daves-wordpress-live-search_custom_footbg" value="<?php if(!empty($customOptions['footbg'])) echo $customOptions['footbg']; ?>" data-default-color="#888" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
     82<div><label><?php _e("Footer Background", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[footbg]" id="daves-wordpress-live-search_custom_footbg" value="<?php if(!empty($customOptions['footbg'])) echo $customOptions['footbg']; ?>" data-default-color="#888" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
    8383
    84 <div><label><?php _e("Footer Text", 'dwls'); ?></label><input type="text" name="daves-wordpress-live-search_custom[footfg]" id="daves-wordpress-live-search_custom_footfg" value="<?php if(!empty($customOptions['footfg'])) echo $customOptions['footfg']; ?>" data-default-color="#fff" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
     84<div><label><?php _e("Footer Text", 'daves-wordpress-live-search'); ?></label><input type="text" name="daves-wordpress-live-search_custom[footfg]" id="daves-wordpress-live-search_custom_footfg" value="<?php if(!empty($customOptions['footfg'])) echo $customOptions['footfg']; ?>" data-default-color="#fff" class="dwls_color_picker" pattern="^#[0-9,a-f]{3,6}" /></div>
    8585
    86 <div><label><?php _e("Shadow", 'dwls'); ?></label><input type="checkbox" name="daves-wordpress-live-search_custom[shadow]" id="daves-wordpress-live-search_custom_shadow" value="true" class="dwls_design_toggle" <?php checked(!empty($customOptions['shadow'])); ?> /></div>
     86<div><label><?php _e("Shadow", 'daves-wordpress-live-search'); ?></label><input type="checkbox" name="daves-wordpress-live-search_custom[shadow]" id="daves-wordpress-live-search_custom_shadow" value="true" class="dwls_design_toggle" <?php checked(!empty($customOptions['shadow'])); ?> /></div>
    8787
    8888</div>
     
    9393<?php endif; ?>
    9494
    95 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_theme" value="theme" <?php checked($cssOption, 'theme'); ?> /> <label for="daves-wordpress-live-search_css_theme"><?php _e("Theme-specific", 'dwls'); ?></label><br /><span class="setting-description"><strong><?php _e("For advanced users", 'dwls'); ?>:</strong> <?php _e("Theme must include a CSS file named daves-wordpress-live-search.css. If your theme does not have one, copy daves-wordpress-live-search_default_gray.css from this plugin's directory into your theme's directory and modify as desired.", 'dwls'); ?></span>
     95<input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_theme" value="theme" <?php checked($cssOption, 'theme'); ?> /> <label for="daves-wordpress-live-search_css_theme"><?php _e("Theme-specific", 'daves-wordpress-live-search'); ?></label><br /><span class="setting-description"><strong><?php _e("For advanced users", 'daves-wordpress-live-search'); ?>:</strong> <?php _e("Theme must include a CSS file named daves-wordpress-live-search.css. If your theme does not have one, copy daves-wordpress-live-search_default_gray.css from this plugin's directory into your theme's directory and modify as desired.", 'daves-wordpress-live-search'); ?></span>
    9696<br /><br />
    97 <input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_existing_theme" value="notheme" <?php checked($cssOption, 'notheme'); ?> /> <label for="daves-wordpress-live-search_css_theme"><?php _e("Theme-specific (theme's own CSS file)", 'dwls'); ?></label><br /><span class="setting-description"><strong><?php _e("For advanced users", 'dwls'); ?>:</strong> <?php _e("Use the styles contained within your Theme's stylesheet. Don't include a separate stylesheet for Live Search.", 'dwls'); ?>
     97<input type="radio" name="daves-wordpress-live-search_css" id="daves-wordpress-live-search_css_existing_theme" value="notheme" <?php checked($cssOption, 'notheme'); ?> /> <label for="daves-wordpress-live-search_css_theme"><?php _e("Theme-specific (theme's own CSS file)", 'daves-wordpress-live-search'); ?></label><br /><span class="setting-description"><strong><?php _e("For advanced users", 'daves-wordpress-live-search'); ?>:</strong> <?php _e("Use the styles contained within your Theme's stylesheet. Don't include a separate stylesheet for Live Search.", 'daves-wordpress-live-search'); ?>
    9898</td>
    9999</tr>
  • daves-wordpress-live-search/trunk/admin/daves-wordpress-live-search-admin.tpl.php

    r771341 r1267016  
    33<?php include dirname(__FILE__)."/admin_header.tpl.php"; ?>
    44<tr valign="top">
    5 <th scope="row"><?php _e("Maximum Results to Display", 'dwls'); ?></th>
     5<th scope="row"><?php _e("Maximum Results to Display", 'daves-wordpress-live-search'); ?></th>
    66
    7 <td><input type="text" name="daves-wordpress-live-search_max_results" id="daves-wordpress-live-search_max_results" value="<?php echo $maxResults; ?>" class="regular-text code" /><span class="setting-description"><?php _e("Enter &quot;0&quot; to display all matching results", 'dwls'); ?></span></td>
     7<td><input type="text" name="daves-wordpress-live-search_max_results" id="daves-wordpress-live-search_max_results" value="<?php echo $maxResults; ?>" class="regular-text code" /><span class="setting-description"><?php _e("Enter &quot;0&quot; to display all matching results", 'daves-wordpress-live-search'); ?></span></td>
    88</tr>
    99
    1010<tr valign="top">
    11 <th scope="row"><?php _e("Minimum characters before searching", 'dwls'); ?></th>
     11<th scope="row"><?php _e("Minimum characters before searching", 'daves-wordpress-live-search'); ?></th>
    1212
    1313<td>
    1414<select name="daves-wordpress-live-search_minchars">
    15 <option value="1" <?php selected($minCharsToSearch, 1); ?>><?php _e("Search right away", 'dwls'); ?></option>
    16 <option value="2" <?php selected($minCharsToSearch, 2); ?>><?php _e("Wait for two characters", 'dwls'); ?></option>
    17 <option value="3" <?php selected($minCharsToSearch, 3); ?>><?php _e("Wait for three characters", 'dwls'); ?></option>
    18 <option value="4" <?php selected($minCharsToSearch, 4); ?>><?php _e("Wait for four characters", 'dwls'); ?></option>
     15<option value="1" <?php selected($minCharsToSearch, 1); ?>><?php _e("Search right away", 'daves-wordpress-live-search'); ?></option>
     16<option value="2" <?php selected($minCharsToSearch, 2); ?>><?php _e("Wait for two characters", 'daves-wordpress-live-search'); ?></option>
     17<option value="3" <?php selected($minCharsToSearch, 3); ?>><?php _e("Wait for three characters", 'daves-wordpress-live-search'); ?></option>
     18<option value="4" <?php selected($minCharsToSearch, 4); ?>><?php _e("Wait for four characters", 'daves-wordpress-live-search'); ?></option>
    1919</select>
    2020</td>
     
    2323
    2424<tr valign="top">
    25 <th scope="row"><?php _e("Results Direction", 'dwls'); ?></th>
     25<th scope="row"><?php _e("Results Direction", 'daves-wordpress-live-search'); ?></th>
    2626
    27 <td><input type="radio" name="daves-wordpress-live-search_results_direction" id="daves-wordpress-live-search_results_direction_down" value="down" <?php checked(empty($resultsDirection)); checked($resultsDirection, 'down'); ?> /> <label for="daves-wordpress-live-search_results_direction_down"><?php _e("Down", 'dwls'); ?></input></label>
     27<td><input type="radio" name="daves-wordpress-live-search_results_direction" id="daves-wordpress-live-search_results_direction_down" value="down" <?php checked(empty($resultsDirection)); checked($resultsDirection, 'down'); ?> /> <label for="daves-wordpress-live-search_results_direction_down"><?php _e("Down", 'daves-wordpress-live-search'); ?></input></label>
    2828
    29 <input type="radio" name="daves-wordpress-live-search_results_direction" id="daves-wordpress-live-search_results_direction_up" value="up" <?php checked($resultsDirection, 'up'); ?> /> <label for="daves-wordpress-live-search_results_direction_up"><?php _e("Up", 'dwls'); ?></label><br /><span class="setting-description"><?php _e("When search results are displayed, in which direction should the results box extend from the search box?", 'dwls'); ?></span></td>
     29<input type="radio" name="daves-wordpress-live-search_results_direction" id="daves-wordpress-live-search_results_direction_up" value="up" <?php checked($resultsDirection, 'up'); ?> /> <label for="daves-wordpress-live-search_results_direction_up"><?php _e("Up", 'daves-wordpress-live-search'); ?></label><br /><span class="setting-description"><?php _e("When search results are displayed, in which direction should the results box extend from the search box?", 'daves-wordpress-live-search'); ?></span></td>
    3030</tr>
    3131
     
    3333<?php if(defined('WPSC_VERSION')) : ?>
    3434<tr valign="top">
    35 <td colspan="2"><h3><?php _e("WP E-Commerce", 'dwls'); ?></h3></td>
     35<td colspan="2"><h3><?php _e("WP E-Commerce", 'daves-wordpress-live-search'); ?></h3></td>
    3636</tr>
    3737
     
    3939<th scope="row"> </th>
    4040<td>
    41     <div><span class="setting-description"><?php printf(__("When used with the %sWP E-Commerce%s plugin, Dave&apos;s WordPress Live Search can search your product catalog instead of posts & pages.", 'dwls'), '<a href="http://getshopped.org/">', '</a>'); ?></span></div>
     41    <div><span class="setting-description"><?php printf(__("When used with the %sWP E-Commerce%s plugin, Dave&apos;s WordPress Live Search can search your product catalog instead of posts & pages.", 'daves-wordpress-live-search'), '<a href="http://getshopped.org/">', '</a>'); ?></span></div>
    4242    <table>
    43         <tr><td><input type="radio" id="daves-wordpress-live-search_source_1" name="daves-wordpress-live-search_source" value="0" <?php checked($searchSource, 0); ?> /> <label for="daves-wordpress-live-search_source_1"><?php _e("Search posts &amp; pages", 'dwls'); ?></label></td></tr>
    44         <tr><td><input type="radio" id="daves-wordpress-live-search_source_2" name="daves-wordpress-live-search_source" value="1" <?php checked($searchSource, 1); ?> /> <label for="daves-wordpress-live-search_source_2"><?php _e("Search products", 'dwls'); ?></label></td></tr>
     43        <tr><td><input type="radio" id="daves-wordpress-live-search_source_1" name="daves-wordpress-live-search_source" value="0" <?php checked($searchSource, 0); ?> /> <label for="daves-wordpress-live-search_source_1"><?php _e("Search posts &amp; pages", 'daves-wordpress-live-search'); ?></label></td></tr>
     44        <tr><td><input type="radio" id="daves-wordpress-live-search_source_2" name="daves-wordpress-live-search_source" value="1" <?php checked($searchSource, 1); ?> /> <label for="daves-wordpress-live-search_source_2"><?php _e("Search products", 'daves-wordpress-live-search'); ?></label></td></tr>
    4545    </table>
    4646
  • daves-wordpress-live-search/trunk/class-daves-wordpress-live-search.php

    r1225143 r1267016  
    1818    public static function advanced_search_init() {
    1919
    20         load_plugin_textdomain( 'dwls', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
     20        load_plugin_textdomain( 'daves-wordpress-live-search', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
    2121        if ( self::isSearchablePage() ) {
    2222            wp_enqueue_script( 'underscore' );
     
    159159
    160160        // Translations
    161         $moreResultsText    = __( 'View more results', 'dwls' );
    162         $outdatedJQueryText = __( "Dave's WordPress Live Search requires jQuery 1.2.6 or higher. WordPress ships with current jQuery versions. But if you are seeing this message, it's likely that another plugin is including an earlier version.", 'dwls' );
     161        $moreResultsText    = __( 'View more results', 'daves-wordpress-live-search' );
     162        $outdatedJQueryText = __( "Dave's WordPress Live Search requires jQuery 1.2.6 or higher. WordPress ships with current jQuery versions. But if you are seeing this message, it's likely that another plugin is including an earlier version.", 'daves-wordpress-live-search' );
    163163
    164164        // Neat trick: use wp_localize_script to generate the config object
     
    194194    public static function admin_menu() {
    195195
    196         add_options_page( "Dave's WordPress Live Search Options", __( 'Live Search', 'dwls' ), 'manage_options', __FILE__, array(
     196        add_options_page( "Dave's WordPress Live Search Options", __( 'Live Search', 'daves-wordpress-live-search' ), 'manage_options', __FILE__, array(
    197197            'DavesWordPressLiveSearch',
    198198            'plugin_options'
     
    252252            update_option( 'daves-wordpress-live-search_source', $searchSource );
    253253
    254             $updateMessage = __( 'Options saved.', 'dwls' );
     254            $updateMessage = __( 'Options saved.', 'daves-wordpress-live-search' );
    255255            echo "<div class=\"updated fade\"><p><strong>$updateMessage</strong></p></div>";
    256256        } else {
     
    298298            // Translate the "Options saved" message...just in case.
    299299            // You know...the code I was copying for this does it, thought it might be a good idea to leave it
    300             $updateMessage = __( 'Options saved.', 'dwls' );
     300            $updateMessage = __( 'Options saved.', 'daves-wordpress-live-search' );
    301301
    302302            echo "<div class=\"updated fade\"><p><strong>$updateMessage</strong></p></div>";
     
    337337            // Translate the "Options saved" message...just in case.
    338338            // You know...the code I was copying for this does it, thought it might be a good idea to leave it
    339             $updateMessage = __( 'Options saved.', 'dwls' );
     339            $updateMessage = __( 'Options saved.', 'daves-wordpress-live-search' );
    340340
    341341            echo "<div class=\"updated fade\"><p><strong>$updateMessage</strong></p></div>";
  • daves-wordpress-live-search/trunk/daves-wordpress-live-search.php

    r1225133 r1267016  
    88Author URI: http://davidmichaelross.com/
    99Plugin URI: http://wordpress.org/extend/plugins/daves-wordpress-live-search/
     10Text Domain: daves-wordpress-live-search
    1011*/
    1112
Note: See TracChangeset for help on using the changeset viewer.