Plugin Directory

Changeset 2695272


Ignore:
Timestamp:
03/17/2022 08:54:51 AM (4 years ago)
Author:
stefanoginella
Message:

Make all strings ready for translation

Location:
saber-feedback-button
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • saber-feedback-button/tags/2.0.4/README.txt

    r2694812 r2695272  
    33Tags: feedback button, feedback form, feedback tool, feedback widget, saber feedback, bugmuncher
    44Tested up to: 5.9
    5 Stable tag: 2.0.3
     5Stable tag: 2.0.4
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666== Changelog ==
    6767
     68= 2.0.4 =
     69* Make all strings ready for translation.
     70
    6871= 2.0.3 =
    6972* Fix issue when cache is enabled.
  • saber-feedback-button/tags/2.0.4/saber-feedback-button.php

    r2694815 r2695272  
    44Plugin URI:  https://saberfeedback.com
    55Description: Include the Saber Feedback widget in your Wordpress site.
    6 Version:     2.0.3
     6Version:     2.0.4
    77Author:      Saber Feedback
    88License:     GPL2
     
    115115   */
    116116  public function add_page() {
    117     add_options_page('Saber Feedback Configuration', 'Saber Feedback', 'manage_options', 'saber-feedback', array(&$this, 'display_page'));
     117    add_options_page(__('Saber Feedback Configuration', 'saber-feedback-button'), __('Saber Feedback', 'saber-feedback-button'), 'manage_options', 'saber-feedback', array(&$this, 'display_page'));
    118118  }
    119119   
     
    124124    if(isset($this->options['language'])): ?>
    125125      <div id="legacy_options_warning" class="error notice">
    126         <p><strong>Saber Feedback settings are now managed from within the <a href="https://app.saberfeedback.com/" target="_blank">control panel</a>. Please make sure your feedback button is correctly configured in the control panel before clicking the Save button below.</strong></p>
     126        <p><strong><?php _e('Saber Feedback settings are now managed from within the <a href="https://app.saberfeedback.com/" target="_blank">control panel</a>. Please make sure your feedback button is correctly configured in the control panel before clicking the Save button below.', 'saber-feedback-button'); ?></strong></p>
    127127      </div>
    128128    <?php endif ?>
    129129
    130130    <div class="wrap">
    131       <h2>Saber Feedback</h2>
    132       <p>Thanks for using Saber Feedback! This plugin requires a Saber Feedback account, if you don't yet have one, you can sign up for free at <a href="https://saberfeedback.com/" target="_blank">saberfeedback.com</a>.</p>
     131      <h2><?php _e('Saber Feedback', 'saber-feedback-button'); ?></h2>
     132      <p><?php _e('Thanks for using Saber Feedback! This plugin requires a Saber Feedback account, if you don\'t yet have one, you can sign up for free at <a href="https://saberfeedback.com/" target="_blank">saberfeedback.com</a>.', 'saber-feedback-button'); ?></p>
    133133
    134134      <form method="post" action="options.php">
     
    136136        settings_fields('saberfeedback_settings');     
    137137        do_settings_sections('saberfeedback_settings');
    138         submit_button('Save');
     138        submit_button(__('Save', 'saber-feedback-button'));
    139139      ?>
    140140      </form>
    141       <h3>Form and Button Configuration</h3>
    142       <p>You can customise the feedback button and form by logging into the <a href="https://app.saberfeedback.com/" target="_blank">Saber Feedback control panel</a> and choosing <strong>Edit Website</strong> or <strong>Form Builder</strong> from the menu on the right.</p>
     141      <h3><?php _e('Form and Button Configuration', 'saber-feedback-button'); ?></h3>
     142      <p><?php _e('You can customise the feedback button and form by logging into the <a href="https://app.saberfeedback.com/" target="_blank">Saber Feedback control panel</a> and choosing <strong>Edit Website</strong> or <strong>Form Builder</strong> from the menu on the right.', 'saber-feedback-button'); ?></p>
    143143      <p>
    144         <a href="https://app.saberfeedback.com" class="button button-default" target="_blank">Go to Saber Feedback Control Panel</a>
     144        <a href="https://app.saberfeedback.com" class="button button-default" target="_blank"><?php _e('Go to Saber Feedback Control Panel', 'saber-feedback-button'); ?></a>
    145145      </p>
    146146    </div> <!-- /wrap -->
     
    153153  public function register_page_options() {
    154154    // Add Section for option fields
    155     add_settings_section('saberfeedback_api_section', 'Saber Feedback Connection', array(&$this, 'display_api_section'), 'saberfeedback_settings');
     155    add_settings_section('saberfeedback_api_section', __('Saber Feedback Connection', 'saber-feedback-button'), array(&$this, 'display_api_section'), 'saberfeedback_settings');
    156156     
    157157    // Add API key Field
    158158    add_settings_field(
    159159      'saberfeedback_api_key_field',                  // id
    160       'Public API Key',                               // name
     160      __('Public API Key', 'saber-feedback-button'),  // name
    161161      array(&$this, 'render_api_key_field'),          // display method ($this->render_api_key_field)
    162162      'saberfeedback_settings',                       // page
     
    167167    add_settings_field(
    168168      'saberfeedback_visibility_field',               // id
    169       'Load Saber Feedback for',                      // name
     169      __('Load Saber Feedback for', 'saber-feedback-button'), // name
    170170      array(&$this, 'render_visibility_field'),       // display method ($this->render_visibility_field)
    171171      'saberfeedback_settings',                       // page
     
    184184    if ( $pagenow == 'options-general.php' ) {
    185185         echo '<div class="notice notice-warning is-dismissible">
    186              <p>This notice appears on the settings page.</p>
     186             <p>' . __('This notice appears on the settings page.', 'saber-feedback-button') . '</p>
    187187         </div>';
    188188    }
     
    198198    $api_key = strip_tags( stripslashes( trim( $fields['api_key'] )));
    199199    if($api_key == ''){
    200       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', 'Public API Key is required to use Saber Feedback', 'error');
     200      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', __('Public API Key is required to use Saber Feedback', 'saber-feedback-button'), 'error');
    201201    }
    202202    elseif(preg_match('/^(?=[a-f0-9]*$)(?:.{20}|.{40})$/i', $api_key ) == 0){
    203       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', 'API Key is not in the correct format. Please check and try again', 'error');
     203      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', __('API Key is not in the correct format. Please check and try again', 'saber-feedback-button'), 'error');
    204204    }
    205205       
     
    215215    if( function_exists('w3tc_flush_all') ) {
    216216      w3tc_flush_all();
    217       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your W3 Total Cache has been automatically cleared.', 'success');
     217      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your W3 Total Cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    218218      $cacheCleared = true;
    219219    }
     
    223223    if( function_exists('WP_Optimize') ) {
    224224      WP_Optimize()->get_page_cache()->purge();
    225       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Optimize cache has been automatically cleared.', 'success');
     225      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Optimize cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    226226      $cacheCleared = true;
    227227    }
     
    231231    if( function_exists('rocket_clean_domain') ) {
    232232      rocket_clean_domain();
    233       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Rocket cache has been automatically cleared.', 'success');
     233      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Rocket cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    234234      $cacheCleared = true;
    235235    }
     
    239239    if( function_exists('wp_cache_clear_cache')) {
    240240      wp_cache_clear_cache();
    241       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Super Cache has been automatically cleared.', 'success');
     241      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Super Cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    242242      $cacheCleared = true;
    243243    }
     
    247247    if( function_exists('sg_cachepress_purge_cache')) {
    248248      sg_cachepress_purge_cache();
    249       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your SiteGround Optimizer cache has been automatically cleared.', 'success');
     249      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your SiteGround Optimizer cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    250250      $cacheCleared = true;
    251251    }
     
    255255    if (class_exists('autoptimizeCache')) {
    256256      autoptimizeCache::clearall();
    257       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Autoptimize cache has been automatically cleared.', 'success');
     257      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Autoptimize cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    258258      $cacheCleared = true;
    259259    }
     
    263263    if (has_action('cache_enabler_clear_complete_cache')) {
    264264      do_action( 'cache_enabler_clear_complete_cache' );
    265       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Cache Enabler cache has been automatically cleared.', 'success');
     265      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Cache Enabler cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    266266      $cacheCleared = true;
    267267    }
     
    271271    if (has_action('wphb_clear_page_cache')) {
    272272      do_action( 'wphb_clear_page_cache' );
    273       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Hummingbird cache has been automatically cleared.', 'success');
     273      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Hummingbird cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    274274      $cacheCleared = true;
    275275    }
     
    277277    // WP Fastest Cache cannot be cleared automatically, and it's not detected by the condition below, so we need to chec this
    278278    if (class_exists('WpFastestCache')) {
    279       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. You need to clear your WP Fastest Cache after updating these settings.', 'warning');
     279      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. You need to clear your WP Fastest Cache after updating these settings.', 'saber-feedback-button'), 'warning');
    280280      $cacheCleared = true;
    281281    }
     
    283283    // For all other plugins, display a warning message
    284284    if ( ! $cacheCleared && defined( 'WP_CACHE' ) && WP_CACHE) {
    285       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. You need to clear your WordPress cache after updating these settings.', 'warning');
     285      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. You need to clear your WordPress cache after updating these settings.', 'saber-feedback-button'), 'warning');
    286286    }
    287287   
     
    293293   */
    294294  public function display_api_section() {
    295     echo '<p>Enter your public API key to connect to Saber Feedback, you can find your public API key at the top of the screen below your website name when you log in to <a href="https://app.saberfeedback.com/" target="_blank">app.saberfeedback.com</a>.</p>';
     295    echo '<p>' . __('Enter your public API key to connect to Saber Feedback, you can find your public API key at the top of the screen below your website name when you log in to <a href="https://app.saberfeedback.com/" target="_blank">app.saberfeedback.com</a>.', 'saber-feedback-button') . '</p>';
    296296  }
    297297   
     
    307307    $html = '<select name="saberfeedback_settings_options[visibility]">';
    308308
    309     $html .= '<option value="all"'.selected($this->options['visibility'], 'all', false).'>All Visitors</option>';
    310     $html .= '<option value="users"'.selected($this->options['visibility'], 'users', false).'>Logged in users only</option>';
    311     $html .= '<option value="guests"'.selected($this->options['visibility'], 'guests', false).'>Guests only</option>';
     309    $html .= '<option value="all"'.selected($this->options['visibility'], 'all', false).'>' . __('All Visitors', 'saber-feedback-button') . '</option>';
     310    $html .= '<option value="users"'.selected($this->options['visibility'], 'users', false).'>' . __('Logged in users only', 'saber-feedback-button') . '</option>';
     311    $html .= '<option value="guests"'.selected($this->options['visibility'], 'guests', false).'>' . __('Guests only', 'saber-feedback-button') . '</option>';
    312312
    313313    $html .= '</select>';
  • saber-feedback-button/trunk/README.txt

    r2694812 r2695272  
    33Tags: feedback button, feedback form, feedback tool, feedback widget, saber feedback, bugmuncher
    44Tested up to: 5.9
    5 Stable tag: 2.0.3
     5Stable tag: 2.0.4
    66License: GPLv2 or later
    77License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6666== Changelog ==
    6767
     68= 2.0.4 =
     69* Make all strings ready for translation.
     70
    6871= 2.0.3 =
    6972* Fix issue when cache is enabled.
  • saber-feedback-button/trunk/saber-feedback-button.php

    r2694815 r2695272  
    44Plugin URI:  https://saberfeedback.com
    55Description: Include the Saber Feedback widget in your Wordpress site.
    6 Version:     2.0.3
     6Version:     2.0.4
    77Author:      Saber Feedback
    88License:     GPL2
     
    115115   */
    116116  public function add_page() {
    117     add_options_page('Saber Feedback Configuration', 'Saber Feedback', 'manage_options', 'saber-feedback', array(&$this, 'display_page'));
     117    add_options_page(__('Saber Feedback Configuration', 'saber-feedback-button'), __('Saber Feedback', 'saber-feedback-button'), 'manage_options', 'saber-feedback', array(&$this, 'display_page'));
    118118  }
    119119   
     
    124124    if(isset($this->options['language'])): ?>
    125125      <div id="legacy_options_warning" class="error notice">
    126         <p><strong>Saber Feedback settings are now managed from within the <a href="https://app.saberfeedback.com/" target="_blank">control panel</a>. Please make sure your feedback button is correctly configured in the control panel before clicking the Save button below.</strong></p>
     126        <p><strong><?php _e('Saber Feedback settings are now managed from within the <a href="https://app.saberfeedback.com/" target="_blank">control panel</a>. Please make sure your feedback button is correctly configured in the control panel before clicking the Save button below.', 'saber-feedback-button'); ?></strong></p>
    127127      </div>
    128128    <?php endif ?>
    129129
    130130    <div class="wrap">
    131       <h2>Saber Feedback</h2>
    132       <p>Thanks for using Saber Feedback! This plugin requires a Saber Feedback account, if you don't yet have one, you can sign up for free at <a href="https://saberfeedback.com/" target="_blank">saberfeedback.com</a>.</p>
     131      <h2><?php _e('Saber Feedback', 'saber-feedback-button'); ?></h2>
     132      <p><?php _e('Thanks for using Saber Feedback! This plugin requires a Saber Feedback account, if you don\'t yet have one, you can sign up for free at <a href="https://saberfeedback.com/" target="_blank">saberfeedback.com</a>.', 'saber-feedback-button'); ?></p>
    133133
    134134      <form method="post" action="options.php">
     
    136136        settings_fields('saberfeedback_settings');     
    137137        do_settings_sections('saberfeedback_settings');
    138         submit_button('Save');
     138        submit_button(__('Save', 'saber-feedback-button'));
    139139      ?>
    140140      </form>
    141       <h3>Form and Button Configuration</h3>
    142       <p>You can customise the feedback button and form by logging into the <a href="https://app.saberfeedback.com/" target="_blank">Saber Feedback control panel</a> and choosing <strong>Edit Website</strong> or <strong>Form Builder</strong> from the menu on the right.</p>
     141      <h3><?php _e('Form and Button Configuration', 'saber-feedback-button'); ?></h3>
     142      <p><?php _e('You can customise the feedback button and form by logging into the <a href="https://app.saberfeedback.com/" target="_blank">Saber Feedback control panel</a> and choosing <strong>Edit Website</strong> or <strong>Form Builder</strong> from the menu on the right.', 'saber-feedback-button'); ?></p>
    143143      <p>
    144         <a href="https://app.saberfeedback.com" class="button button-default" target="_blank">Go to Saber Feedback Control Panel</a>
     144        <a href="https://app.saberfeedback.com" class="button button-default" target="_blank"><?php _e('Go to Saber Feedback Control Panel', 'saber-feedback-button'); ?></a>
    145145      </p>
    146146    </div> <!-- /wrap -->
     
    153153  public function register_page_options() {
    154154    // Add Section for option fields
    155     add_settings_section('saberfeedback_api_section', 'Saber Feedback Connection', array(&$this, 'display_api_section'), 'saberfeedback_settings');
     155    add_settings_section('saberfeedback_api_section', __('Saber Feedback Connection', 'saber-feedback-button'), array(&$this, 'display_api_section'), 'saberfeedback_settings');
    156156     
    157157    // Add API key Field
    158158    add_settings_field(
    159159      'saberfeedback_api_key_field',                  // id
    160       'Public API Key',                               // name
     160      __('Public API Key', 'saber-feedback-button'),  // name
    161161      array(&$this, 'render_api_key_field'),          // display method ($this->render_api_key_field)
    162162      'saberfeedback_settings',                       // page
     
    167167    add_settings_field(
    168168      'saberfeedback_visibility_field',               // id
    169       'Load Saber Feedback for',                      // name
     169      __('Load Saber Feedback for', 'saber-feedback-button'), // name
    170170      array(&$this, 'render_visibility_field'),       // display method ($this->render_visibility_field)
    171171      'saberfeedback_settings',                       // page
     
    184184    if ( $pagenow == 'options-general.php' ) {
    185185         echo '<div class="notice notice-warning is-dismissible">
    186              <p>This notice appears on the settings page.</p>
     186             <p>' . __('This notice appears on the settings page.', 'saber-feedback-button') . '</p>
    187187         </div>';
    188188    }
     
    198198    $api_key = strip_tags( stripslashes( trim( $fields['api_key'] )));
    199199    if($api_key == ''){
    200       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', 'Public API Key is required to use Saber Feedback', 'error');
     200      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', __('Public API Key is required to use Saber Feedback', 'saber-feedback-button'), 'error');
    201201    }
    202202    elseif(preg_match('/^(?=[a-f0-9]*$)(?:.{20}|.{40})$/i', $api_key ) == 0){
    203       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', 'API Key is not in the correct format. Please check and try again', 'error');
     203      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_error', __('API Key is not in the correct format. Please check and try again', 'saber-feedback-button'), 'error');
    204204    }
    205205       
     
    215215    if( function_exists('w3tc_flush_all') ) {
    216216      w3tc_flush_all();
    217       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your W3 Total Cache has been automatically cleared.', 'success');
     217      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your W3 Total Cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    218218      $cacheCleared = true;
    219219    }
     
    223223    if( function_exists('WP_Optimize') ) {
    224224      WP_Optimize()->get_page_cache()->purge();
    225       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Optimize cache has been automatically cleared.', 'success');
     225      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Optimize cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    226226      $cacheCleared = true;
    227227    }
     
    231231    if( function_exists('rocket_clean_domain') ) {
    232232      rocket_clean_domain();
    233       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Rocket cache has been automatically cleared.', 'success');
     233      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Rocket cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    234234      $cacheCleared = true;
    235235    }
     
    239239    if( function_exists('wp_cache_clear_cache')) {
    240240      wp_cache_clear_cache();
    241       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your WP Super Cache has been automatically cleared.', 'success');
     241      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your WP Super Cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    242242      $cacheCleared = true;
    243243    }
     
    247247    if( function_exists('sg_cachepress_purge_cache')) {
    248248      sg_cachepress_purge_cache();
    249       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your SiteGround Optimizer cache has been automatically cleared.', 'success');
     249      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your SiteGround Optimizer cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    250250      $cacheCleared = true;
    251251    }
     
    255255    if (class_exists('autoptimizeCache')) {
    256256      autoptimizeCache::clearall();
    257       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Autoptimize cache has been automatically cleared.', 'success');
     257      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Autoptimize cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    258258      $cacheCleared = true;
    259259    }
     
    263263    if (has_action('cache_enabler_clear_complete_cache')) {
    264264      do_action( 'cache_enabler_clear_complete_cache' );
    265       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Cache Enabler cache has been automatically cleared.', 'success');
     265      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Cache Enabler cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    266266      $cacheCleared = true;
    267267    }
     
    271271    if (has_action('wphb_clear_page_cache')) {
    272272      do_action( 'wphb_clear_page_cache' );
    273       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. Your Hummingbird cache has been automatically cleared.', 'success');
     273      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. Your Hummingbird cache has been automatically cleared.', 'saber-feedback-button'), 'success');
    274274      $cacheCleared = true;
    275275    }
     
    277277    // WP Fastest Cache cannot be cleared automatically, and it's not detected by the condition below, so we need to chec this
    278278    if (class_exists('WpFastestCache')) {
    279       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. You need to clear your WP Fastest Cache after updating these settings.', 'warning');
     279      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. You need to clear your WP Fastest Cache after updating these settings.', 'saber-feedback-button'), 'warning');
    280280      $cacheCleared = true;
    281281    }
     
    283283    // For all other plugins, display a warning message
    284284    if ( ! $cacheCleared && defined( 'WP_CACHE' ) && WP_CACHE) {
    285       add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', 'Settings saved. You need to clear your WordPress cache after updating these settings.', 'warning');
     285      add_settings_error('saberfeedback_settings_options', 'saberfeedback_bg_warning', __('Settings saved. You need to clear your WordPress cache after updating these settings.', 'saber-feedback-button'), 'warning');
    286286    }
    287287   
     
    293293   */
    294294  public function display_api_section() {
    295     echo '<p>Enter your public API key to connect to Saber Feedback, you can find your public API key at the top of the screen below your website name when you log in to <a href="https://app.saberfeedback.com/" target="_blank">app.saberfeedback.com</a>.</p>';
     295    echo '<p>' . __('Enter your public API key to connect to Saber Feedback, you can find your public API key at the top of the screen below your website name when you log in to <a href="https://app.saberfeedback.com/" target="_blank">app.saberfeedback.com</a>.', 'saber-feedback-button') . '</p>';
    296296  }
    297297   
     
    307307    $html = '<select name="saberfeedback_settings_options[visibility]">';
    308308
    309     $html .= '<option value="all"'.selected($this->options['visibility'], 'all', false).'>All Visitors</option>';
    310     $html .= '<option value="users"'.selected($this->options['visibility'], 'users', false).'>Logged in users only</option>';
    311     $html .= '<option value="guests"'.selected($this->options['visibility'], 'guests', false).'>Guests only</option>';
     309    $html .= '<option value="all"'.selected($this->options['visibility'], 'all', false).'>' . __('All Visitors', 'saber-feedback-button') . '</option>';
     310    $html .= '<option value="users"'.selected($this->options['visibility'], 'users', false).'>' . __('Logged in users only', 'saber-feedback-button') . '</option>';
     311    $html .= '<option value="guests"'.selected($this->options['visibility'], 'guests', false).'>' . __('Guests only', 'saber-feedback-button') . '</option>';
    312312
    313313    $html .= '</select>';
Note: See TracChangeset for help on using the changeset viewer.