WordPress.org

Plugin Directory

Changeset 609542


Ignore:
Timestamp:
10/08/12 11:46:45 (5 years ago)
Author:
jtallant
Message:

Added translation support

Location:
genesis-bootstrap-carousel/trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • genesis-bootstrap-carousel/trunk/admin.php

    r609012 r609542  
    77 * Return the defaults array 
    88 * 
    9  * @since 0.9 
     9 * @since 0.1.0 
    1010 */ 
    1111function genesis_bootstrap_carousel_defaults() { 
     
    223223 * This function generates the form code to be used in the metaboxes 
    224224 * 
    225  * @since 0.9 
     225 * @since 0.1.0 
    226226 */ 
    227227function genesis_bootstrap_carousel_options_box() { 
  • genesis-bootstrap-carousel/trunk/genesis-bootstrap-carousel.php

    r609012 r609542  
    77    Author URI: http://justintallant.com 
    88 
    9     Version: 0.1.0 
     9    Version: 0.1.1 
    1010 
    1111    License: GNU General Public License v2.0 (or later) 
     
    2727 
    2828    // translation support 
    29     // TODO: Generate translation files 
    30     // load_plugin_textdomain( 'genesis-bootstrap-carousel', false, '/genesis-bootstrap-carousel/languages/' ); 
    31      
     29    load_plugin_textdomain( 'genesis-bootstrap-carousel', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' ); 
     30 
    3231    /** hook all frontend slider functions here to ensure Genesis is active **/ 
    3332    add_action( 'wp_enqueue_scripts', 'genesis_bootstrap_carousel_scripts' ); 
     
    386385 
    387386        echo '<p><label for="', $this->get_field_id( 'title' ), '">'; _e( 'Title:', 'genesis-bootstrap-carousel' ); echo '<input class="widefat" id="', $this->get_field_id( 'title' ), '" name="', $this->get_field_name( 'title' ), '" type="text" value="', esc_attr( $title ), '" /></label></p>'; 
    388         printf( __( '<p>To configure slider options, please go to the <a href="%s">Carousel Settings</a> page.</p>', 'genesis-bootstrap-carousel' ), menu_page_url( 'genesis_bootstrap_carousel', 0 ) ); 
     387        printf( '<p>' . __( 'To configure slider options, please go to the <a href="%s">Carousel Settings</a> page.', 'genesis-bootstrap-carousel' ) . '</p>', menu_page_url( 'genesis_bootstrap_carousel', 0 ) ); 
    389388    } 
    390389 
     
    431430} 
    432431 
     432/** 
     433 * Determines if the current page/post id should load the plugin css/js 
     434 * 
     435 * @return boolean 
     436 */ 
    433437function gbc_is_included_page_id() { 
    434438 
  • genesis-bootstrap-carousel/trunk/readme.txt

    r609012 r609542  
    33Requires at least: 3.2 
    44Tested up to: 3.4.2 
    5 Stable tag: 0.1.0 
     5Stable tag: 0.1.1 
    66 
    77This plugin allows you to create a simple responsive image carousel that displays the featured image, along with the title and excerpt from each post. 
     
    7272= 0.1.0 = 
    7373* Beta Release 
     74 
     75= 0.1.1 = 
     76* Add translation support 
Note: See TracChangeset for help on using the changeset viewer.