Plugin Directory

Changeset 1460156


Ignore:
Timestamp:
07/25/2016 11:06:45 AM (10 years ago)
Author:
nelio
Message:

Preparing code for i18n

Location:
nelio-featured-posts/trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • nelio-featured-posts/trunk/includes/admin/ajax.php

    r993086 r1460156  
    2929            'base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
    3030            'attachment-thumbnail wp-post-image neliofp-no-thumbnail',
    31             __( 'No featured image available', 'neliofp' )
     31            __( 'No featured image available', 'nelio-featured-posts' )
    3232        );
    3333
     
    7575            'base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7',
    7676            'attachment-thumbnail wp-post-image neliofp-no-thumbnail',
    77             __( 'No featured image available', 'neliofp' )
     77            __( 'No featured image available', 'nelio-featured-posts' )
    7878        );
    7979
  • nelio-featured-posts/trunk/includes/admin/settings-page.php

    r1307825 r1460156  
    117117
    118118        <br><br>
    119         <h4><?php _e( 'These are your featured posts:', 'neliofp' ); ?></h4>
     119        <h4><?php _e( 'These are your featured posts:', 'nelio-featured-posts' ); ?></h4>
    120120        <div id="neliofp-list-of-feat-posts">
    121121        </div>
     
    135135            });
    136136            var nofp = '<span class="no-nelio-fp">' + <?php
    137                 echo wp_json_encode( __( 'None.<br><br><em>Add your first featured post using the selector above.</em>', 'neliofp' ) );
     137                echo wp_json_encode( __( 'None.<br><br><em>Add your first featured post using the selector above.</em>', 'nelio-featured-posts' ) );
    138138            ?> + '</span>';
    139139            function addFeatPost( id, position ) {
     
    167167                        content += '</div><div class="row-actions"><span class="delete" data-post_id="';
    168168                        content += data.id;
    169                         content += '"><a href="#"><?php echo str_replace( '\'', '\\\'', __( 'Delete' ) ); ?></a>';
     169                        content += '"><a href="#"><?php echo str_replace( '\'', '\\\'', __( 'Delete', 'nelio-featured-posts' ) ); ?></a>';
    170170                        content += '</span>';
    171171                        node.html( content );
  • nelio-featured-posts/trunk/includes/utils.php

    r998440 r1460156  
    2626
    2727function neliofp_the_post_searcher( $field_id, $classes = array() ) {
    28     $placeholder = __( 'Select a post...', 'nelioab' );
     28    $placeholder = __( 'Select a post...', 'nelio-featured-posts' );
    2929    $searcher_type = 'post-searcher post';
    3030    ?>
  • nelio-featured-posts/trunk/includes/widget.php

    r1307829 r1460156  
    1010
    1111            // Widget name will appear in UI
    12             __('Featured Posts by Nelio', 'neliofp'),
     12            __('Featured Posts by Nelio', 'nelio-featured-posts'),
    1313
    1414            // Widget description
    15             array( 'description' => __( 'Display a list of your featured posts.', 'neliofp' ), )
     15            array( 'description' => __( 'Display a list of your featured posts.', 'nelio-featured-posts' ), )
    1616        );
    1717
     
    5050        }
    5151        else {
    52             echo '<p class="neliofp-none">' . __( 'No featured posts.' ) . '</p>';
     52            echo '<p class="neliofp-none">' . __( 'No featured posts.', 'nelio-featured-posts' ) . '</p>';
    5353        }
    5454        $post = $ori_post;
     
    5959    public function form( $instance ) {
    6060        if ( isset( $instance['title'] ) ) $title = $instance['title'];
    61         else $title = __( 'Featured Posts', 'neliofp' );
     61        else $title = __( 'Featured Posts', 'nelio-featured-posts' );
    6262        if ( isset( $instance['template'] ) ) $template = $instance['template'];
    6363        else $template = '';
     
    7272        </p>
    7373        <p>
    74             <label for="<?php echo $this->get_field_id( 'template' ); ?>"><?php _e( 'Template (without the «.php» extension):', 'neliofp' ); ?></label>
     74            <label for="<?php echo $this->get_field_id( 'template' ); ?>"><?php _e( 'Template (without the «.php» extension):', 'nelio-featured-posts' ); ?></label>
    7575            <input
    7676                class="widefat" type="text" placeholder="Default"
  • nelio-featured-posts/trunk/main.php

    r1307829 r1460156  
    2020 * Plugin Name: Nelio Featured Posts
    2121 * Description: Select the featured posts you want to show at any time and include them in your theme using a widget.
    22  * Version: 2.2.0
     22 * Version: 2.2.1
    2323 * Author: Nelio Software
    2424 * Plugin URI: http://neliosoftware.com
    25  * Text Domain: neliofp
     25 * Text Domain: nelio-featured-posts
     26 * Domain Path: /languages
    2627 */
    2728
     
    2930// PLUGIN INFORMATION
    3031// ==========================================================================
    31     define( 'NELIOFP_PLUGIN_VERSION', '2.2.0' );
     32    define( 'NELIOFP_PLUGIN_VERSION', '2.2.1' );
    3233    define( 'NELIOFP_PLUGIN_NAME', 'Nelio Featured Posts' );
    3334    define( 'NELIOFP_PLUGIN_DIR_NAME', basename( dirname( __FILE__ ) ) );
Note: See TracChangeset for help on using the changeset viewer.