Plugin Directory

Changeset 2625738


Ignore:
Timestamp:
11/07/2021 07:44:56 PM (4 years ago)
Author:
stephend
Message:

Fix localization stuff (possibly). Untested.

Location:
smart-app-banner/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • smart-app-banner/trunk/readme.txt

    r2625731 r2625738  
    33Donate link: http://www.wandlesoftware.com/products/open-source-software/wordpress-smart-app-banner-plugin
    44Tags: ios, iphone, ipad, smart, app, banner, apple
    5 Requires at least: 3.1.4
     5Requires at least: 4.6
    66Tested up to: 5.8.1
    77Stable tag: 1.1.2
  • smart-app-banner/trunk/wsl-smart-app-banner.php

    r1916550 r2625738  
    99Description: Makes the Smart App Banner appear on iOS6 and above.
    1010Author: Stephen Darlington, Wandle Software Limited
    11 Text Domain: wsl-smart-app-banner
     11Text Domain: smart-app-banner
    1212Version: 1.1.2
    1313Author URI: http://www.wandlesoftware.com/
     
    3030    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
    3131*/
    32 
    33 function wsl_smart_app_banner_init() {
    34  $plugin_dir = basename(dirname(__FILE__));
    35  load_plugin_textdomain( 'wsl-smart-app-banner', false, $plugin_dir );
    36 }
    37 add_action('plugins_loaded', 'wsl_smart_app_banner_init');
    3832
    3933function wsl_output_safari_app_banner($post_ID) {
     
    10498// Admin menu gubbins
    10599function wsl_smart_app_banner_admin_menu() {
    106   add_options_page( __('Smart App Banner Settings', 'wsl-smart-app-banner'),
    107                     __('Smart App Banner', 'wsl-smart-app-banner'),
     100  add_options_page( __('Smart App Banner Settings', 'smart-app-banner'),
     101                    __('Smart App Banner', 'smart-app-banner'),
    108102                    'manage_options',
    109103                    'wsl-smart-app-banner',
     
    166160          // Put an settings updated message on the screen
    167161?>
    168 <div class="updated"><p><strong><?php  _e( 'app added.', 'wsl-smart-app-banner' ); ?></strong></p></div>
     162<div class="updated"><p><strong><?php  _e( 'app added.', 'smart-app-banner' ); ?></strong></p></div>
    169163<?php
    170164        }
     
    196190
    197191?>
    198 <div class="updated"><p><strong><?php _e('settings saved.', 'wsl-smart-app-banner' ); ?></strong></p></div>
     192<div class="updated"><p><strong><?php _e('settings saved.', 'smart-app-banner' ); ?></strong></p></div>
    199193<?php
    200194      }
     
    210204
    211205?>
    212       <div class="updated"><p><strong><?php _e('deleted ', 'wsl-smart-app-banner' ); ?></strong></p></div>
     206      <div class="updated"><p><strong><?php _e('deleted ', 'smart-app-banner' ); ?></strong></p></div>
    213207<?php
    214208      }
     
    221215    // header
    222216
    223     echo "<h2>" . __( 'Smart App Banner Settings', 'wsl-smart-app-banner' ) . "</h2>";
     217    echo "<h2>" . __( 'Smart App Banner Settings', 'smart-app-banner' ) . "</h2>";
    224218
    225219    // settings form
     
    230224<input type="hidden" name="<?php echo $hidden_field_name; ?>" value="Y">
    231225
    232 <h3><?php _e('Homepage', 'wsl-smart-app-banner'); ?></h3>
    233 <p><?php _e('These values are used on your home page. (Leave blank if no banner is required.)', 'wsl-smart-app-banner'); ?></p>
     226<h3><?php _e('Homepage', 'smart-app-banner'); ?></h3>
     227<p><?php _e('These values are used on your home page. (Leave blank if no banner is required.)', 'smart-app-banner'); ?></p>
    234228
    235229<table>
    236230  <tr>
    237     <td><?php _e('App ID:','wsl-smart-app-banner'); ?></td>
     231    <td><?php _e('App ID:','smart-app-banner'); ?></td>
    238232    <td><input type="text" name="<?php echo $appid_field_name; ?>" value="<?php echo $appid_val; ?>" /></td>
    239233  </tr>
    240234
    241235  <tr>
    242     <td><?php _e('App ID (iPad):','wsl-smart-app-banner'); ?></td>
    243     <td><input type="text" name="<?php echo $appid_ipad_field_name; ?>" value="<?php echo $appid_ipad_val; ?>" /> <?php _e('(optional)', 'wsl-smart-app-banner'); ?></td>
    244   </tr>
    245 
    246   <tr>
    247     <td><?php _e('Affiliate data:','wsl-smart-app-banner'); ?></td>
     236    <td><?php _e('App ID (iPad):','smart-app-banner'); ?></td>
     237    <td><input type="text" name="<?php echo $appid_ipad_field_name; ?>" value="<?php echo $appid_ipad_val; ?>" /> <?php _e('(optional)', 'smart-app-banner'); ?></td>
     238  </tr>
     239
     240  <tr>
     241    <td><?php _e('Affiliate data:','smart-app-banner'); ?></td>
    248242    <td><input type="text" name="<?php echo $affiliate_field_name; ?>" value="<?php echo $affiliate_val; ?>" /></td>
    249243  </tr>
    250244
    251245  <tr>
    252     <td><?php _e('App argument:','wsl-smart-app-banner'); ?></td>
     246    <td><?php _e('App argument:','smart-app-banner'); ?></td>
    253247    <td><input type="text" name="<?php echo $argument_field_name; ?>" value="<?php echo $argument_val; ?>" /></td>
    254248  </tr>
    255249
    256250  <tr>
    257     <td><?php _e('Show on all pages:','wsl-smart-app-banner'); ?></td>
     251    <td><?php _e('Show on all pages:','smart-app-banner'); ?></td>
    258252    <td><input type="checkbox" name="<?php echo $global_banner_field_name; ?>" value="Yes" <?php if ($global_banner_val == "Yes") { echo "checked"; } ?> /></td>
    259253  </tr>
     
    266260</p>
    267261
    268 <h3><?php _e('Apps', 'wsl-smart-app-banner'); ?></h3>
     262<h3><?php _e('Apps', 'smart-app-banner'); ?></h3>
    269263
    270264<table>
    271265  <tr>
    272266    <td>&nbsp;</td>
    273     <td><h4><?php _e('App name','wsl-smart-app-banner'); ?></h4></td>
    274     <td><h4><?php _e('App ID','wsl-smart-app-banner'); ?></h4></td>
    275     <td><h4><?php _e('App ID (iPad):','wsl-smart-app-banner'); ?></h4></td>
    276     <td><h4><?php _e('Affiliate data:','wsl-smart-app-banner'); ?></h4></td>
    277     <td><h4><?php _e('App argument:','wsl-smart-app-banner'); ?></h4></td>
     267    <td><h4><?php _e('App name','smart-app-banner'); ?></h4></td>
     268    <td><h4><?php _e('App ID','smart-app-banner'); ?></h4></td>
     269    <td><h4><?php _e('App ID (iPad):','smart-app-banner'); ?></h4></td>
     270    <td><h4><?php _e('Affiliate data:','smart-app-banner'); ?></h4></td>
     271    <td><h4><?php _e('App argument:','smart-app-banner'); ?></h4></td>
    278272    <td>&nbsp;</td>
    279273  </tr>
     
    333327      add_meta_box(
    334328          'wsl_smart_app_banner_id',          // this is HTML id of the box on edit screen
    335           __('Smart App Banner','wsl-smart-app-banner'),    // title of the box
     329          __('Smart App Banner','smart-app-banner'),    // title of the box
    336330          'wsl_smart_app_banner_display_options',   // function to be called to display the checkboxes, see the function below
    337331          $element,        // on which edit screen the box should appear
     
    375369      </script>
    376370      <tr>
    377         <td><?php _e('Apps:','wsl-smart-app-banner'); ?></td>
     371        <td><?php _e('Apps:','smart-app-banner'); ?></td>
    378372        <td><select id="wsl-app-selection"><option></option>
    379373        <?php
     
    388382    ?>
    389383      <tr>
    390         <td><?php _e('App ID:','wsl-smart-app-banner'); ?></td>
     384        <td><?php _e('App ID:','smart-app-banner'); ?></td>
    391385        <td><input id="app_id" type="text" name="wsl_smart_app_banner_app_id" value="<?php echo $app_id_list[0]; ?>" /></td>
    392386      </tr>
    393387      <tr>
    394         <td><?php _e('App ID (iPad):','wsl-smart-app-banner'); ?></td>
    395         <td><input id="app_id_ipad" type="text" name="wsl_smart_app_banner_app_id_ipad" value="<?php echo $app_id_ipad_list[0]; ?>" /> <?php _e('(optional)', 'wsl-smart-app-banner'); ?></td>
     388        <td><?php _e('App ID (iPad):','smart-app-banner'); ?></td>
     389        <td><input id="app_id_ipad" type="text" name="wsl_smart_app_banner_app_id_ipad" value="<?php echo $app_id_ipad_list[0]; ?>" /> <?php _e('(optional)', 'smart-app-banner'); ?></td>
    396390      </tr>
    397391      <tr>
    398         <td><?php _e('Affiliate data:','wsl-smart-app-banner'); ?></td>
     392        <td><?php _e('Affiliate data:','smart-app-banner'); ?></td>
    399393        <td><input id="app_affiliate" type="text" name="wsl_smart_app_banner_affiliate_data" value="<?php echo $affiliate_data[0]; ?>" /></td>
    400394      </tr>
    401395      <tr>
    402         <td><?php _e('App argument:','wsl-smart-app-banner'); ?></td>
     396        <td><?php _e('App argument:','smart-app-banner'); ?></td>
    403397        <td><input id="app_argument" type="text" name="wsl_smart_app_banner_app_argument" value="<?php echo $app_argument[0]; ?>" /></td>
    404398      </tr>
Note: See TracChangeset for help on using the changeset viewer.