Plugin Directory

Changeset 1306839


Ignore:
Timestamp:
12/12/2015 11:38:49 AM (10 years ago)
Author:
artcreativeme
Message:

language fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • fbook-page-widget-ex-like-box/trunk/wpvote-fbook-likebox-page.php

    r1301083 r1306839  
    1616        parent::__construct(
    1717            'vote_fb_like_box', /* Base ID */
    18             __( 'WPvote Facebook Likebox', 'vote-fb-likebox' ), /* Name */
    19             array( 'description' => __( 'WPvote Likebox Widget!', 'vote-fb-likebox' ), ) /* Args */
     18            __( 'WPvote Facebook Likebox', 'fbook-page-widget-ex-like-box' ), /* Name */
     19            array( 'description' => __( 'WPvote Likebox Widget!', 'fbook-page-widget-ex-like-box' ), ) /* Args */
    2020        );
    2121    }
     
    2525    public function form( $instance ) {
    2626        $instance = wp_parse_args( (array) $instance, array('title'=>'',  'width'=>'300', 'height'=>'280','page_name'=>'https://www.facebook.com/WpVote-394137057376939','show_friends_faces'=>'on','show_header'=>'on','show_post'=>'on','langlocale'=>'en_US','show_small'=>'','sdk_include'=>'on' ));
    27         if ( isset( $instance['title'] ) ) { $title = $instance['title']; } else { $title = __( 'Support us', 'vote-fb-likebox' ); }
     27        if ( isset( $instance['title'] ) ) { $title = $instance['title']; } else { $title = __( 'Support us', 'fbook-page-widget-ex-like-box' ); }
    2828        if ( isset( $instance['width'] ) ) { $width = $instance['width']; }else{ $width="300";}
    2929        if ( isset( $instance['height'] ) ) { $height = $instance['height']; }else{ $height="280";}
     
    3737        ?>
    3838        <p>
    39             <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title' ); ?>:</label>
     39            <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title','fbook-page-widget-ex-like-box' ); ?>:</label>
    4040            <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>"
    4141                   name="<?php echo $this->get_field_name( 'title' ); ?>" type="text"
     
    4545        <p>
    4646            <label
    47                 for="<?php echo $this->get_field_id( 'page_name' ); ?>"><?php _e( 'Facebook Page URL' ); ?>:</label>
     47                for="<?php echo $this->get_field_id( 'page_name' ); ?>"><?php _e( 'Facebook Page URL','fbook-page-widget-ex-like-box' ); ?>:</label>
    4848            <input class="widefat" id="<?php echo $this->get_field_id( 'page_name' ); ?>"
    4949                   name="<?php echo $this->get_field_name( 'page_name' ); ?>" type="text"
     
    5656                   value="on" <?php checked( $show_friends_faces, 'on' ); ?>>
    5757            <label
    58                 for="<?php echo $this->get_field_id( 'show_friends_faces' ); ?>"><?php _e( 'Show Friends\' Faces' ); ?></label>
     58                for="<?php echo $this->get_field_id( 'show_friends_faces' ); ?>"><?php _e( 'Show Friends\' Faces','fbook-page-widget-ex-like-box' ); ?></label>
    5959        </p>
    6060
     
    6363                   name="<?php echo $this->get_field_name( 'show_header' ); ?>" type="checkbox"
    6464                   value="on" <?php checked( $header_page, 'on' ); ?>>
    65             <label for="<?php echo $this->get_field_id( 'show_header' ); ?>"><?php _e( 'Show Header' ); ?></label>
     65            <label for="<?php echo $this->get_field_id( 'show_header' ); ?>"><?php _e( 'Show Header','fbook-page-widget-ex-like-box' ); ?></label>
    6666        </p>
    6767
     
    7070                   name="<?php echo $this->get_field_name( 'show_small' ); ?>" type="checkbox"
    7171                   value="on" <?php checked( $header_small, 'on' ); ?>>
    72             <label for="<?php echo $this->get_field_id( 'show_small' ); ?>"><?php _e( 'Show Small Header' ); ?></label>
     72            <label for="<?php echo $this->get_field_id( 'show_small' ); ?>"><?php _e( 'Show Small Header','fbook-page-widget-ex-like-box' ); ?></label>
    7373        </p>
    7474
     
    7777                   name="<?php echo $this->get_field_name( 'show_post' ); ?>" type="checkbox"
    7878                   value="on" <?php checked( $show_post, 'on' ); ?>>
    79             <label for="<?php echo $this->get_field_id( 'show_post' ); ?>"><?php _e( 'Show Posts' ); ?></label>
     79            <label for="<?php echo $this->get_field_id( 'show_post' ); ?>"><?php _e( 'Show Posts','fbook-page-widget-ex-like-box' ); ?></label>
    8080        </p>
    8181
     
    8484                   name="<?php echo $this->get_field_name( 'sdk_include' ); ?>" type="checkbox"
    8585                   value="on" <?php checked( $sdk_inc, 'on' ); ?>>
    86             <label for="<?php echo $this->get_field_id( 'sdk_include' ); ?>"><?php _e( 'Facebook SDK include' ); ?></label>
     86            <label for="<?php echo $this->get_field_id( 'sdk_include' ); ?>"><?php _e( 'Facebook SDK include','fbook-page-widget-ex-like-box' ); ?></label>
    8787        </p>
    8888
     
    9090         <p>
    9191            <label
    92                 for="<?php echo $this->get_field_id( 'width' ); ?>"><?php _e( 'Width' ); ?>:</label>
     92                for="<?php echo $this->get_field_id( 'width' ); ?>"><?php _e( 'Width','fbook-page-widget-ex-like-box' ); ?>:</label>
    9393            <input class="widefat" id="<?php echo $this->get_field_id( 'width' ); ?>"
    9494                   name="<?php echo $this->get_field_name( 'width' ); ?>" type="text"
     
    9898        <p>
    9999            <label
    100                 for="<?php echo $this->get_field_id( 'height' ); ?>"><?php _e( 'Height' ); ?>:</label>
     100                for="<?php echo $this->get_field_id( 'height' ); ?>"><?php _e( 'Height','fbook-page-widget-ex-like-box' ); ?>:</label>
    101101            <input class="widefat" id="<?php echo $this->get_field_id( 'height' ); ?>"
    102102                   name="<?php echo $this->get_field_name( 'height' ); ?>" type="text"
     
    106106       <p>
    107107        <?php
    108         echo '<p style="text-align:left;"><label for="' . $this->get_field_name('langlocale') . '">Set Language locale: <select name="' . $this->get_field_name('langlocale')  . '" id="' . $this->get_field_id('langlocale')  . '">"';
     108        echo '<p style="text-align:left;"><label for="' . $this->get_field_name('langlocale') . '">'._e('Set lang. locale','fbook-page-widget-ex-like-box').': <select name="' . $this->get_field_name('langlocale')  . '" id="' . $this->get_field_id('langlocale')  . '">"';
    109109        ?>
    110110        <option value="af_ZA" <?php if ($langlocalee == 'af_ZA') echo 'selected="af_ZA"'; ?> >Afrikaans</option>
Note: See TracChangeset for help on using the changeset viewer.