Plugin Directory

Changeset 1444809


Ignore:
Timestamp:
06/28/2016 08:42:47 AM (10 years ago)
Author:
wadvisor
Message:

Localisation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-wadvisor/trunk/widget-wadvisor.php

    r1412102 r1444809  
    3131        parent::__construct(
    3232            'Wadvisor_Page_Widget', // Base ID
    33             __('Wadvisor page widget', 'wadvisor_page_widget_domain'), // Widget name will appear in UI
    34             array( 'description' => __( 'Generates a Wadvisor Page feed in your widget area.', 'wadvisor_page_widget_domain' ), ) // Args
     33            __('wadvisor-page-widget-name', 'wp-wadvisor'), // Widget name will appear in UI
     34            array( 'description' => __('wadvisor-page-widget-description', 'wp-wadvisor'), ) // Args
    3535        );
    3636
     
    140140            $title = $instance[ 'title' ];
    141141        } else {
    142             $title = __( 'Widget title', 'wadvisor_page_widget_domain' );
     142            $title = __('wadvisor-page-widget-default-title', 'wp-wadvisor');
    143143        }
    144144        if ( isset( $instance[ 'id' ] ) ) {
     
    179179        ?>
    180180        <p>
    181             <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
     181            <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e('wadvisor-page-widget-label-title', 'wp-wadvisor'); ?></label>
    182182            <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"
    183183        </p>
    184184        <p>
    185             <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e( 'Page id*:' ); ?></label>
     185            <label for="<?php echo $this->get_field_id( 'id' ); ?>"><?php _e('wadvisor-page-widget-label-id', 'wp-wadvisor'); ?></label>
    186186            <input class="widefat" id="<?php echo $this->get_field_id( 'id' ); ?>" name="<?php echo $this->get_field_name( 'id' ); ?>" type="text" value="<?php echo esc_attr( $id ); ?>" required="required">
    187187        </p>
    188188        <p>
    189             <label for="<?php echo $this->get_field_id( 'default_lang' ); ?>"><?php _e( 'Default language:' ); ?></label>
     189            <label for="<?php echo $this->get_field_id( 'default_lang' ); ?>"><?php _e('wadvisor-page-widget-label-default-language', 'wp-wadvisor'); ?></label>
    190190            <select class="widefat" id="<?php echo $this->get_field_id( 'default_lang' ); ?>" name="<?php echo $this->get_field_name( 'default_lang' ); ?>">
    191                 <option value="">Auto</option>
    192                 <option value="fr-fr" <?php echo ($default_lang=='fr-fr')?'selected':''; ?>>French (France)</option>
    193                 <option value="en-us" <?php echo ($default_lang=='en-us')?'selected':''; ?>>English (US)</option>
    194                 <option value="en-gb" <?php echo ($default_lang=='en-gb')?'selected':''; ?>>English (UK)</option>
     191                <option value=""><?php _e('wadvisor-page-widget-label-language-auto', 'wp-wadvisor'); ?></option>
     192                <option value="fr-fr" <?php echo ($default_lang=='fr-fr')?'selected':''; ?>><?php _e('wadvisor-page-widget-label-language-fr-fr', 'wp-wadvisor'); ?></option>
     193                <option value="en-us" <?php echo ($default_lang=='en-us')?'selected':''; ?>><?php _e('wadvisor-page-widget-label-language-en-us', 'wp-wadvisor'); ?></option>
     194                <option value="en-gb" <?php echo ($default_lang=='en-gb')?'selected':''; ?>><?php _e('wadvisor-page-widget-label-language-en-gb', 'wp-wadvisor'); ?></option>
    195195            </select>
    196196        </p>
    197197        <p>
    198             <label for="<?php echo $this->get_field_id( 'show_covers' ); ?>"><?php _e( 'Show covers:' ); ?></label>
     198            <label for="<?php echo $this->get_field_id( 'show_covers' ); ?>"><?php _e('wadvisor-page-widget-label-show-covers', 'wp-wadvisor'); ?></label>
    199199            <input class="widefat" id="<?php echo $this->get_field_id( 'show_covers' ); ?>" name="<?php echo $this->get_field_name( 'show_covers' ); ?>" type="checkbox" value="true" <?php echo ($show_covers=='true')?'checked':''; ?>>
    200200        </p>
    201201        <p>
    202             <label for="<?php echo $this->get_field_id( 'show_followers' ); ?>"><?php _e( 'Show followers:' ); ?></label>
     202            <label for="<?php echo $this->get_field_id( 'show_followers' ); ?>"><?php _e('wadvisor-page-widget-label-show-followers', 'wp-wadvisor'); ?></label>
    203203            <input class="widefat" id="<?php echo $this->get_field_id( 'show_followers' ); ?>" name="<?php echo $this->get_field_name( 'show_followers' ); ?>" type="checkbox" value="true" <?php echo ($show_followers=='true')?'checked':''; ?>>
    204204        </p>
    205205        <p>
    206             <label for="<?php echo $this->get_field_id( 'show_questions' ); ?>"><?php _e( 'Show questions:' ); ?></label>
     206            <label for="<?php echo $this->get_field_id( 'show_questions' ); ?>"><?php _e('wadvisor-page-widget-label-show-questions', 'wp-wadvisor'); ?></label>
    207207            <input class="widefat" id="<?php echo $this->get_field_id( 'show_questions' ); ?>" name="<?php echo $this->get_field_name( 'show_questions' ); ?>" type="checkbox" value="true" <?php echo ($show_questions=='true')?'checked':''; ?>>
    208208        </p>
    209209        <p>
    210             <label for="<?php echo $this->get_field_id( 'questions_limit' ); ?>"><?php _e( 'Questions limit:' ); ?></label>
     210            <label for="<?php echo $this->get_field_id( 'questions_limit' ); ?>"><?php _e('wadvisor-page-widget-label-questions-limit', 'wp-wadvisor'); ?></label>
    211211            <input class="widefat" id="<?php echo $this->get_field_id( 'questions_limit' ); ?>" name="<?php echo $this->get_field_name( 'questions_limit' ); ?>" type="text" value="<?php echo esc_attr( $questions_limit ); ?>">
    212212        </p>
    213213        <p>
    214             <label for="<?php echo $this->get_field_id( 'questions_max_height' ); ?>"><?php _e( 'Questions max height:' ); ?></label>
     214            <label for="<?php echo $this->get_field_id( 'questions_max_height' ); ?>"><?php _e('wadvisor-page-widget-label-max-height', 'wp-wadvisor'); ?></label>
    215215            <input class="widefat" id="<?php echo $this->get_field_id( 'questions_max_height' ); ?>" name="<?php echo $this->get_field_name( 'questions_max_height' ); ?>" type="text" value="<?php echo esc_attr( $questions_max_height ); ?>">
    216216        </p>
Note: See TracChangeset for help on using the changeset viewer.