WordPress.org

Plugin Directory

Changeset 573719 for wp-help


Ignore:
Timestamp:
07/17/12 18:44:32 (21 months ago)
Author:
markjaquith
Message:

More complete i18n. thanks Knut.

Location:
wp-help/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-help/trunk/templates/list-documents.php

    r573314 r573719  
    55<?php if ( current_user_can( 'publish_pages' ) || current_user_can( 'manage_options' ) ) : ?> 
    66    <div id="cws-wp-help-actions"> 
    7     <?php if ( current_user_can( 'manage_options' ) ) : ?><a href="#" id="cws-wp-help-settings-on"><?php _ex( 'Settings', 'Button with limited space' ); ?></a><?php endif; ?> 
     7    <?php if ( current_user_can( 'manage_options' ) ) : ?><a href="#" id="cws-wp-help-settings-on"><?php _ex( 'Settings', 'Button with limited space', 'wp-help' ); ?></a><?php endif; ?> 
    88    <?php if ( current_user_can( 'publish_pages' ) ) : ?><a href="<?php echo admin_url( 'post-new.php?post_type=wp-help' ); ?>" id="cws-wp-help-add-new"><?php _ex( 'Add New', 'Button with limited space', 'wp-help' ); ?></a><a href="<?php echo admin_url( 'edit.php?post_type=wp-help' ); ?>" id="cws-wp-help-manage"><?php _ex( 'Manage', 'verb. Button with limited space', 'wp-help' ); ?></a><?php endif; ?> 
    99    <div class="clear"></div> 
  • wp-help/trunk/templates/settings.php

    r573314 r573719  
    1515<p><?php _e( 'Display the help documents menu item:', 'wp-help' ); ?>  
    1616    <select id="cws-wp-help-menu-location"> 
    17         <option value="dashboard-submenu" <?php selected( 'dashboard-submenu', $this->get_option( 'menu_location' ) ); ?>><?php _e( 'as a Dashboard submenu' ); ?></option> 
    18         <option value="above-dashboard" <?php selected( 'above-dashboard', $this->get_option( 'menu_location' ) ); ?>><?php _e( 'above the Dashboard menu' ); ?></option> 
    19         <option value="below-dashboard" <?php selected( 'below-dashboard', $this->get_option( 'menu_location' ) ); ?>><?php _e( 'below the Dashboard menu' ); ?></option> 
    20         <option value="bottom" <?php selected( 'bottom', $this->get_option( 'menu_location' ) ); ?>><?php _e( 'at the bottom' ); ?></option> 
     17        <option value="dashboard-submenu" <?php selected( 'dashboard-submenu', $this->get_option( 'menu_location' ) ); ?>><?php _e( 'as a Dashboard submenu', 'wp-help' ); ?></option> 
     18        <option value="above-dashboard" <?php selected( 'above-dashboard', $this->get_option( 'menu_location' ) ); ?>><?php _e( 'above the Dashboard menu', 'wp-help' ); ?></option> 
     19        <option value="below-dashboard" <?php selected( 'below-dashboard', $this->get_option( 'menu_location' ) ); ?>><?php _e( 'below the Dashboard menu', 'wp-help' ); ?></option> 
     20        <option value="bottom" <?php selected( 'bottom', $this->get_option( 'menu_location' ) ); ?>><?php _e( 'at the bottom', 'wp-help' ); ?></option> 
    2121    </select></p> 
    2222 
     
    2929<p><?php _e( 'Pull in help documents from this WP Help secret URL:', 'wp-help' ); ?><br /><input id="cws-wp-help-slurp-url" class="regular-text" type="text" value="<?php echo esc_url( $this->get_option( 'slurp_url' ) ); ?>" /></p> 
    3030 
    31 <p>Note:</p> 
     31<p><?php _e( 'Note:', 'wp-help' ); ?></p> 
    3232<ul> 
    33     <li>Sync pull refreshes automatically once a day.</li> 
    34     <li>You can manually refresh by saving the setting again.</li> 
    35     <li>Synced documents cannot be modified locally while syncing is still enabled.</li> 
     33    <li><?php _e( 'Sync pull refreshes automatically once a day.', 'wp-help' ); ?></li> 
     34    <li><?php _e( 'You can manually refresh by saving the setting again.', 'wp-help' ); ?></li> 
     35    <li><?php _e( 'Synced documents cannot be modified locally while syncing is still enabled.', 'wp-help' ); ?></li> 
    3636</ul> 
    3737 
    38 <p class="submit"><?php submit_button( __( 'Save Changes', 'wp-help' ), 'primary', 'cws-wp-help-settings-save', false ); ?> <a href="#" id="cws-wp-help-settings-cancel">Cancel</a></p> 
     38<p class="submit"><?php submit_button( __( 'Save Changes', 'wp-help' ), 'primary', 'cws-wp-help-settings-save', false ); ?> <a href="#" id="cws-wp-help-settings-cancel"><?php _e( 'Cancel', 'wp-help' ); ?></a></p> 
    3939 
    4040<div id="cws-wp-help-slurp-error"></div> 
  • wp-help/trunk/wp-help.php

    r573604 r573719  
    208208        if ( current_user_can( 'manage_options' ) && !current_user_can( 'edit_post', $id ) ) { 
    209209            // Post is remote. Explain 
    210             echo ' <small>&mdash; Remote document</small>'; 
     210            echo ' <small>' . __( '&mdash; Remote document', 'wp-help' ) . '</small>'; 
    211211        } 
    212212    } 
     
    420420            $slurp_url = stripslashes( $_POST['slurp_url'] ); 
    421421            if ( $slurp_url === $this->api_url() ) 
    422                 $error = __( 'What are you doing? You&#8217;re going to create an infinite loop!' ); 
     422                $error = __( 'What are you doing? You&#8217;re going to create an infinite loop!', 'wp-help' ); 
    423423            elseif ( empty( $slurp_url ) ) 
    424424                $this->options['slurp_url'] = ''; 
    425425            elseif ( strpos( $slurp_url, '?wp-help-key=' ) === false ) 
    426                 $error = __( 'That is not a WP Help URL. Make sure you copied it correctly.' ); 
     426                $error = __( 'That is not a WP Help URL. Make sure you copied it correctly.', 'wp-help' ); 
    427427            else 
    428428                $this->options['slurp_url'] = esc_url_raw( $slurp_url ); 
Note: See TracChangeset for help on using the changeset viewer.