Plugin Directory

Changeset 188277


Ignore:
Timestamp:
12/30/2009 09:30:27 PM (16 years ago)
Author:
jamesgpearce
Message:

add i18 domain

Location:
wordpress-mobile-pack/trunk
Files:
31 edited

Legend:

Unmodified
Added
Removed
  • wordpress-mobile-pack/trunk/plugins/wpmp_ads/wpmp_ads.php

    r187052 r188277  
    3939
    4040function wpmp_ads_init() {
    41   wp_register_sidebar_widget('wpmp_ads_widget', __('Mobile Ads'), 'wpmp_ads_widget',
    42     array('classname' => 'wpmp_ads_widget', 'description' => __( "Displays AdMob or Google mobile ads"))
     41  wp_register_sidebar_widget('wpmp_ads_widget', __('Mobile Ads', 'wpmp'), 'wpmp_ads_widget',
     42    array('classname' => 'wpmp_ads_widget', 'description' => __( "Displays AdMob or Google mobile ads", 'wpmp'))
    4343  );
    44   wp_register_widget_control('wpmp_ads_widget', __('Mobile Ads'), 'wpmp_ads_widget_control');
     44  wp_register_widget_control('wpmp_ads_widget', __('Mobile Ads', 'wpmp'), 'wpmp_ads_widget_control');
    4545}
    4646
    4747function wpmp_ads_activate() {
    4848  foreach(array(
    49     'wpmp_ads_title'=>__('Mobile ads'),
     49    'wpmp_ads_title'=>__('Mobile ads', 'wpmp'),
    5050    'wpmp_ads_provider'=>'none',
    5151    'wpmp_ads_publisher_id'=>'',
     
    7171    $buffer = $before_widget;
    7272    if (($title = get_option('wpmp_ads_title'))=='') {
    73       $title = __("Mobile ads");
     73      $title = __("Mobile ads", 'wpmp');
    7474    }
    7575    $buffer .= $before_title . $title . $after_title;
     
    126126        $option,
    127127        array(
    128           "none"=>__("None"),
    129           "admob"=>__("AdMob"),
    130           "google_mobile_single"=>__("Google (single ad)"),
    131           "google_mobile_double"=>__("Google (double ads)"),
     128          "none"=>__("None", 'wpmp'),
     129          "admob"=>__("AdMob", 'wpmp'),
     130          "google_mobile_single"=>__("Google (single ad)", 'wpmp'),
     131          "google_mobile_double"=>__("Google (double ads)", 'wpmp'),
    132132        ),
    133133        $onchange
     
    166166      $selected = '';
    167167    }
    168     $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description) . '</option>';
     168    $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description, 'wpmp') . '</option>';
    169169  }
    170170  $dropdown .= "</select>";
  • wordpress-mobile-pack/trunk/plugins/wpmp_ads/wpmp_ads_widget_admin.php

    r187519 r188277  
    2929
    3030<p>
    31   <label for="wpmp_ads_title"><?php _e('Title:'); ?></label>
     31  <label for="wpmp_ads_title"><?php _e('Title:', 'wpmp'); ?></label>
    3232  <?php print wpmp_ads_option('wpmp_ads_title', '', 'widefat'); ?>
    3333</p>
    3434<p>
    35   <label for="wpmp_ads_provider"><?php _e('Provider:'); ?></label>
     35  <label for="wpmp_ads_provider"><?php _e('Provider:', 'wpmp'); ?></label>
    3636  <?php print wpmp_ads_option('wpmp_ads_provider'); ?>
    3737</p>
    3838<p>
    39   <label for="wpmp_ads_publisher_id"><?php _e('Publisher ID:'); ?></label>
     39  <label for="wpmp_ads_publisher_id"><?php _e('Publisher ID:', 'wpmp'); ?></label>
    4040  <br />
    4141  <?php print wpmp_ads_option('wpmp_ads_publisher_id', '', 'widefat'); ?>
    42   <br /><?php _e("Examples: a14948dbe57548e (for AdMob) or pub-2709587966093607 (for Google)"); ?>
     42  <br /><?php _e("Examples: a14948dbe57548e (for AdMob) or pub-2709587966093607 (for Google)", 'wpmp'); ?>
    4343</p>
    4444<p>
    45   <?php printf(__("This widget should only be used on mobile themes. If you are using a theme from, or derived from, the WordPress Mobile Pack, you will need to enable this widget <a%s>here</a>."), " href='/wp-admin/themes.php?page=wpmp_theme_widget_admin' target='_blank'"); ?>
     45  <?php printf(__("This widget should only be used on mobile themes. If you are using a theme from, or derived from, the WordPress Mobile Pack, you will need to enable this widget <a%s>here</a>.", 'wpmp'), " href='/wp-admin/themes.php?page=wpmp_theme_widget_admin' target='_blank'"); ?>
    4646</p>
    4747<p>
    4848  <?php print wpmp_ads_option('wpmp_ads_desktop_disable'); ?>
    49   <label for="wpmp_ads_desktop_disable"><?php _e('Attempt to automatically disable for desktop themes (when switcher is running)'); ?></label>
     49  <label for="wpmp_ads_desktop_disable"><?php _e('Attempt to automatically disable for desktop themes (when switcher is running)', 'wpmp'); ?></label>
    5050</p>
    5151<p>
    52   <?php _e('Note also that this widget will be completely hidden if no ads are returned from the provider you have selected.'); ?>
     52  <?php _e('Note also that this widget will be completely hidden if no ads are returned from the provider you have selected.', 'wpmp'); ?>
    5353</p>
    5454<input type="hidden" id="wpmp_ads" name="wpmp_ads" value="1" />
  • wordpress-mobile-pack/trunk/plugins/wpmp_barcode/wpmp_barcode.php

    r187519 r188277  
    3939
    4040function wpmp_barcode_init() {
    41   wp_register_sidebar_widget('wpmp_barcode_widget', __('Mobile Barcode'), 'wpmp_barcode_widget',
    42     array('classname' => 'wpmp_barcode_widget', 'description' => __( "A 2D-barcode used for navigating to a mobile URL"))
     41  wp_register_sidebar_widget('wpmp_barcode_widget', __('Mobile Barcode', 'wpmp'), 'wpmp_barcode_widget',
     42    array('classname' => 'wpmp_barcode_widget', 'description' => __( "A 2D-barcode used for navigating to a mobile URL", 'wpmp'))
    4343  );
    44   wp_register_widget_control('wpmp_barcode_widget', __('Mobile Barcode'), 'wpmp_barcode_widget_control');
     44  wp_register_widget_control('wpmp_barcode_widget', __('Mobile Barcode', 'wpmp'), 'wpmp_barcode_widget_control');
    4545}
    4646function wpmp_barcode_activate() {
    4747  foreach(array(
    48     'wpmp_barcode_title'=>__('Our mobile site'),
     48    'wpmp_barcode_title'=>__('Our mobile site', 'wpmp'),
    4949    'wpmp_barcode_link'=>
    5050      function_exists('wpmp_switcher_domains') ?
     
    6868  print $before_widget;
    6969  if (($title = get_option('wpmp_barcode_title'))=='') {
    70     $title = __("Our mobile site");
     70    $title = __("Our mobile site", 'wpmp');
    7171  }
    7272  print $before_title . $title . $after_title;
     
    8787  if(get_option('wpmp_barcode_help')=='true') {
    8888    print "<p>";
    89     printf (__('This is a 2D-barcode containing the address of our <a%s>mobile site</a>.'), "href='$link' target='_blank'");
    90     print __('If your mobile has a barcode reader, simply snap this bar code with the camera and launch the site.');
     89    printf (__('This is a 2D-barcode containing the address of our <a%s>mobile site</a>.', 'wpmp'), "href='$link' target='_blank'");
     90    print __('If your mobile has a barcode reader, simply snap this bar code with the camera and launch the site.', 'wpmp');
    9191    print "</p>";
    9292  }
    9393  if(get_option('wpmp_barcode_reader_list')=='true') {
    9494    print "<p>";
    95     print __('Many companies provide barcode readers that you can install on your mobile, and all of the following are compatible with this format:');
     95    print __('Many companies provide barcode readers that you can install on your mobile, and all of the following are compatible with this format:', 'wpmp');
    9696    print "</p>";
    9797    include_once('barcode_reader_list.php');
  • wordpress-mobile-pack/trunk/plugins/wpmp_barcode/wpmp_barcode_widget_admin.php

    r187519 r188277  
    2929
    3030<p>
    31   <label for="wpmp_barcode_title"><?php _e('Title:'); ?></label>
     31  <label for="wpmp_barcode_title"><?php _e('Title:', 'wpmp'); ?></label>
    3232  <?php print wpmp_barcode_option('wpmp_barcode_title', '', 'widefat'); ?>
    3333</p>
    3434<p>
    35   <label for="wpmp_barcode_link"><?php _e('Link:'); ?></label>
     35  <label for="wpmp_barcode_link"><?php _e('Link:', 'wpmp'); ?></label>
    3636  <?php print wpmp_barcode_option('wpmp_barcode_link', '', 'widefat'); ?>
    37   <br /><?php _e('If you leave this blank, the URL in the barcode will be dynamic, and will be the mobile equivalent of the actual page the user is on.'); ?>
     37  <br /><?php _e('If you leave this blank, the URL in the barcode will be dynamic, and will be the mobile equivalent of the actual page the user is on.', 'wpmp'); ?>
    3838</p>
    3939<p>
    40   <label for="wpmp_barcode_size"><?php _e('Size:'); ?></label>
     40  <label for="wpmp_barcode_size"><?php _e('Size:', 'wpmp'); ?></label>
    4141  <br />
    4242  <?php print wpmp_barcode_option('wpmp_barcode_size', '', 'widefat', 'width:23%'); ?>px
     
    4444<p>
    4545  <?php print wpmp_barcode_option('wpmp_barcode_help'); ?>
    46   <label for="wpmp_barcode_help"><?php _e('Show explanation'); ?></label>
     46  <label for="wpmp_barcode_help"><?php _e('Show explanation', 'wpmp'); ?></label>
    4747</p>
    4848<p>
    4949  <?php print wpmp_barcode_option('wpmp_barcode_reader_list'); ?>
    50   <label for="wpmp_barcode_reader_list"><?php _e('Show list of readers'); ?></label>
     50  <label for="wpmp_barcode_reader_list"><?php _e('Show list of readers', 'wpmp'); ?></label>
    5151</p>
    5252<input type="hidden" id="wpmp_barcode" name="wpmp_barcode" value="1" />
  • wordpress-mobile-pack/trunk/plugins/wpmp_mpexo/wpmp_mpexo.php

    r187519 r188277  
    150150  $wpmp_mpexo_payload_forced = array();
    151151  wp_register_sidebar_widget('wpmp_mpexo_widget', 'mpexo', 'wpmp_mpexo_widget',
    152     array('classname' => 'wpmp_mpexo_widget', 'description' => __( "A widget to show mpexo links for this blog"))
     152    array('classname' => 'wpmp_mpexo_widget', 'description' => __( "A widget to show mpexo links for this blog", 'wpmp'))
    153153  );
    154154  wp_register_widget_control('wpmp_mpexo_widget', 'mpexo', 'wpmp_mpexo_widget_control');
     
    521521    $state = '';
    522522  }
    523   add_options_page(__('mpexo'), __("mpexo$state"), 3, 'wpmp_mpexo_admin', 'wpmp_mpexo_admin');
     523  add_options_page(__('mpexo', 'wpmp'), __("mpexo$state", 'wpmp'), 3, 'wpmp_mpexo_admin', 'wpmp_mpexo_admin');
    524524}
    525525
     
    529529  print $before_title . 'mpexo' . $after_title;
    530530  print "<p>";
    531   print __('This site is proudly listed as a mobile blog on mpexo.');
     531  print __('This site is proudly listed as a mobile blog on mpexo.', 'wpmp');
    532532  print "</p>";
    533533  print $after_widget;
     
    569569  }
    570570  if(wpmp_mpexo_shutdown()) {
    571     return __('Settings saved.');
    572   }
    573   return __('<strong>Communications error:</strong> these settings have been saved locally and will be transmitted to mpexo when resubmitted.');
     571    return __('Settings saved.', 'wpmp');
     572  }
     573  return __('<strong>Communications error:</strong> these settings have been saved locally and will be transmitted to mpexo when resubmitted.', 'wpmp');
    574574}
    575575
     
    581581        $option,
    582582        array(
    583           'none'=>__('None'),
    584           'tagline'=>__('Tagline'),
    585           'custom'=>__('Custom'),
     583          'none'=>__('None', 'wpmp'),
     584          'tagline'=>__('Tagline', 'wpmp'),
     585          'custom'=>__('Custom', 'wpmp'),
    586586        ),
    587587        $onchange
     
    591591        $option,
    592592        array(
    593           'none'=>__('None'),
    594           'tags'=>__('Tags only'),
    595           'categories'=>__('Categories only'),
    596           'both'=>__('Tags and Categories'),
     593          'none'=>__('None', 'wpmp'),
     594          'tags'=>__('Tags only', 'wpmp'),
     595          'categories'=>__('Categories only', 'wpmp'),
     596          'both'=>__('Tags and Categories', 'wpmp'),
    597597        ),
    598598        $onchange
     
    602602        $option,
    603603        array(
    604           'none'=>__('None'),
    605           'posts'=>__('Posts only'),
    606           'pages'=>__('Pages only'),
    607           'both'=>__('Posts and Pages'),
     604          'none'=>__('None', 'wpmp'),
     605          'posts'=>__('Posts only', 'wpmp'),
     606          'pages'=>__('Pages only', 'wpmp'),
     607          'both'=>__('Posts and Pages', 'wpmp'),
    608608        ),
    609609        $onchange
     
    636636      $selected = '';
    637637    }
    638     $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description) . '</option>';
     638    $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description, 'wpmp') . '</option>';
    639639  }
    640640  $dropdown .= "</select>";
  • wordpress-mobile-pack/trunk/plugins/wpmp_mpexo/wpmp_mpexo_admin.php

    r187521 r188277  
    3131<div class="wrap">
    3232  <h2>
    33     <?php _e('mpexo') ?>
     33    <?php _e('mpexo', 'wpmp') ?>
    3434    <p style='font-size:small;font-style:italic;margin:0'>
    35       <?php _e('Part of the WordPress Mobile Pack'); ?>
     35      <?php _e('Part of the WordPress Mobile Pack', 'wpmp'); ?>
    3636    </p>
    3737  </h2>
    38   <p><?php printf(e_("<a%s>mpexo</a> is an online directory of mobile sites built using the WordPress Mobile Pack."), " target='_blank' href='http://www.mpexo.com'"); ?></p>
    39   <p><?php _e("Using the settings below, you can easily, and automatically, get your own site listed on mpexo. It's a safe and easy way to drive traffic to the mobile version of your site."); ?></p>
    40   <p><strong><?php _e("This feature is currently in beta."); ?></strong> <?php _e("It is therefore disabled by default, but will be <em>enabled</em> by default in the forthcoming v2.0 of the WordPress Mobile Pack. Please provide feedback in the meantime."); ?></p>
     38  <p><?php printf(__("<a%s>mpexo</a> is an online directory of mobile sites built using the WordPress Mobile Pack.", 'wpmp'), " target='_blank' href='http://www.mpexo.com'"); ?></p>
     39  <p><?php _e("Using the settings below, you can easily, and automatically, get your own site listed on mpexo. It's a safe and easy way to drive traffic to the mobile version of your site.", 'wpmp'); ?></p>
     40  <p><strong><?php _e("This feature is currently in beta.", 'wpmp'); ?></strong> <?php _e("It is therefore disabled by default, but will be <em>enabled</em> by default in the forthcoming v2.0 of the WordPress Mobile Pack. Please provide feedback in the meantime.", 'wpmp'); ?></p>
    4141  <form method="post" action="">
    4242    <table class="form-table">
    4343      <tr>
    44         <th><?php _e('List my site on mpexo'); ?></th>
     44        <th><?php _e('List my site on mpexo', 'wpmp'); ?></th>
    4545        <td>
    4646          <?php print wpmp_mpexo_option('wpmp_mpexo_enabled_beta', 'wpmpMpexo();'); ?>
    4747          <br />
    48           <?php _e('Publish summary information about your site to the mpexo server. This makes it easier for mobile users to find it.'); ?>
     48          <?php _e('Publish summary information about your site to the mpexo server. This makes it easier for mobile users to find it.', 'wpmp'); ?>
    4949        </td>
    5050      </tr>
    5151
    5252      <tr class='wpmp_mpexo'>
    53         <th><?php _e('Site description'); ?></th>
     53        <th><?php _e('Site description', 'wpmp'); ?></th>
    5454        <td>
    5555          <?php print wpmp_mpexo_option('wpmp_mpexo_description', 'wpmpMpexo();'); ?>
    5656          <br />
    57           <?php printf(__('mpexo can display a description of your blog. This can be the tagline in your <a%s>general settings</a>, or some custom text.'), ' href="options-general.php"'); ?>
     57          <?php printf(__('mpexo can display a description of your blog. This can be the tagline in your <a%s>general settings</a>, or some custom text.', 'wpmp'), ' href="options-general.php"'); ?>
    5858          <br />
    5959          <?php print wpmp_mpexo_option('wpmp_mpexo_description_override'); ?>
     
    6161      </tr>
    6262      <tr class='wpmp_mpexo_description_custom'>
    63         <th><?php _e('Custom description'); ?></th>
     63        <th><?php _e('Custom description', 'wpmp'); ?></th>
    6464        <td>
    6565          <?php print wpmp_mpexo_option('wpmp_mpexo_description_custom', '', 'regular-text'); ?>
    6666          <br />
    67           <?php _e("Use this custom description instead of the blog's tagline."); ?>
     67          <?php _e("Use this custom description instead of the blog's tagline.", 'wpmp'); ?>
    6868        </td>
    6969      </tr>
    7070      <tr class='wpmp_mpexo'>
    71         <th><?php _e('Publish classification'); ?></th>
     71        <th><?php _e('Publish classification', 'wpmp'); ?></th>
    7272        <td>
    7373          <?php print wpmp_mpexo_option('wpmp_mpexo_classification'); ?>
    7474          <br />
    75           <?php _e("mpexo can display your site's tags and categories, helping readers discover the topics you cover."); ?>
     75          <?php _e("mpexo can display your site's tags and categories, helping readers discover the topics you cover.", 'wpmp'); ?>
    7676        </td>
    7777      </tr>
    7878      <tr class='wpmp_mpexo'>
    79         <th><?php _e('Publish content titles'); ?></th>
     79        <th><?php _e('Publish content titles', 'wpmp'); ?></th>
    8080        <td>
    8181          <?php print wpmp_mpexo_option('wpmp_mpexo_content'); ?>
    8282          <br />
    83           <?php _e('mpexo can display the titles of your posts and pages so readers can see teasers of your recent content.'); ?>
     83          <?php _e('mpexo can display the titles of your posts and pages so readers can see teasers of your recent content.', 'wpmp'); ?>
    8484        </td>
    8585      </tr>
    8686      <tr class='wpmp_mpexo'>
    87         <th><?php _e('Gather mobile popularity'); ?></th>
     87        <th><?php _e('Gather mobile popularity', 'wpmp'); ?></th>
    8888        <td>
    8989          <?php print wpmp_mpexo_option('wpmp_mpexo_popularity'); ?>
    9090          <br />
    91           <?php _e("This will gather an aggregated summary of your site's popularity amongst mobile users. This data is never published on a per-site basis: it is merely used to order blogs by popularity."); ?>
     91          <?php _e("This will gather an aggregated summary of your site's popularity amongst mobile users. This data is never published on a per-site basis: it is merely used to order blogs by popularity.", 'wpmp'); ?>
    9292        </td>
    9393      </tr>
    9494      <tr class='wpmp_mpexo'>
    95         <th><?php _e('Gather diagnostics'); ?></th>
     95        <th><?php _e('Gather diagnostics', 'wpmp'); ?></th>
    9696        <td>
    9797          <?php print wpmp_mpexo_option('wpmp_mpexo_diagnostics'); ?>
    9898          <br />
    99           <?php _e("This gathers non-sensitive details regarding your Mobile Pack configuration. This is never published: it is merely used to diagnose issues you may have with your site."); ?>
     99          <?php _e("This gathers non-sensitive details regarding your Mobile Pack configuration. This is never published: it is merely used to diagnose issues you may have with your site.", 'wpmp'); ?>
    100100        </td>
    101101      </tr>
    102102      <tr class='wpmp_mpexo'>
    103         <th><?php _e('Register email address'); ?></th>
     103        <th><?php _e('Register email address', 'wpmp'); ?></th>
    104104        <td>
    105105          <?php print wpmp_mpexo_option('wpmp_mpexo_email'); ?>
    106106          <br />
    107           <?php _e("This registers your email address so we can contact you regarding updates to mpexo and the Mobile Pack. This is never published or shared: unchecking this box will unsubscribe you from any mailings."); ?>
     107          <?php _e("This registers your email address so we can contact you regarding updates to mpexo and the Mobile Pack. This is never published or shared: unchecking this box will unsubscribe you from any mailings.", 'wpmp'); ?>
    108108        </td>
    109109      </tr>
    110110    </table>
    111111    <p class="submit">
    112       <input type="submit" name="Submit" value="<?php _e('Save Changes'); ?>" />
     112      <input type="submit" name="Submit" value="<?php _e('Save Changes', 'wpmp'); ?>" />
    113113    </p>
    114114  </form>
  • wordpress-mobile-pack/trunk/plugins/wpmp_mpexo/wpmp_mpexo_widget_admin.php

    r187519 r188277  
    2929
    3030<p>
    31   <?php _e("There are currently no settings for this widget"); ?>
     31  <?php _e("There are currently no settings for this widget", 'wpmp'); ?>
    3232</p>
    3333<input type="hidden" id="wpmp_mpexo" name="wpmp_mpexo" value="1" />
  • wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/desktop_interstitial.php

    r187519 r188277  
    2828?><html>
    2929  <head>
    30     <title><?php bloginfo('name'); ?> - <?php _e("Select site"); ?></title>
     30    <title><?php bloginfo('name'); ?> - <?php _e("Select site", 'wpmp'); ?></title>
    3131    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    3232    <?php wp_head(); ?>
    3333  </head>
    3434  <body>
    35     <h2><?php _e("Select site"); ?></h2>
    36     <p><?php _e("You've requested the mobile site, but you appear to have a desktop browser."); ?></p>
    37     <p><?php print wpmp_switcher_link('desktop', __("Revert to the desktop site")); ?></p>
    38     <p><?php print wpmp_switcher_link('mobile', __("Continue to our mobile site")); ?></p>
     35    <h2><?php _e("Select site", 'wpmp'); ?></h2>
     36    <p><?php _e("You've requested the mobile site, but you appear to have a desktop browser.", 'wpmp'); ?></p>
     37    <p><?php print wpmp_switcher_link('desktop', __("Revert to the desktop site", 'wpmp')); ?></p>
     38    <p><?php print wpmp_switcher_link('mobile', __("Continue to our mobile site", 'wpmp')); ?></p>
    3939  </body>
    4040</html>
  • wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/mobile.php

    r187519 r188277  
    8888              $link = $base . $link;
    8989            }
    90             $item .= 'page_item"><a href="' . $link . '" title="' . $name . '">' . __($name) . '</a></li> ';
     90            $item .= 'page_item"><a href="' . $link . '" title="' . $name . '">' . __($name, 'wpmp') . '</a></li> ';
    9191            if ($name[0]!='_') {
    9292              print $item;
     
    114114          } else {
    115115            ?>
    116               <p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>"), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>ribot</a>"), ' href="http://ribot.co.uk"'); ?></p>
     116              <p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>", 'wpmp'), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>ribot</a>", 'wpmp'), ' href="http://ribot.co.uk"'); ?></p>
    117117            <?php
    118118          }
  • wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/mobile_admin.php

    r187519 r188277  
    3737
    3838    $menu = array(
    39       "Overview" => "/wp-admin/index.php",
    40       "New post" => "/wp-admin/post-new.php",
    41       "Edit post" => "/wp-admin/post.php?action=edit",
    42       "Comments" => "/wp-admin/edit-comments.php",
    43       "_Comment" => "/wp-admin/comment.php",
    44       "Switcher" => "/wp-admin/themes.php",
    45       "Settings" => "/wp-admin/options-general.php",
    46     ); //i18n in template
     39      __("Overview", 'wpmp') => "/wp-admin/index.php",
     40      __("New post", 'wpmp') => "/wp-admin/post-new.php",
     41      __("Edit post", 'wpmp') => "/wp-admin/post.php?action=edit",
     42      __("Comments", 'wpmp') => "/wp-admin/edit-comments.php",
     43      "_" . __("Comment", 'wpmp') => "/wp-admin/comment.php",
     44      __("Switcher", 'wpmp') => "/wp-admin/themes.php",
     45      __("Settings", 'wpmp') => "/wp-admin/options-general.php",
     46    );
    4747    if (function_exists('wp_logout_url')) {
    48       $menu["Log out"] = wp_logout_url();
     48      $menu[__("Log out", 'wpmp')] = wp_logout_url();
    4949    } else {
    50       $menu["Log out"] = "/wp-login.php?action=logout";
     50      $menu[__("Log out", 'wpmp')] = "/wp-login.php?action=logout";
    5151    }
    5252
     
    8080    $page_count = wp_count_posts('page');
    8181    print "<p>";
    82     printf(_n("You have one post", "You have %d posts", $c=0+($post_count->publish)), $c);
     82    printf(__ngettext("You have one post", "You have %d posts", $c=0+($post_count->publish), 'wpmp'), $c);
    8383    print ' ';
    84     printf(_n("and one page", "and %d pages", $c=0+($page_count->publish)), $c);
    85     print ' ' . __("contained within") . ' ';
    86     printf(_n("one category", "%d categories", $c=0+(wp_count_terms('category'))), $c);
    87     print ' ' . __("and") . ' ';
    88     printf(_n("one tag", "%d tags", $c=0+(wp_count_terms('post_tag'))), $c);
     84    printf(__ngettext("and one page", "and %d pages", $c=0+($page_count->publish), 'wpmp'), $c);
     85    print ' ' . __("contained within", 'wpmp') . ' ';
     86    printf(__ngettext("one category", "%d categories", $c=0+(wp_count_terms('category')), 'wpmp'), $c);
     87    print ' ' . __("and", 'wpmp') . ' ';
     88    printf(__ngettext("one tag", "%d tags", $c=0+(wp_count_terms('post_tag')), 'wpmp'), $c);
    8989    print ".</p>";
    9090    global $wpdb;
    9191        $comments = $wpdb->get_results("SELECT count(*) as cnt FROM $wpdb->comments WHERE comment_approved='0'" );
    9292    $comment_count = $comments[0];
    93     printf("<p>" . _n("You have one comment to moderate", "You have %d comments to moderate", $c=0+($comment_count->cnt)) . ".</p>", $c);
    94     print "<h3>" . __("Select an admin page:") . "</h3>";
     93    printf("<p>" . __ngettext("You have one comment to moderate", "You have %d comments to moderate", $c=0+($comment_count->cnt), 'wpmp') . ".</p>", $c);
     94    print "<h3>" . __("Select an admin page:", 'wpmp') . "</h3>";
    9595    print "<p><ul>";
    9696    $not_first = false;
     
    100100          $link = $base . $link;
    101101        }
    102         print "<li><a href='$link'>" . __("$name") . "</a>";
     102        print "<li><a href='$link'>" . __("$name", 'wpmp') . "</a>";
    103103      }
    104104      $not_first = true;
    105105    }
    106106    print "</ul></p>";
    107     print "<p>" . sprintf(__("...or <a%s>return to the site</a>"), " href='$base/'") . "</p>";
    108     print "<p>" . __("A subset of the full WordPress administration is available through this mobile interface.") . "</p>";
     107    print "<p>" . sprintf(__("...or <a%s>return to the site</a>", 'wpmp'), " href='$base/'") . "</p>";
     108    print "<p>" . __("A subset of the full WordPress administration is available through this mobile interface.", 'wpmp') . "</p>";
    109109  }
    110110
    111111  function wpmp_msma_junior($menu) {
    112112    $base = get_option('home');
    113     print "<h3>" . __("Sorry! Permission denied...") . "</h3>";
    114     print "<p>" . __("Only 'administrator' users can use the mobile admin panel.") . "</p>";
    115     print "<p><a href='" . get_option('siteurl') . "$base/wp-login.php?action=logout'>" . __("Login as a different user") . "</a> " . __("or") . " <a href='$base/'>" . __("return to the site") . "</a></p>";
     113    print "<h3>" . __("Sorry! Permission denied...", 'wpmp') . "</h3>";
     114    print "<p>" . __("Only 'administrator' users can use the mobile admin panel.", 'wpmp') . "</p>";
     115    print "<p><a href='" . get_option('siteurl') . "$base/wp-login.php?action=logout'>" . __("Login as a different user", 'wpmp') . "</a> " . __("or", 'wpmp') . " <a href='$base/'>" . __("return to the site", 'wpmp') . "</a></p>";
    116116  }
    117117
     
    123123      if (!wpmp_msma_check_referer()) { return; }
    124124      @wp_update_post($_POST);
    125       print "<p>" . __("Your changes have been applied.") . "</p>";
     125      print "<p>" . __("Your changes have been applied.", 'wpmp') . "</p>";
    126126      wpmp_msma_post_list();
    127127    } else {
     
    129129        $post = get_post($id, OBJECT, 'edit');
    130130        if(!$post->ID) {
    131           print "<p>" . __("That post does not exist, but you may write a new one.") . "</p>";
     131          print "<p>" . __("That post does not exist, but you may write a new one.", 'wpmp') . "</p>";
    132132        }
    133133      } elseif (!$new) {
     
    150150    print '<input type="hidden" name="user_ID" value="' . (int) $user_ID . '" />';
    151151
    152     print '<p><label for="title">' . __('Title') . ':</label><br />';
     152    print '<p><label for="title">' . __('Title', 'wpmp') . ':</label><br />';
    153153    print '<input type="text" name="post_title" value="' . attribute_escape(@$post->post_title) . '" id="title" /></p>';
    154154
    155     print '<p><label for="post_status">' . __('Status') . ':</label><br />';
     155    print '<p><label for="post_status">' . __('Status', 'wpmp') . ':</label><br />';
    156156    print '<select name="post_status" id="post_status">';
    157     print '<option ' . (($post->post_status == 'publish' || $post->post_status == 'private') ? 'selected="selected"' : "") . ' value="publish">' . __('Published') . '</option>';
    158     print '<option ' . (($post->post_status == 'draft' || $post->post_status == 'future') ? 'selected="selected"' : "") . ' value="draft">' . __('Unpublished') . '</option>';
    159     print '<option ' . (($post->post_status == 'pending') ? 'selected="selected"' : "") . ' value="pending">' . __('Pending Review') . '</option>';
     157    print '<option ' . (($post->post_status == 'publish' || $post->post_status == 'private') ? 'selected="selected"' : "") . ' value="publish">' . __('Published', 'wpmp') . '</option>';
     158    print '<option ' . (($post->post_status == 'draft' || $post->post_status == 'future') ? 'selected="selected"' : "") . ' value="draft">' . __('Unpublished', 'wpmp') . '</option>';
     159    print '<option ' . (($post->post_status == 'pending') ? 'selected="selected"' : "") . ' value="pending">' . __('Pending Review', 'wpmp') . '</option>';
    160160    print '</select></p>';
    161161
    162     print '<p><label for="post_content">' . __('Content') . ':</label><br />';
     162    print '<p><label for="post_content">' . __('Content', 'wpmp') . ':</label><br />';
    163163    $safe_content = @$post->post_content;
    164164    $safe_content = str_replace("<textarea", "<div", $safe_content);
     
    167167    $safe_content = str_replace("</TEXTAREA", "</div", $safe_content);
    168168    print '<textarea name="post_content" id="post_content" rows="6">' . $safe_content . '</textarea></p>';
    169     print '<input name="submit" type="submit" id="submit" value="' . __('Apply') . '" />';
    170     print '<p>' . __('You can use HTML tags to format your post. Use &lt;!--more--&gt; to indicate the end of the teaser.') . '</p>';
     169    print '<input name="submit" type="submit" id="submit" value="' . __('Apply', 'wpmp') . '" />';
     170    print '<p>' . __('You can use HTML tags to format your post. Use &lt;!--more--&gt; to indicate the end of the teaser.', 'wpmp') . '</p>';
    171171
    172172    print '</form>';
     
    178178    if(have_posts()) {
    179179      global $post;
    180       print "<p>" . __("Select a post to edit:") . "</p>";
     180      print "<p>" . __("Select a post to edit:", 'wpmp') . "</p>";
    181181      add_filter('get_pagenum_link', 'wpmp_msma_get_pagenum_link');
    182182      while (have_posts()) {
     
    191191      previous_posts_link('Newer');
    192192     } else {
    193       print "<p>" . __("There are no posts to edit.") . "</p>";
     193      print "<p>" . __("There are no posts to edit.", 'wpmp') . "</p>";
    194194    }
    195195  }
     
    198198        $comments = $wpdb->get_results("SELECT $wpdb->comments.*, $wpdb->posts.post_title FROM $wpdb->comments INNER JOIN $wpdb->posts ON $wpdb->comments.comment_post_id = $wpdb->posts.id WHERE comment_approved='0' ORDER BY comment_date_gmt DESC LIMIT 5" );
    199199    if(sizeof($comments)==0) {
    200       print "<p>" . __("This site has no comments awaiting moderation.") . "</p>";
     200      print "<p>" . __("This site has no comments awaiting moderation.", 'wpmp') . "</p>";
    201201    } else {
    202202      switch($size = sizeof($comments)) {
    203203        case 5:
    204           print "<p>" . __("There are at least 5 comments awaiting moderation:") . "</p>";
     204          print "<p>" . __("There are at least 5 comments awaiting moderation:", 'wpmp') . "</p>";
    205205          break;
    206206        case 1:
    207207          return wpmp_msma_edit_comment($comments[0], true);
    208208        default:
    209           print "<p>" . __("There are $size comments awaiting moderation:") . "</p>";
     209          print "<p>" . __("There are $size comments awaiting moderation:", 'wpmp') . "</p>";
    210210      }
    211211      foreach($comments as $comment) {
     
    238238      if (!wpmp_msma_check_referer()) { return; }
    239239      update_option('wpmp_switcher_mode', $_POST['wpmp_switcher_mode']);
    240       print "<p>" . __("Your changes have been applied.") . "</p>";
    241       print "<p><a href='/wp-admin/'>" . __("Continue.") . "</a></p>";
     240      print "<p>" . __("Your changes have been applied.", 'wpmp') . "</p>";
     241      print "<p><a href='/wp-admin/'>" . __("Continue.", 'wpmp') . "</a></p>";
    242242      return;
    243243    }
    244244    print '<form name="post" action="' . $_SERVER['REQUEST_URI'] . '" method="post" id="post">';
    245     print '<p><label for="title">' . __('Change the mobile switcher mode:') . '</label><br />';
     245    print '<p><label for="title">' . __('Change the mobile switcher mode:', 'wpmp') . '</label><br />';
    246246    $current = get_option('wpmp_switcher_mode');
    247247    foreach(array(
    248       'none'=>__('Disabled'),
    249       'browser'=>__('Browser detection'),
    250       'domain'=>__('Domain mapping'),
    251       'browserdomain'=>__('BOTH: browser detection and domain mapping'),
     248      'none'=>__('Disabled', 'wpmp'),
     249      'browser'=>__('Browser detection', 'wpmp'),
     250      'domain'=>__('Domain mapping', 'wpmp'),
     251      'browserdomain'=>__('BOTH: browser detection and domain mapping', 'wpmp'),
    252252    ) as $value=>$title) {
    253253      print "<input style='width:32px;' type='radio' name='wpmp_switcher_mode' value='$value'";
     
    258258    }
    259259    print '</select></p>';
    260     print '<input name="submit" type="submit" id="submit" value="' . __('Apply') . '" />';
     260    print '<input name="submit" type="submit" id="submit" value="' . __('Apply', 'wpmp') . '" />';
    261261    print '</form>';
    262     print "<p>" . __("NB: Changing the switcher mode may return you to the desktop version of the admin pages. Be cautious if you are using a mobile device.") . "</p>";
     262    print "<p>" . __("NB: Changing the switcher mode may return you to the desktop version of the admin pages. Be cautious if you are using a mobile device.", 'wpmp') . "</p>";
    263263  }
    264264
     
    274274      }
    275275    }
    276     $approve = "<a href='comment.php?action=approvecomment&amp;c=$id'>" . __('Approve') . "</a>";
    277     $delete = "<a href='comment.php?action=deletecomment&amp;c=$id'>" . __('Delete') . "</a>";
    278     $spam = "<a href='comment.php?action=spamcomment&amp;c=$id'>" . __('Spam') . "</a>";
    279     print "<p>" . sprintf(_c('<strong>%1$s</strong> on %2$s|comment_title ON post_title'), $title, $comment->post_title) .
     276    $approve = "<a href='comment.php?action=approvecomment&amp;c=$id'>" . __('Approve', 'wpmp') . "</a>";
     277    $delete = "<a href='comment.php?action=deletecomment&amp;c=$id'>" . __('Delete', 'wpmp') . "</a>";
     278    $spam = "<a href='comment.php?action=spamcomment&amp;c=$id'>" . __('Spam', 'wpmp') . "</a>";
     279    print "<p>" . sprintf(_c('<strong>%1$s</strong> on %2$s|comment_title ON post_title', 'wpmp'), $title, $comment->post_title) .
    280280      "<br />$content" .
    281281      "<br />$approve | $delete | $spam" .
     
    288288        if (!wpmp_msma_check_referer()) { return; }
    289289        wpmp_msma_option_update($_POST);
    290         print "<p>" . __("Your changes have been applied.") . "</p>";
     290        print "<p>" . __("Your changes have been applied.", 'wpmp') . "</p>";
    291291        return wpmp_msma_options_list();
    292292      } else {
     
    330330    $previous = "";
    331331    if($page>0) {
    332       $previous = "<a href='?page=" . ($page-1) . "'>" . __('Previous page') . "</a>";
     332      $previous = "<a href='?page=" . ($page-1) . "'>" . __('Previous page', 'wpmp') . "</a>";
    333333    }
    334334    if(($page+1) * $size < $count) {
    335       $next = "<a href='?page=" . ($page+1) . "'>" . __('Next page') . "</a>";
     335      $next = "<a href='?page=" . ($page+1) . "'>" . __('Next page', 'wpmp') . "</a>";
    336336    }
    337337    if ($next || $previous) {
     
    342342      print "$next</p>";
    343343    }
    344     print "<p>" . __("NB: Some complex options cannot be edited in this mobile interface.") . "</p>";
     344    print "<p>" . __("NB: Some complex options cannot be edited in this mobile interface.", 'wpmp') . "</p>";
    345345
    346346  }
     
    349349    $option = $wpdb->get_results("SELECT * FROM $wpdb->options " . wpmp_msma_options_filter() . " and option_id=$id");
    350350    if(sizeof($option)==0) {
    351       print "<p>" . __("That option is not editable.") . "</p>";
     351      print "<p>" . __("That option is not editable.", 'wpmp') . "</p>";
    352352      return wpmp_msma_options_list();
    353353    }
     
    355355    $value = wpmp_msma_option_value($option->option_name, $option->option_value, $editable);
    356356    if(!$editable) {
    357       print "<p>" . __("That option is not editable.") . "</p>";
     357      print "<p>" . __("That option is not editable.", 'wpmp') . "</p>";
    358358      return wpmp_msma_options_list();
    359359    }
     
    364364    print '<input type="text" name="option_value" value="' . attribute_escape($value) . '" id="title" /></p>';
    365365
    366     print '<input name="submit" type="submit" id="submit" value="' . __('Apply') . '" />';
     366    print '<input name="submit" type="submit" id="submit" value="' . __('Apply', 'wpmp') . '" />';
    367367    if($value==='0' or $value==='1') {
    368       print '<p>' . __('For options that are usually a checkbox, use 1 for \'on\', and 0 for \'off\'') . '</p>';
     368      print '<p>' . __('For options that are usually a checkbox, use 1 for \'on\', and 0 for \'off\'', 'wpmp') . '</p>';
    369369    }
    370370    print '</form>';  }
     
    417417      case 'publish':
    418418      case 'private':
    419         return __('Published');
     419        return __('Published', 'wpmp');
    420420      case 'future':
    421         return __('Scheduled');
     421        return __('Scheduled', 'wpmp');
    422422      case 'pending':
    423         return __('Pending Review');
     423        return __('Pending Review', 'wpmp');
    424424      default:
    425         return __('Unpublished');
     425        return __('Unpublished', 'wpmp');
    426426    }
    427427  }
     
    433433    $referer = $_SERVER['HTTP_REFERER'];
    434434    if (substr($referer, 0, strlen($admin)) != $admin) {
    435       print __("You may only originate this action from the admin pages");
     435      print __("You may only originate this action from the admin pages", 'wpmp');
    436436      return false;
    437437    }
  • wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/mobile_interstitial.php

    r187519 r188277  
    2727
    2828  include_once('mobile.php');
    29   wpmp_ms_mobile_top(__("Select site"));
     29  wpmp_ms_mobile_top(__("Select site", 'wpmp'));
    3030?>
    3131
    32 <p><?php _e("You've requested the desktop site, but you appear to have a mobile browser."); ?></p>
    33 <p><?php print wpmp_switcher_link('mobile', __("Revert to the mobile site")); ?></p>
    34 <p><?php print wpmp_switcher_link('desktop', __("Continue to our desktop site")); ?></p>
     32<p><?php _e("You've requested the desktop site, but you appear to have a mobile browser.", 'wpmp'); ?></p>
     33<p><?php print wpmp_switcher_link('mobile', __("Revert to the mobile site", 'wpmp')); ?></p>
     34<p><?php print wpmp_switcher_link('desktop', __("Continue to our desktop site", 'wpmp')); ?></p>
    3535
    3636<?php
  • wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/mobile_login.php

    r187521 r188277  
    2626*/
    2727
    28 function wpmp_switcher_login_header($title = __('Login'), $message = '', $wp_error = '') {
     28function wpmp_switcher_login_header($title = __('Login', 'wpmp'), $message = '', $wp_error = '') {
    2929    global $error;
    3030
     
    3333
    3434  include_once('mobile.php');
    35   wpmp_ms_mobile_top(__("Login"));
     35  wpmp_ms_mobile_top(__("Login", 'wpmp'));
    3636
    3737    if ( !empty( $message ) ) echo apply_filters('login_message', $message) . "\n";
     
    121121
    122122    if ( isset($_POST['testcookie']) && empty($_COOKIE[TEST_COOKIE]) )
    123         $errors->add('test_cookie', sprintf(__("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a%s>enable cookies</a> to use WordPress."), " href='http://www.google.com/cookies.html'"));
     123        $errors->add('test_cookie', sprintf(__("<strong>ERROR</strong>: Cookies are blocked or not supported by your browser. You must <a%s>enable cookies</a> to use WordPress.", 'wpmp'), " href='http://www.google.com/cookies.html'"));
    124124
    125     if      ( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] )         $errors->add('loggedout', __('You are now logged out.'), 'message');
    126     elseif  ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] ) $errors->add('registerdiabled', __('User registration is currently not allowed.'));
    127     elseif  ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )  $errors->add('confirm', __('Check your e-mail for the confirmation link.'), 'message');
    128     elseif  ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )  $errors->add('newpass', __('Check your e-mail for your new password.'), 'message');
    129     elseif  ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )   $errors->add('registered', __('Registration complete. Please check your e-mail.'), 'message');
     125    if      ( isset($_GET['loggedout']) && TRUE == $_GET['loggedout'] )         $errors->add('loggedout', __('You are now logged out.', 'wpmp'), 'message');
     126    elseif  ( isset($_GET['registration']) && 'disabled' == $_GET['registration'] ) $errors->add('registerdiabled', __('User registration is currently not allowed.', 'wpmp'));
     127    elseif  ( isset($_GET['checkemail']) && 'confirm' == $_GET['checkemail'] )  $errors->add('confirm', __('Check your e-mail for the confirmation link.', 'wpmp'), 'message');
     128    elseif  ( isset($_GET['checkemail']) && 'newpass' == $_GET['checkemail'] )  $errors->add('newpass', __('Check your e-mail for your new password.', 'wpmp'), 'message');
     129    elseif  ( isset($_GET['checkemail']) && 'registered' == $_GET['checkemail'] )   $errors->add('registered', __('Registration complete. Please check your e-mail.', 'wpmp'), 'message');
    130130
    131     wpmp_switcher_login_header(__('Login'), '', $errors);
     131    wpmp_switcher_login_header(__('Login', 'wpmp'), '', $errors);
    132132?>
    133133
     
    135135<?php if ( !isset($_GET['checkemail']) || !in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?>
    136136    <p>
    137         <label><?php _e('Username') ?><br />
     137        <label><?php _e('Username', 'wpmp') ?><br />
    138138        <input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes(@$user_login)); ?>" size="20" tabindex="10" /></label>
    139139    </p>
    140140    <p>
    141         <label><?php _e('Password') ?><br />
     141        <label><?php _e('Password', 'wpmp') ?><br />
    142142        <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
    143143    </p>
    144144<?php do_action('login_form'); ?>
    145     <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember Me'); ?></label></p>
     145    <p class="forgetmenot"><label><input name="rememberme" type="checkbox" id="rememberme" value="forever" tabindex="90" /> <?php _e('Remember Me', 'wpmp'); ?></label></p>
    146146    <p class="submit">
    147         <input type="submit" name="wp-submit" id="submit" value="<?php _e('Log In'); ?>" tabindex="100" />
     147        <input type="submit" name="wp-submit" id="submit" value="<?php _e('Log In', 'wpmp'); ?>" tabindex="100" />
    148148        <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" />
    149149        <input type="hidden" name="testcookie" value="1" />
     
    154154</form>
    155155
    156 <p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?') ?>"><?php print '&laquo; ' . sprintf(__('Back to %s'), get_bloginfo('title', 'display' )); ?></a></p>
     156<p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?', 'wpmp') ?>"><?php print '&laquo; ' . sprintf(__('Back to %s', 'wpmp'), get_bloginfo('title', 'display' )); ?></a></p>
    157157
    158158<?php
  • wordpress-mobile-pack/trunk/plugins/wpmp_switcher/wpmp_switcher.php

    r187519 r188277  
    5858
    5959function wpmp_switcher_init() {
    60   wp_register_sidebar_widget('wpmp_switcher_widget_link', __('Mobile Switcher Link'), 'wpmp_switcher_widget_link',
    61     array('classname' => 'wpmp_switcher_widget_link', 'description' => __( "A link that allows users to toggle between desktop and mobile sites (when a switcher mode is enabled)"))
     60  wp_register_sidebar_widget('wpmp_switcher_widget_link', __('Mobile Switcher Link', 'wpmp'), 'wpmp_switcher_widget_link',
     61    array('classname' => 'wpmp_switcher_widget_link', 'description' => __( "A link that allows users to toggle between desktop and mobile sites (when a switcher mode is enabled)", 'wpmp'))
    6262  );
    6363  switch($switcher_outcome = wpmp_switcher_outcome()) {
     
    102102    return;
    103103  }
    104   print $before_widget . $before_title . __('Switch site') . $after_title;
     104  print $before_widget . $before_title . __('Switch site', 'wpmp') . $after_title;
    105105  switch (wpmp_switcher_outcome()) {
    106106    case WPMP_SWITCHER_MOBILE_PAGE:
    107       print "<ul><li>" . wpmp_switcher_link('desktop', __('Switch to our desktop site')) . "</li></ul>";
     107      print "<ul><li>" . wpmp_switcher_link('desktop', __('Switch to our desktop site', 'wpmp')) . "</li></ul>";
    108108      break;
    109109    case WPMP_SWITCHER_DESKTOP_PAGE:
    110       print "<ul><li>" . wpmp_switcher_link('mobile', __('Switch to our mobile site')) . "</li></ul>";
     110      print "<ul><li>" . wpmp_switcher_link('mobile', __('Switch to our mobile site', 'wpmp')) . "</li></ul>";
    111111      break;
    112112  }
     
    184184
    185185function wpmp_switcher_admin_menu() {
    186     add_theme_page(__('Mobile Switcher'), __('Mobile Switcher'), 3, 'wpmp_switcher_admin', 'wpmp_switcher_admin');
     186    add_theme_page(__('Mobile Switcher', 'wpmp'), __('Mobile Switcher', 'wpmp'), 3, 'wpmp_switcher_admin', 'wpmp_switcher_admin');
    187187}
    188188function wpmp_switcher_admin() {
     
    191191    if(isset($_POST['wpmp_switcher_hit_reset']) && $_POST['wpmp_switcher_hit_reset']=='true') {
    192192      wpmp_switcher_hit_reset();
    193       print '<div id="message" class="updated fade"><p><strong>' . __('Hit counter reset.') . '</strong></p></div>';
     193      print '<div id="message" class="updated fade"><p><strong>' . __('Hit counter reset.', 'wpmp') . '</strong></p></div>';
    194194    }
    195195  }
     
    203203  switch (wpmp_switcher_outcome()) {
    204204    case WPMP_SWITCHER_MOBILE_PAGE:
    205       print "<p>" . wpmp_switcher_link('desktop', __('Switch to our desktop site')) . "</p>";
     205      print "<p>" . wpmp_switcher_link('desktop', __('Switch to our desktop site', 'wpmp')) . "</p>";
    206206      break;
    207207    case WPMP_SWITCHER_DESKTOP_PAGE:
    208       print "<p>" . wpmp_switcher_link('mobile', __('Switch to our mobile site')) . "</p>";
     208      print "<p>" . wpmp_switcher_link('mobile', __('Switch to our mobile site', 'wpmp')) . "</p>";
    209209      break;
    210210  }
     
    277277}
    278278function wpmp_switcher_hit_summary() {
    279   $desktop = wpmp_switcher_humanize_number(get_option("wpmp_switcher_hits_desktop"));
    280   $desktop .= sprintf(_n('one desktop hit', '%d desktop hits', $desktop), $desktop);
    281   $mobile = wpmp_switcher_humanize_number(get_option("wpmp_switcher_hits_mobile"));
    282   $desktop .= sprintf(_n('one mobile hit', '%d mobile hits', $mobile), $mobile);
     279  $desktop = get_option("wpmp_switcher_hits_desktop");
     280  $desktop_text = sprintf(__ngettext('one desktop hit', '%d desktop hits', wpmp_switcher_humanize_number($desktop), 'wpmp'), $desktop);
     281  $mobile = get_option("wpmp_switcher_hits_mobile");
     282  $mobile_text = sprintf(__ngettext('one mobile hit', '%d mobile hits', wpmp_switcher_humanize_number($mobile), 'wpmp'), $mobile);
    283283  $duration = wpmp_switcher_humanize_delta(microtime(true) - get_option("wpmp_switcher_hits_start"));
    284284  $percentage = round(100 * $mobile / ($desktop + $mobile), 1);
    285   return "<strong>" . sprintf(__('%d% of your traffic is currently from mobile users.'), $percentage) . "</strong><br />" .
    286           sprintf(__('You\'ve had %1$s and %2$s in the last %3$s.'), $desktop, $mobile, $duration);
     285  return "<strong>" . sprintf(__('%d%%  of your traffic is currently from mobile users.', 'wpmp'), $percentage) . "</strong><br />" .
     286          sprintf(__('You\'ve had %1$s and %2$s in the last %3$s.', 'wpmp'), $desktop_text, $mobile_text, $duration);
    287287}
    288288
     
    291291  $suffix = '';
    292292  if ($number>(1000000000000)){
    293     $suffix=' ' . __('trillion');
     293    $suffix=' ' . __('trillion', 'wpmp');
    294294    $number = $number / (1000000000000);
    295295  } elseif ($number>(1000000000)){
    296     $suffix=' ' . __('billion');
     296    $suffix=' ' . __('billion', 'wpmp');
    297297    $number = $number / (1000000000);
    298298  } elseif ($number>(1000000)){
    299     $suffix=' ' . __('million');
     299    $suffix=' ' . __('million', 'wpmp');
    300300    $number = $number / (1000000);
    301301  }
     
    305305function wpmp_switcher_humanize_delta($seconds) {
    306306  $seconds = $seconds * 1;
    307   $suffix = ' ' . __('seconds');
     307  $suffix = ' ' . __('seconds', 'wpmp');
    308308  if (($seconds)>60*60*24*365*2){
    309     $suffix=' ' . __('years');
     309    $suffix=' ' . __('years', 'wpmp');
    310310    $seconds = round($seconds / (60*60*24*365), 1);
    311311  } elseif ($seconds>60*60*24*30*2){
    312     $suffix=' ' . __('months');
     312    $suffix=' ' . __('months', 'wpmp');
    313313    $seconds = round($seconds / (60*60*24*30), 0);
    314314  } elseif ($seconds>60*60*24*7*2){
    315     $suffix=' ' . __('weeks');
     315    $suffix=' ' . __('weeks', 'wpmp');
    316316    $seconds = round($seconds / (60*60*24*7), 1);
    317317  } elseif ($seconds>60*60*24*2){
    318     $suffix=' ' . __('days');
     318    $suffix=' ' . __('days', 'wpmp');
    319319    $seconds = round($seconds / (60*60*24), 1);
    320320  } elseif ($seconds>60*60*2){
    321     $suffix=' ' . __('hours');
     321    $suffix=' ' . __('hours', 'wpmp');
    322322    $seconds = round($seconds / (60*60), 1);
    323323  } elseif ($seconds>60){
    324     $suffix=' ' . __('minutes');
     324    $suffix=' ' . __('minutes', 'wpmp');
    325325    $seconds = round($seconds / 60, 1);
    326326  } else {
     
    528528}
    529529function wpmp_switcher_options_write() {
    530   $message = __('Settings saved.');
     530  $message = __('Settings saved.', 'wpmp');
    531531  foreach(array(
    532532    'wpmp_switcher_mode'=>false,
     
    561561        $trimmed_domain = wpmp_switcher_trim_domain($domain);
    562562        if ($trimmed_domain!=$domain) {
    563           $message = __('You must provide clean domain names without any leading or trailing syntax. We fixed them for you.');
     563          $message = __('You must provide clean domain names without any leading or trailing syntax. We fixed them for you.', 'wpmp');
    564564        }
    565565        $trimmed_domains[] = $trimmed_domain;
     
    573573      case 'domain':
    574574        update_option('wpmp_switcher_mode', 'none');
    575         $message = __('You must provide both desktop and mobile domains. Switching has been disabled.');
     575        $message = __('You must provide both desktop and mobile domains. Switching has been disabled.', 'wpmp');
    576576        break;
    577577      case 'browserdomain':
    578578        update_option('wpmp_switcher_mode', 'browser');
    579         $message = __('You must provide both desktop and mobile domains. Switching has been changed to browser detection only.');
     579        $message = __('You must provide both desktop and mobile domains. Switching has been changed to browser detection only.', 'wpmp');
    580580        break;
    581581    }
     
    590590        $option,
    591591        array(
    592           'none'=>__('Disabled'),
    593           'browser'=>__('Browser detection'),
    594           'domain'=>__('Domain mapping'),
    595           'browserdomain'=>__('BOTH: browser detection and domain mapping'),
     592          'none'=>__('Disabled', 'wpmp'),
     593          'browser'=>__('Browser detection', 'wpmp'),
     594          'domain'=>__('Domain mapping', 'wpmp'),
     595          'browserdomain'=>__('BOTH: browser detection and domain mapping', 'wpmp'),
    596596        ),
    597597        $onchange
     
    602602
    603603    case 'wpmp_switcher_detection':
    604       $options = array('simple'=>__('User-agent prefixes'));
     604      $options = array('simple'=>__('User-agent prefixes', 'wpmp'));
    605605      if(function_exists('wpmp_deviceatlas_enabled') && wpmp_deviceatlas_enabled()) {
    606         $options['simple']=__('SIMPLE: User-agent prefixes');
    607         $options['deviceatlas']=__('ADVANCED: DeviceAtlas recognition');
     606        $options['simple']=__('SIMPLE: User-agent prefixes', 'wpmp');
     607        $options['deviceatlas']=__('ADVANCED: DeviceAtlas recognition', 'wpmp');
    608608      }
    609609      return wpmp_switcher_option_dropdown(
     
    638638      $selected = '';
    639639    }
    640     $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description) . '</option>';
     640    $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description, 'wpmp') . '</option>';
    641641  }
    642642  $dropdown .= "</select>";
  • wordpress-mobile-pack/trunk/plugins/wpmp_switcher/wpmp_switcher_admin.php

    r187519 r188277  
    3030<div class="wrap">
    3131  <h2>
    32     <?php _e('Mobile Switcher') ?>
     32    <?php _e('Mobile Switcher', 'wpmp') ?>
    3333    <p style='font-size:small;font-style:italic;margin:0'>
    34       <?php _e('Part of the WordPress Mobile Pack'); ?>
     34      <?php _e('Part of the WordPress Mobile Pack', 'wpmp'); ?>
    3535    </p>
    3636  </h2>
     
    3838    <table class="form-table">
    3939      <tr>
    40         <th><?php _e('Mobile activity'); ?></th>
     40        <th><?php _e('Mobile activity', 'wpmp'); ?></th>
    4141        <td>
    4242          <?php print wpmp_switcher_hit_summary(); ?>
    4343          <br />
    44           <?php print wpmp_switcher_option('wpmp_switcher_hit_reset'); ?> <strong><?php _e("Reset counter"); ?></strong>
     44          <?php print wpmp_switcher_option('wpmp_switcher_hit_reset'); ?> <strong><?php _e("Reset counter", 'wpmp'); ?></strong>
    4545        </td>
    4646      </tr>
    4747      <tr>
    48         <th><?php _e('Switcher mode'); ?></th>
     48        <th><?php _e('Switcher mode', 'wpmp'); ?></th>
    4949        <td>
    5050          <?php print wpmp_switcher_option('wpmp_switcher_mode', 'wpmpSwitcherMode();'); ?>
    5151          <br />
    52           <?php _e('The switcher can detect whether the user is using a mobile device or has requested a mobile domain. It will switch theme accordingly.'); ?>
     52          <?php _e('The switcher can detect whether the user is using a mobile device or has requested a mobile domain. It will switch theme accordingly.', 'wpmp'); ?>
    5353        </td>
    5454      </tr>
    5555      <tr class='wpmp_theme'>
    56         <th><?php _e('Mobile theme'); ?></th>
     56        <th><?php _e('Mobile theme', 'wpmp'); ?></th>
    5757        <td>
    5858          <?php print wpmp_switcher_option('wpmp_switcher_mobile_theme'); ?>
    5959          <br />
    60           <?php _e('The theme that will be sent to a mobile user. Desktop users will receive '); ?>
     60          <?php _e('The theme that will be sent to a mobile user. Desktop users will receive ', 'wpmp'); ?>
    6161          <a href='/wp-admin/themes.php' target='_blank'><?php print wpmp_switcher_desktop_theme(); ?></a>
    6262        </td>
    6363      </tr>
    6464      <tr class='wpmp_browser'>
    65         <th><?php _e('Browser detection'); ?></th>
     65        <th><?php _e('Browser detection', 'wpmp'); ?></th>
    6666        <td><?php print wpmp_switcher_option('wpmp_switcher_detection'); ?></td>
    6767      </tr>
    6868      <tr class='wpmp_desktop_domain'>
    69         <th><?php _e('Desktop domains'); ?></th>
     69        <th><?php _e('Desktop domains', 'wpmp'); ?></th>
    7070        <td>
    7171          <?php print wpmp_switcher_option('wpmp_switcher_desktop_domains'); ?>
    7272          <br />
    73           <?php _e('Use comma-separated domain names. eg:'); ?> <b>mysite.com, downloads.mysite.com</b>
     73          <?php _e('Use comma-separated domain names. eg:', 'wpmp'); ?> <b>mysite.com, downloads.mysite.com</b>
    7474          <br />
    75           <?php _e("Desktop users who mistakenly access a mobile domain will be given the option to return to the first domain in this list."); ?>
     75          <?php _e("Desktop users who mistakenly access a mobile domain will be given the option to return to the first domain in this list.", 'wpmp'); ?>
    7676          <br />
    77           <?php _e("This is also the domain used for switching when 'browser detection' is used, and in that case should be your site's primary domain."); ?>
     77          <?php _e("This is also the domain used for switching when 'browser detection' is used, and in that case should be your site's primary domain.", 'wpmp'); ?>
    7878        </td>
    7979      </tr>
    8080      <tr class='wpmp_mobile_domain'>
    81         <th><?php _e('Mobile domains'); ?></th>
     81        <th><?php _e('Mobile domains', 'wpmp'); ?></th>
    8282        <td>
    8383          <?php print wpmp_switcher_option('wpmp_switcher_mobile_domains'); ?>
    8484          <br />
    85           <?php _e('Use comma-separated domain fragments. eg:'); ?> <b>mysite.mobi, m.mysite.com</b>
     85          <?php _e('Use comma-separated domain fragments. eg:', 'wpmp'); ?> <b>mysite.mobi, m.mysite.com</b>
    8686          <?php
    8787            if (strpos(get_option('wpmp_switcher_mode'), 'domain')!==false && wpmp_switcher_domains('desktop', true) == wpmp_switcher_domains('mobile', true)) {
    88               _e("<br /><strong style='color:#770000'>Warning</strong>: your primary desktop and mobile domains are the same. The switcher will default to 'browser detection' mode unless one is changed.");
     88              _e("<br /><strong style='color:#770000'>Warning</strong>: your primary desktop and mobile domains are the same. The switcher will default to 'browser detection' mode unless one is changed.", 'wpmp');
    8989            }
    9090          ?>
    9191          <br/>
    92           <?php _e('Mobile users who mistakenly access a desktop domain will be given the option to return to the first domain in this list.'); ?>
     92          <?php _e('Mobile users who mistakenly access a desktop domain will be given the option to return to the first domain in this list.', 'wpmp'); ?>
    9393          <br/>
    94           <?php _e('<b>NB</b>: The plugin does not <i>create</i> these domains. You must be sure their DNS entries already resolve and are served by this web server.'); ?>
     94          <?php _e('<b>NB</b>: The plugin does not <i>create</i> these domains. You must be sure their DNS entries already resolve and are served by this web server.', 'wpmp'); ?>
    9595        </td>
    9696      </tr>
    9797      <tr class='wpmp_links'>
    98         <th><?php _e('Footer links'); ?></th>
     98        <th><?php _e('Footer links', 'wpmp'); ?></th>
    9999        <td>
    100100          <?php print wpmp_switcher_option('wpmp_switcher_footer_links'); ?>
    101101          <br />
    102           <?php _e('Places a link in the theme footer to allow users to override the detection.'); ?>
    103           <?php _e('You can also enable the widget that contains this link.'); ?>
    104           <?php _e('Both the footer link and the widget will only appear when a switcher mode is enabled.'); ?>
    105           <?php _e('Regardless of this setting, the switcher link will always appear on the mobile admin pages.'); ?>
     102          <?php _e('Places a link in the theme footer to allow users to override the detection.', 'wpmp'); ?>
     103          <?php _e('You can also enable the widget that contains this link.', 'wpmp'); ?>
     104          <?php _e('Both the footer link and the widget will only appear when a switcher mode is enabled.', 'wpmp'); ?>
     105          <?php _e('Regardless of this setting, the switcher link will always appear on the mobile admin pages.', 'wpmp'); ?>
    106106        </td>
    107107      </tr>
    108108    </table>
    109109    <p class="submit">
    110       <input type="submit" name="Submit" value="<?php _e('Save Changes'); ?>" />
     110      <input type="submit" name="Submit" value="<?php _e('Save Changes', 'wpmp'); ?>" />
    111111    </p>
    112112  </form>
  • wordpress-mobile-pack/trunk/plugins/wpmp_transcoder/wpmp_transcoder.php

    r187519 r188277  
    3737function wpmp_transcoder_activate() {
    3838  if(!is_writable($dir = $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . 'c')) {
    39     update_option('wpmp_warning', sprintf(__('<strong>Transcoder will not be able to cache images</strong> to %s.'), $dir) . ' ' . __('Please ensure that the web server has write-access to that directory.'));
     39    update_option('wpmp_warning', sprintf(__('<strong>Transcoder will not be able to cache images</strong> to %s.', 'wpmp'), $dir) . ' ' . __('Please ensure that the web server has write-access to that directory.', 'wpmp'));
    4040  }
    4141}
     
    8484  $pager = '';
    8585  if(sizeof($pages)>1) {
    86     $pager = "<p>" . sprintf(__('Page %1$d of %2$d'), $page+1, sizeof($pages));
     86    $pager = "<p>" . sprintf(__('Page %1$d of %2$d', 'wpmp'), $page+1, sizeof($pages));
    8787    if ($page>0) {
    88       $previous .= "<a href='" . wpmp_transcoder_replace_cgi("wpmp_tp", $page-1) . "'>" . __('Previous page') . "</a>";
     88      $previous .= "<a href='" . wpmp_transcoder_replace_cgi("wpmp_tp", $page-1) . "'>" . __('Previous page', 'wpmp') . "</a>";
    8989    }
    9090    if ($page<sizeof($pages)-1) {
    91       $next .= "<a href='" . wpmp_transcoder_replace_cgi("wpmp_tp", $page+1) . "'>" . __('Next page') . "</a>";
     91      $next .= "<a href='" . wpmp_transcoder_replace_cgi("wpmp_tp", $page+1) . "'>" . __('Next page', 'wpmp') . "</a>";
    9292      $wpmp_transcoder_is_last_page = false;
    9393    } else {
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/archives.php

    r187519 r188277  
    3232  <div id="content">
    3333    <div class="post">
    34       <h2><?php _e('Archives by Month:'); ?></h2>
     34      <h2><?php _e('Archives by Month:', 'wpmp'); ?></h2>
    3535      <ul>
    3636        <?php wp_get_archives('type=monthly'); ?>
     
    3838    </div>
    3939    <div class="post">
    40       <h2><?php _e('Archives by Subject:'); ?></h2>
     40      <h2><?php _e('Archives by Subject:', 'wpmp'); ?></h2>
    4141      <ul>
    4242        <?php wp_list_categories(); ?>
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/comments.php

    r187519 r188277  
    3131
    3232<?php if (!empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) { ?>
    33   <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.'); ?></p>
     33  <p class="nocomments"><?php _e('This post is password protected. Enter the password to view comments.', 'wpmp'); ?></p>
    3434  <?php return; ?>
    3535<?php } ?>
     
    4040  } else {
    4141    if ($comments) {
    42       print '<h3 id="comments">'; comments_number('No comments', '1 comment', '% comments' ); _e(' on this post.') . '</h3>';
     42      print '<h3 id="comments">'; comments_number('No comments', '1 comment', '% comments' ); _e(' on this post.', 'wpmp') . '</h3>';
    4343      wpmp_theme_comment_list($comments);
    4444    }
    4545    if ($post->comment_status == 'open') {
    46       print '<h3 id="respond">' . __('Leave a comment') . '</h3>';
     46      print '<h3 id="respond">' . __('Leave a comment', 'wpmp') . '</h3>';
    4747      wpmp_theme_comment_form($user_ID, $user_identity, $req, $comment_author, $comment_author_url, $id, $post);
    4848    }
     
    6161          <p><?php comment_author_link($comment->comment_ID) ?>:</p>
    6262          <?php if ($comment->comment_approved == '0') { ?>
    63             <em><?php _e('Your comment is awaiting moderation.'); ?></em>
     63            <em><?php _e('Your comment is awaiting moderation.', 'wpmp'); ?></em>
    6464          <?php } ?>
    6565          <p class="metadata"><?php comment_date('F jS, Y') ?> at <?php comment_time() ?> <?php edit_comment_link('Edit','',''); ?></p>
     
    7777    <?php if ( get_option('comment_registration') && !$user_ID ) { ?>
    7878      <p>
    79         <?php printf(__('You must be <a%s>logged in</a> to post a comment.'), ' href="' . get_option('siteurl') . '/wp-login.php?redirect_to=' . get_permalink($post->ID)); ?>
     79        <?php printf(__('You must be <a%s>logged in</a> to post a comment.', 'wpmp'), ' href="' . get_option('siteurl') . '/wp-login.php?redirect_to=' . get_permalink($post->ID)); ?>
    8080      </p>
    8181    <?php } else { ?>
     
    8383        <?php if ( $user_ID ) { ?>
    8484          <p>
    85             <?php _e('Logged in as'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.
    86             <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout"><?php _e('Logout'); ?></a></p>
     85            <?php _e('Logged in as', 'wpmp'); ?> <a href="<?php echo get_option('siteurl'); ?>/wp-admin/profile.php"><?php echo $user_identity; ?></a>.
     86            <a href="<?php echo get_option('siteurl'); ?>/wp-login.php?action=logout"><?php _e('Logout', 'wpmp'); ?></a></p>
    8787        <?php } else { ?>
    8888          <p>
    89             <label for="author"><?php _e('Name'); ?> <?php if ($req) {_e("(required)");} ?></label>
     89            <label for="author"><?php _e('Name', 'wpmp'); ?> <?php if ($req) {_e("(required)", 'wpmp');} ?></label>
    9090            <br />
    9191            <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" />
    9292          </p>
    9393          <p>
    94             <label for="email"><?php _e('Mail'); ?> (<?php if ($req) {_e("required, but ");} ?><?php _e("not published"); ?>)</label>
     94            <label for="email"><?php _e('Mail', 'wpmp'); ?> (<?php if ($req) {_e("required, but ", 'wpmp');} ?><?php _e("not published", 'wpmp'); ?>)</label>
    9595            <br />
    9696            <input type="text" name="email" id="email" value="<?php print empty($comment_author_email)?"":$comment_author_email; ?>" />
    9797          </p>
    9898          <p>
    99             <label for="url"><?php _e('Website'); ?></label>
     99            <label for="url"><?php _e('Website', 'wpmp'); ?></label>
    100100            <br />
    101101            <input type="text" name="url" id="url" value="<?php print empty($comment_author_url)?"http://":$comment_author_url; ?>"/>
     
    103103        <?php } ?>
    104104        <p>
    105           <label for="comment"><?php _e('Comment'); ?></label>
     105          <label for="comment"><?php _e('Comment', 'wpmp'); ?></label>
    106106          <br />
    107107          <textarea name="comment" id="comment" rows="3"></textarea>
    108108        </p>
    109109        <p>
    110           <input name="submit" type="submit" id="submit" value="<?php _e('Submit comment'); ?>" />
     110          <input name="submit" type="submit" id="submit" value="<?php _e('Submit comment', 'wpmp'); ?>" />
    111111          <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" />
    112112        </p>
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/footer.php

    r187519 r188277  
    3434          } else {
    3535            ?>
    36               <p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>"), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>ribot</a>"), ' href="http://ribot.co.uk"'); ?></p>
     36              <p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>", 'wpmp'), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>ribot</a>", 'wpmp'), ' href="http://ribot.co.uk"'); ?></p>
    3737            <?php
    3838          }
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/functions.php

    r187519 r188277  
    110110  }
    111111    if(($pos=strpos($content, '['))!==false) {
    112         $content = substr($content, 0, $pos) . ' ' . __("Read more");
     112        $content = substr($content, 0, $pos) . ' ' . __("Read more", 'wpmp');
    113113    }
    114   if (substr($content, strlen(__("Read more")))==__("Read more")) {
     114  if (substr($content, strlen(__("Read more", 'wpmp')))==__("Read more", 'wpmp')) {
    115115    $content = substr($content, 0, -9);
    116116    $suffix = true;
    117117  }
    118118  if ($suffix) {
    119     $content .= '<br /><a href="'. get_permalink() . '#more-$id" class="more-link">' . __('Read more') . "</a>";
     119    $content .= '<br /><a href="'. get_permalink() . '#more-$id" class="more-link">' . __('Read more', 'wpmp') . "</a>";
    120120  }
    121121  return $content;
     
    139139function wpmp_theme_widget_search($args, $widget_args=1) {
    140140  extract($args);
    141   print $before_widget . $before_title . __('Search Site') . $after_title;
     141  print $before_widget . $before_title . __('Search Site', 'wpmp') . $after_title;
    142142  include (TEMPLATEPATH . "/searchform.php");
    143143  print $after_widget;
     
    148148  extract($args);
    149149  $options = get_option('widget_archives');
    150   $title = empty($options['title']) ? __('Archives') : $options['title'];
     150  $title = empty($options['title']) ? __('Archives', 'wpmp') : $options['title'];
    151151  print $before_widget . $before_title . $title . $after_title . "<ul>";
    152152  ob_start();
     
    154154  $html = ob_get_contents();
    155155  ob_end_clean();
    156   $content = wpmp_theme_widget_trim_list($html, "<li><a href='/?archives=month'>" . __('...more months') . "</a></li>");
     156  $content = wpmp_theme_widget_trim_list($html, "<li><a href='/?archives=month'>" . __('...more months', 'wpmp') . "</a></li>");
    157157  if($content) {
    158158    print $content;
    159159  } else {
    160     print "<li>" . __('No archives') . "</li>";
     160    print "<li>" . __('No archives', 'wpmp') . "</li>";
    161161  }
    162162  print "</ul>$after_widget";
     
    172172  $options = get_option('widget_categories');
    173173  if (!isset($options[$number])) { return; }
    174   $title = empty($options[$number]['title']) ? __('Categories') : $options[$number]['title'];
     174  $title = empty($options[$number]['title']) ? __('Categories', 'wpmp') : $options[$number]['title'];
    175175  print $before_widget . $before_title . $title . $after_title . "<ul>";
    176176  ob_start();
     
    178178  $html = ob_get_contents();
    179179  ob_end_clean();
    180   print wpmp_theme_widget_trim_list($html, "<li><a href='/?archives=category'>" . __('...more categories') . "</a></li>");
     180  print wpmp_theme_widget_trim_list($html, "<li><a href='/?archives=category'>" . __('...more categories', 'wpmp') . "</a></li>");
    181181  print "</ul>$after_widget";
    182182}
     
    185185  extract($args);
    186186  $options = get_option('widget_tag_cloud');
    187   $title = empty($options['title']) ? __('Tags') : $options['title'];
     187  $title = empty($options['title']) ? __('Tags', 'wpmp') : $options['title'];
    188188  $tags = get_tags();
    189189  if(sizeof($tags)>0) {
     
    192192    foreach($tags as $tag) {
    193193      if($limit==0) {
    194         print "<li><a href='/?archives=tag'>" . __('...more tags') . "</a>";
     194        print "<li><a href='/?archives=tag'>" . __('...more tags', 'wpmp') . "</a>";
    195195        break;
    196196      }
     
    212212  $original = ob_get_contents();
    213213  ob_end_clean();
    214   $original = str_ireplace('<ul id="recentcomments"></ul>', '<ul id="recentcomments"><li>' . __('No comments') . '</li></ul>', $original);
     214  $original = str_ireplace('<ul id="recentcomments"></ul>', '<ul id="recentcomments"><li>' . __('No comments', 'wpmp') . '</li></ul>', $original);
    215215  $original = str_ireplace("&cpage", "&amp;cpage", $original);
    216216  print $original;
     
    232232  }
    233233  preg_match_all("/(^.*)\<caption\>(.*)\<\/caption\>.*\<thead\>(.*)\<\/thead\>.*\<tfoot\>(.*)\<\/tfoot\>.*\<tbody\>(.*)\<\/tbody\>(.*$)/Usi", $original, $parts);
    234   print str_replace("<h2>&nbsp;</h2>", "<h2>" . __('Calendar') . "</h2>", $parts[1][0]) .
     234  print str_replace("<h2>&nbsp;</h2>", "<h2>" . __('Calendar', 'wpmp') . "</h2>", $parts[1][0]) .
    235235        "<tr><td colspan='7'>" . $parts[2][0] . "</td></tr>" .
    236236        $parts[3][0] .$parts[5][0] . $parts[4][0] .
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/functions_persist.php

    r187519 r188277  
    6262add_action('admin_menu', 'wpmp_theme_admin_menu');
    6363function wpmp_theme_admin_menu() {
    64   add_theme_page(__('Mobile Theme'), __('Mobile Theme'), 3, 'wpmp_theme_theme_admin', 'wpmp_theme_theme_admin');
    65   add_theme_page(__('Mobile Widgets'), __('Mobile Widgets'), 3, 'wpmp_theme_widget_admin', 'wpmp_theme_widget_admin');
     64  add_theme_page(__('Mobile Theme', 'wpmp'), __('Mobile Theme', 'wpmp'), 3, 'wpmp_theme_theme_admin', 'wpmp_theme_theme_admin');
     65  add_theme_page(__('Mobile Widgets', 'wpmp'), __('Mobile Widgets', 'wpmp'), 3, 'wpmp_theme_widget_admin', 'wpmp_theme_widget_admin');
    6666}
    6767
     
    7171    if(isset($_POST['wpmp_theme_transcoder_clear_cache_now']) && $_POST['wpmp_theme_transcoder_clear_cache_now']=='true') {
    7272      if(function_exists('wpmp_transcoder_purge_cache') && ($count = wpmp_transcoder_purge_cache())>0) {
    73         print '<div id="message" class="updated fade"><p><strong>' . sprintf(_n('One file cleared from image cache', '%d files cleared from image cache', $count), $count) . '</strong></p></div>';
     73        print '<div id="message" class="updated fade"><p><strong>' . sprintf(__ngettext('One file cleared from image cache', '%d files cleared from image cache', $count, 'wpmp'), $count) . '</strong></p></div>';
    7474      }
    7575    }
     
    8585
    8686function wpmp_theme_options_write() {
    87   $message = __('Settings saved.');
     87  $message = __('Settings saved.', 'wpmp');
    8888  foreach(array(
    8989    'wpmp_theme_widget'=>false,
     
    116116  if (!is_numeric(get_option('wpmp_theme_post_count'))) {
    117117    update_option('wpmp_theme_post_count', '5');
    118     $message = __('Please provide a valid number of posts that you would like the theme to display.');
     118    $message = __('Please provide a valid number of posts that you would like the theme to display.', 'wpmp');
    119119  }
    120120  if (!is_numeric(get_option('wpmp_theme_teaser_length'))) {
    121121    update_option('wpmp_theme_teaser_length', '50');
    122     $message = __('Please provide a valid teaser length.');
     122    $message = __('Please provide a valid teaser length.', 'wpmp');
    123123  }
    124124  if (!is_numeric(get_option('wpmp_theme_widget_list_count'))) {
    125125    update_option('wpmp_theme_widget_list_count', '5');
    126     $message = __('Please provide a valid widget list length.');
     126    $message = __('Please provide a valid widget list length.', 'wpmp');
    127127  }
    128128  return $message;
     
    135135        $option,
    136136        array(
    137           'none'=>__('Title only'),
    138           'firstteaser'=>__('Title and teaser for first post, title for the rest'),
    139           'teaser'=>__('Title and teaser for all posts'),
     137          'none'=>__('Title only', 'wpmp'),
     138          'firstteaser'=>__('Title and teaser for first post, title for the rest', 'wpmp'),
     139          'teaser'=>__('Title and teaser for all posts', 'wpmp'),
    140140        ),
    141141        $onchange
     
    177177      $selected = '';
    178178    }
    179     $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description) . '</option>';
     179    $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description, 'wpmp') . '</option>';
    180180  }
    181181  $dropdown .= "</select>";
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/groups/nokia_high/comments.php

    r187519 r188277  
    2929    print '<dl id="accordion_comments" class="list-accordion">';
    3030    if ($comments) {
    31       print '<dt class="collapsed" id="comments"><span></span>'; comments_number('No comments', '1 comment', '% comments' ); print __(' on this post.') . '</dt>';
     31      print '<dt class="collapsed" id="comments"><span></span>'; comments_number('No comments', '1 comment', '% comments' ); print __(' on this post.', 'wpmp') . '</dt>';
    3232      print "<dd>"; wpmp_theme_comment_list($comments); print '</dd>';
    3333    }
    3434    if ($post->comment_status == 'open') {
    35       print '<dt class="collapsed" id="respond"><span></span>' . __('Leave a comment') . '</dt>';
     35      print '<dt class="collapsed" id="respond"><span></span>' . __('Leave a comment', 'wpmp') . '</dt>';
    3636      print "<dd>"; wpmp_theme_comment_form($user_ID, $user_identity, $req, $comment_author, $comment_author_url, $id, $post); print '</dd>';
    3737    }
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/groups/nokia_high/footer.php

    r187519 r188277  
    2828?>
    2929
    30 <p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>"), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>Forum Nokia</a>"), ' href="http://forumnokia.mobi"'); ?></p>
     30<p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>", 'wpmp'), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>Forum Nokia</a>", 'wpmp'), ' href="http://forumnokia.mobi"'); ?></p>
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/groups/nokia_high/index.php

    r187519 r188277  
    3333    wpmp_theme_post_single();
    3434  } else {
    35     print '<ul class="list"><li><a href="'; the_permalink(); print '" rel="bookmark" title="' . __('Link to') . ' ' . get_the_title() . '">' . get_the_title() . '</a></li></ul>';
     35    print '<ul class="list"><li><a href="'; the_permalink(); print '" rel="bookmark" title="' . __('Link to', 'wpmp') . ' ' . get_the_title() . '">' . get_the_title() . '</a></li></ul>';
    3636    wpmp_theme_post_summary();
    3737  }
     
    3939if(!is_single() && !is_page()) {
    4040  print '<p class="navigation">';
    41   next_posts_link(__('Older'));
     41  next_posts_link(__('Older', 'wpmp'));
    4242  print ' ';
    43   previous_posts_link(__('Newer'));
     43  previous_posts_link(__('Newer', 'wpmp'));
    4444  print '</p>';
    4545}
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/groups/nokia_low/footer.php

    r187519 r188277  
    2828?>
    2929
    30 <p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>"), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>Forum Nokia</a>"), ' href="http://forumnokia.mobi"'); ?></p>
     30<p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>", 'wpmp'), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>Forum Nokia</a>", 'wpmp'), ' href="http://forumnokia.mobi"'); ?></p>
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/groups/nokia_mid/footer.php

    r187519 r188277  
    2828?>
    2929
    30 <p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>"), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>Forum Nokia</a>"), ' href="http://forumnokia.mobi"'); ?></p>
     30<p><?php printf(__("Powered by the <a%s>WordPress Mobile Pack</a>", 'wpmp'), ' href="http://mobiforge.mobi/wordpress-mobile-pack"');?> | <?php printf(__("Theme designed by <a%s>Forum Nokia</a>", 'wpmp'), ' href="http://forumnokia.mobi"'); ?></p>
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/header.php

    r187519 r188277  
    4848
    4949  <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    50   <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { print '&#187; ' . __('Blog Archive'); } ?><?php wp_title('&#187;'); ?></title>
     50  <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { print '&#187; ' . __('Blog Archive', 'wpmp'); } ?><?php wp_title('&#187;'); ?></title>
    5151  <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
    5252  <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
     
    6464      <ul class="breadcrumbs">
    6565        <?php if (get_option('wpmp_theme_home_link_in_menu')=='true') {?>
    66           <li class="<?php if (is_home()) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php bloginfo('url'); ?>/" title="<?php __('Home'); ?>"><?php __('Home'); ?></a></li>
     66          <li class="<?php if (is_home()) { ?>current_page_item<?php } else { ?>page_item<?php } ?>"><a href="<?php bloginfo('url'); ?>/" title="<?php __('Home', 'wpmp'); ?>"><?php __('Home', 'wpmp'); ?></a></li>
    6767        <?php } ?>
    6868        <?php wp_list_pages('title_li=&depth=1'); ?>
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/index.php

    r187519 r188277  
    3232$wpmp_not_found = false;
    3333if (isset($_GET['archives']) && ($archives = $_GET['archives'])!='') {
    34   $wpmp_title = __("Blog archives");
     34  $wpmp_title = __("Blog archives", 'wpmp');
    3535  $wpmp_archives = true;
    3636} elseif (have_posts()) {
    3737  $post = $posts[0];
    3838  if (is_search()) {
    39     $wpmp_title = __("Search results");
     39    $wpmp_title = __("Search results", 'wpmp');
    4040  } elseif (is_tag()) {
    41     $wpmp_title = sprintf(__("Archive for the '%s' tag"), single_tag_title('', false));
     41    $wpmp_title = sprintf(__("Archive for the '%s' tag", 'wpmp'), single_tag_title('', false));
    4242  } elseif (is_category()) {
    43     $wpmp_title = sprintf(__("Archive for the '%s'"), single_cat_title('', false));
     43    $wpmp_title = sprintf(__("Archive for the '%s'", 'wpmp'), single_cat_title('', false));
    4444  } elseif (is_day()) {
    45     $wpmp_title = sprintf(__("Archive for %s"), get_the_time('F jS, Y'));
     45    $wpmp_title = sprintf(__("Archive for %s", 'wpmp'), get_the_time('F jS, Y'));
    4646  } elseif (is_month()) {
    47     $wpmp_title = sprintf(__("Archive for %s"), get_the_time('F, Y'));
     47    $wpmp_title = sprintf(__("Archive for %s", 'wpmp'), get_the_time('F, Y'));
    4848  } elseif (is_year()) {
    49     $wpmp_title = sprintf(__("Archive for %s"), get_the_time('Y'));
     49    $wpmp_title = sprintf(__("Archive for %s", 'wpmp'), get_the_time('Y'));
    5050  } elseif (is_author()) {
    51     $wpmp_title = __("Author archive");
     51    $wpmp_title = __("Author archive", 'wpmp');
    5252  } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) {
    53     $wpmp_title = __("Blog archives");
     53    $wpmp_title = __("Blog archives", 'wpmp');
    5454  } elseif (!is_single() && !is_page()) {
    55     $wpmp_title = __("Recent posts");
     55    $wpmp_title = __("Recent posts", 'wpmp');
    5656  }
    5757} else {
    58   $wpmp_title = __("Page not found");
     58  $wpmp_title = __("Page not found", 'wpmp');
    5959  $wpmp_not_found = true;
    6060}
     
    6868
    6969if ($wpmp_not_found) {
    70   print "<p>" . __("Use the menu to navigate the site, or search for a keyword:") . "</p>";
     70  print "<p>" . __("Use the menu to navigate the site, or search for a keyword:", 'wpmp') . "</p>";
    7171  include (TEMPLATEPATH . "/searchform.php");
    7272
    7373} elseif ($wpmp_archives) {
    7474  if ($archives=='category') {
    75     print "<h2>" . __("Archives by category") . "</h2>";
     75    print "<h2>" . __("Archives by category", 'wpmp') . "</h2>";
    7676    $links = array();
    7777    foreach(get_categories() as $category) {
     
    8080    $links = implode(', ', $links);
    8181  } elseif ($archives=='tag') {
    82     print "<h2>" . __("Archives by tag") . "</h2>";
     82    print "<h2>" . __("Archives by tag", 'wpmp') . "</h2>";
    8383    $links = array();
    8484    foreach(get_tags() as $tag) {
     
    8787    $links = implode(', ', $links);
    8888  } elseif ($archives=='week' || $archives=='month' || $archives=='year') {
    89     print "<h2>" . sprintf(__("Archives by %s"), $archives) . "</h2>";
     89    print "<h2>" . sprintf(__("Archives by %s", 'wpmp'), $archives) . "</h2>";
    9090    $links = " ";
    9191    wp_get_archives(array('type'=>$archives.'ly', 'show_post_count'=>true));
     
    9494    print "<p>$links</p>";
    9595  } else {
    96     print "<p>" . __("No archives found. Use the menu to navigate the site, or search for a keyword:") . "</p>";
     96    print "<p>" . __("No archives found. Use the menu to navigate the site, or search for a keyword:", 'wpmp') . "</p>";
    9797    include (TEMPLATEPATH . "/searchform.php");
    9898  }
     
    120120    if(!is_single() && !is_page()) {
    121121      print '<p class="navigation">';
    122       next_posts_link(__('Older'));
     122      next_posts_link(__('Older', 'wpmp'));
    123123      print ' ';
    124       previous_posts_link(__('Newer'));
     124      previous_posts_link(__('Newer', 'wpmp'));
    125125      print '</p>';
    126126    }
     
    131131function wpmp_theme_post_single() {
    132132  wpmp_theme_post(true);
    133   print '<p class="metadata">'; previous_post_link(__('Previous post:') . ' %link'); print '<br />'; next_post_link(__('Next post:') . ' %link'); print '</p>';
     133  print '<p class="metadata">'; previous_post_link(__('Previous post:', 'wpmp') . ' %link'); print '<br />'; next_post_link(__('Next post:', 'wpmp') . ' %link'); print '</p>';
    134134  if(!function_exists('wpmp_transcoder_is_last_page') || wpmp_transcoder_is_last_page()) {
    135135    global $post;
    136136    if (!$post->comment_status=='open') {
    137       print '<p class="metadata">' . __('Comments are closed for this post.') . '</p>';
     137      print '<p class="metadata">' . __('Comments are closed for this post.', 'wpmp') . '</p>';
    138138      print '</div>';
    139139    } else {
     
    161161  if ($single || ($summary!='none' && ($summary!='firstteaser' || $wpmp_summary_first))) {
    162162    print '<p class="entry">';
    163     the_content(__('Read more'));
     163    the_content(__('Read more', 'wpmp'));
    164164    print '</p>';
    165165    $wpmp_summary_first = false;
    166166  }
    167167  if ($single || $metadata) {
    168     print '<p class="metadata">' . __('Posted in ');
     168    print '<p class="metadata">' . __('Posted in ', 'wpmp');
    169169    the_category(', ');
    170170    print ' | ';
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/searchform.php

    r187519 r188277  
    3131  <div>
    3232    <input type="search" value="<?php echo wp_specialchars($s, 1); ?>" name="s" id="s" placeholder="Search" results="0" />
    33     <input type="submit" id="searchsubmit" value="<?php _e('Search'); ?>" />
     33    <input type="submit" id="searchsubmit" value="<?php _e('Search', 'wpmp'); ?>" />
    3434  </div>
    3535</form>
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/wpmp_theme_theme_admin.php

    r187519 r188277  
    2828?><div class="wrap">
    2929  <h2>
    30     <?php _e('Mobile Theme') ?>
     30    <?php _e('Mobile Theme', 'wpmp') ?>
    3131    <p style='font-size:small;font-style:italic;margin:0'>
    32       <?php _e('Part of the WordPress Mobile Pack'); ?>
     32      <?php _e('Part of the WordPress Mobile Pack', 'wpmp'); ?>
    3333    </p>
    3434  </h2>
    3535  <p>
    36     <?php printf(__('<strong>Select the mobile theme itself on the <a%s>switcher settings</a> page.</strong> The page below allows you to further configure its behaviour.'), ' href="themes.php?page=wpmp_switcher_admin"'); ?>
     36    <?php printf(__('<strong>Select the mobile theme itself on the <a%s>switcher settings</a> page.</strong> The page below allows you to further configure its behaviour.', 'wpmp'), ' href="themes.php?page=wpmp_switcher_admin"'); ?>
    3737  </p>
    3838  <form method="post" action="">
    3939    <table class="form-table">
    4040      <tr>
    41         <th><?php _e('Enable Nokia templates'); ?></th>
     41        <th><?php _e('Enable Nokia templates', 'wpmp'); ?></th>
    4242        <td>
    4343          <?php print wpmp_theme_option('wpmp_theme_nokia_templates'); ?>
    4444          <br />
    45           <?php _e('Check this to provide additional optimisations for users of Nokia handsets. It also enables a rich theme for WebKit-based mobile browsers, such as the Apple iPhone and Palm Pre.'); ?>
     45          <?php _e('Check this to provide additional optimisations for users of Nokia handsets. It also enables a rich theme for WebKit-based mobile browsers, such as the Apple iPhone and Palm Pre.', 'wpmp'); ?>
    4646        </td>
    4747      </tr>
    4848      <tr>
    49         <th><?php _e('Check mobile status'); ?></th>
     49        <th><?php _e('Check mobile status', 'wpmp'); ?></th>
    5050        <td>
    5151          <a style='font-weight:bold;font-size:13px' target='_blank' href='http://ready.mobi/results.jsp?uri=<?php print urlencode(get_option('home')); ?>'>Launch ready.mobi</a>
    5252          <br />
    53           <?php _e('Click this link to check that the front page of your site is ready for mobile users. NB: this will only work for externally-visible sites.'); ?>
     53          <?php _e('Click this link to check that the front page of your site is ready for mobile users. NB: this will only work for externally-visible sites.', 'wpmp'); ?>
    5454        </td>
    5555      </tr>
    5656      <tr>
    57         <th><?php _e('Show home link in menu'); ?></th>
     57        <th><?php _e('Show home link in menu', 'wpmp'); ?></th>
    5858        <td>
    5959          <?php print wpmp_theme_option('wpmp_theme_home_link_in_menu'); ?>
    6060          <br />
    61           <?php _e("Unselect this if you are using a dedicated page for the blog home. It prevents 'Home' appearing twice in the menu."); ?>
     61          <?php _e("Unselect this if you are using a dedicated page for the blog home. It prevents 'Home' appearing twice in the menu.", 'wpmp'); ?>
    6262        </td>
    6363      </tr>
    6464      <tr>
    65         <th><?php _e('Number of posts'); ?></th>
     65        <th><?php _e('Number of posts', 'wpmp'); ?></th>
    6666        <td>
    6767          <?php print wpmp_theme_option('wpmp_theme_post_count'); ?>
    6868          <br />
    69           <?php _e('This constrains the length of a list of posts (such as on the home page or in an archive). Consider the consequences these settings may have on page size for limited mobile devices.'); ?>
     69          <?php _e('This constrains the length of a list of posts (such as on the home page or in an archive). Consider the consequences these settings may have on page size for limited mobile devices.', 'wpmp'); ?>
    7070        </td>
    7171      </tr>
    7272      <tr>
    73         <th><?php _e('Lists of posts show'); ?></th>
     73        <th><?php _e('Lists of posts show', 'wpmp'); ?></th>
    7474        <td>
    7575          <?php print wpmp_theme_option('wpmp_theme_post_summary', 'wpmpThemeSummary()'); ?>
    7676          <br />
    77             <?php print wpmp_theme_option('wpmp_theme_post_summary_metadata'); ?> <strong><?php _e("Display metadata for posts (author, tags, etc)"); ?></strong>
     77            <?php print wpmp_theme_option('wpmp_theme_post_summary_metadata'); ?> <strong><?php _e("Display metadata for posts (author, tags, etc)", 'wpmp'); ?></strong>
    7878          <br />
    79           <?php _e('These settings apply when your site is displaying a list of posts.'); ?>
     79          <?php _e('These settings apply when your site is displaying a list of posts.', 'wpmp'); ?>
    8080        </td>
    8181      </tr>
    8282      <tr class='wpmp_teaser'>
    83         <th><?php _e('Teaser length'); ?></th>
     83        <th><?php _e('Teaser length', 'wpmp'); ?></th>
    8484        <td>
    8585          <?php print wpmp_theme_option('wpmp_theme_teaser_length'); ?>
    8686          <br />
    87           <?php _e("The mobile theme will display teasers of this length (or use each post's 'more' break, if present - whichever is shorter)."); ?>
     87          <?php _e("The mobile theme will display teasers of this length (or use each post's 'more' break, if present - whichever is shorter).", 'wpmp'); ?>
    8888        </td>
    8989      </tr>
    9090      <tr>
    91         <th><?php _e('Number of widget items'); ?></th>
     91        <th><?php _e('Number of widget items', 'wpmp'); ?></th>
    9292        <td>
    9393          <?php print wpmp_theme_option('wpmp_theme_widget_list_count'); ?>
    9494          <br />
    95           <?php _e("For 3 standard widgets 'Archives', 'Categories', and 'Tag cloud' (which are often lengthy), this will shorten their number of items to the given length. Where necessary, a link will be provided to the full list."); ?>
     95          <?php _e("For 3 standard widgets 'Archives', 'Categories', and 'Tag cloud' (which are often lengthy), this will shorten their number of items to the given length. Where necessary, a link will be provided to the full list.", 'wpmp'); ?>
    9696        </td>
    9797      </tr>
    9898      <?php if(function_exists('wpmp_transcoder_purge_cache')) { ?>
    9999        <tr>
    100           <th><?php _e('Remove media'); ?></th>
     100          <th><?php _e('Remove media', 'wpmp'); ?></th>
    101101          <td>
    102102            <?php print wpmp_theme_option('wpmp_theme_transcoder_remove_media'); ?>
    103103            <br />
    104             <?php _e('This will remove interactivity and media elements (such as script, Flash, movies, and embedded frames) from your posts and pages.'); ?>
     104            <?php _e('This will remove interactivity and media elements (such as script, Flash, movies, and embedded frames) from your posts and pages.', 'wpmp'); ?>
    105105          </td>
    106106        </tr>
    107107        <tr>
    108           <th><?php _e('Partition large pages'); ?></th>
     108          <th><?php _e('Partition large pages', 'wpmp'); ?></th>
    109109          <td>
    110110            <?php print wpmp_theme_option('wpmp_theme_transcoder_partition_pages'); ?>
    111111            <br />
    112             <?php _e('This will break large blog posts or pages into smaller pieces more suitable for mobile devices.'); ?>
     112            <?php _e('This will break large blog posts or pages into smaller pieces more suitable for mobile devices.', 'wpmp'); ?>
    113113          </td>
    114114        </tr>
    115115        <tr>
    116           <th><?php _e('Shrink images'); ?></th>
     116          <th><?php _e('Shrink images', 'wpmp'); ?></th>
    117117          <td>
    118118            <?php print wpmp_theme_option('wpmp_theme_transcoder_shrink_images'); ?>
    119119            <br />
    120             <?php _e('This will shrink large images within posts or pages to fit on smaller screens.'); ?>
     120            <?php _e('This will shrink large images within posts or pages to fit on smaller screens.', 'wpmp'); ?>
    121121            <br /><br />
    122             <?php print wpmp_theme_option('wpmp_theme_transcoder_clear_cache_now'); ?> <strong><?php _e("Clear cache now"); ?></strong>
     122            <?php print wpmp_theme_option('wpmp_theme_transcoder_clear_cache_now'); ?> <strong><?php _e("Clear cache now", 'wpmp'); ?></strong>
    123123            <br />
    124             <?php _e('Size-adjusted images are cached locally for performance. If an existing original image has changed, you may need to clear this cache to have it update for mobile users.'); ?>
     124            <?php _e('Size-adjusted images are cached locally for performance. If an existing original image has changed, you may need to clear this cache to have it update for mobile users.', 'wpmp'); ?>
    125125          </td>
    126126        </tr>
    127127        <tr>
    128           <th><?php _e('Simplify styling'); ?></th>
     128          <th><?php _e('Simplify styling', 'wpmp'); ?></th>
    129129          <td>
    130130            <?php print wpmp_theme_option('wpmp_theme_transcoder_simplify_styling'); ?>
    131131            <br />
    132             <?php _e('This will remove styling elements from your posts and pages to ensure mobile compatibility.'); ?>
     132            <?php _e('This will remove styling elements from your posts and pages to ensure mobile compatibility.', 'wpmp'); ?>
    133133          </td>
    134134        </tr>
     
    137137
    138138    <p class="submit">
    139       <input type="submit" name="Submit" value="<?php _e('Save Changes'); ?>" />
     139      <input type="submit" name="Submit" value="<?php _e('Save Changes', 'wpmp'); ?>" />
    140140    </p>
    141141  </form>
  • wordpress-mobile-pack/trunk/themes/mobile_pack_base/wpmp_theme_widget_admin.php

    r187519 r188277  
    2828?><div class="wrap">
    2929  <h2>
    30     <?php _e('Mobile Widgets') ?>
     30    <?php _e('Mobile Widgets', 'wpmp') ?>
    3131    <p style='font-size:small;font-style:italic;margin:0'>
    32       <?php _e('Part of the WordPress Mobile Pack'); ?>
     32      <?php _e('Part of the WordPress Mobile Pack', 'wpmp'); ?>
    3333    </p>
    3434  </h2>
     
    3838    <?php $enabled = get_option('wpmp_theme_widget'); ?>
    3939    <?php $sidebar_widgets = wp_get_sidebars_widgets(); ?>
    40     <p><?php printf(__("Use this page to select which of your <a%s>currently visible widgets</a> will appear for your mobile users."), " href='/wp-admin/widgets.php'"); ?></p>
     40    <p><?php printf(__("Use this page to select which of your <a%s>currently visible widgets</a> will appear for your mobile users.", 'wpmp'), " href='/wp-admin/widgets.php'"); ?></p>
    4141    <?php foreach($sidebar_widgets as $sidebar=>$widgets) { ?>
    4242      <?php if ($sidebar!='wp_inactive_widgets') { ?>
     
    4545        </h3>
    4646        <p>
    47           <?php printf(__('Select which of the <a%s>widgets enabled for this sidebar</a> will show on the mobile theme:'), " target='_blank' href='/wp-admin/widgets.php?sidebar=" . urlencode($sidebar) . "'"); ?>
     47          <?php printf(__('Select which of the <a%s>widgets enabled for this sidebar</a> will show on the mobile theme:', 'wpmp'), " target='_blank' href='/wp-admin/widgets.php?sidebar=" . urlencode($sidebar) . "'"); ?>
    4848        </p>
    4949        <table class="form-table">
     
    8181    <?php } ?>
    8282    <p class="submit">
    83       <input type="submit" name="Submit" value="<?php _e('Save Changes'); ?>" />
     83      <input type="submit" name="Submit" value="<?php _e('Save Changes', 'wpmp'); ?>" />
    8484    </p>
    8585  </form>
  • wordpress-mobile-pack/trunk/wordpress-mobile-pack.php

    r187052 r188277  
    2929Plugin Name: WordPress Mobile Pack
    3030Plugin URI: http://wordpress.org/extend/plugins/wordpress-mobile-pack/
    31 Description: The WordPress Mobile Pack is a complete toolkit to help mobilize your WordPress site and blog. It includes a <a href='themes.php?page=wpmp_switcher_admin'>mobile switcher</a>, <a href='themes.php?page=wpmp_theme_widget_admin'>filtered widgets</a>, and content adaptation for mobile device characteristics. Activating this plugin will also install a selection of mobile <a href='themes.php'>themes</a> by <a href='http://ribot.co.uk'>ribot</a>, a top UK mobile design team, and Forum Nokia. These adapt to different families of devices, such as Nokia and WebKit browsers (including Android, iPhone and Palm). If <a href='options-general.php?page=wpmp_mpexo_admin'>enabled</a>, your site will be listed on <a href='http://www.mpexo.com'>mpexo</a>, a directory of mobile-friendly blogs. Also check out <a href='http://mobiforge.com/wordpress-mobile-pack' target='_blank'>the documentation</a> and <a href='http://mobiforge.com/forum/dotmobi/wordpress' target='_blank'>the forums</a>. If you like the plugin, please rate us on the <a href='http://wordpress.org/extend/plugins/wordpress-mobile-pack/'>WordPress directory</a>.
     31Description: <strong>The WordPress Mobile Pack is a complete toolkit to help mobilize your WordPress site and blog.</strong> It includes a <a href='themes.php?page=wpmp_switcher_admin'>mobile switcher</a>, <a href='themes.php?page=wpmp_theme_widget_admin'>filtered widgets</a>, and content adaptation for mobile device characteristics. Activating this plugin will also install a selection of mobile <a href='themes.php?page=wpmp_theme_theme_admin'>themes</a> by <a href='http://ribot.co.uk'>ribot</a>, a top UK mobile design team, and Forum Nokia. These adapt to different families of devices, such as Nokia and WebKit browsers (including Android, iPhone and Palm). If <a href='options-general.php?page=wpmp_mpexo_admin'>enabled</a>, your site will be listed on <a href='http://www.mpexo.com'>mpexo</a>, a directory of mobile-friendly blogs. Also check out <a href='http://mobiforge.com/wordpress-mobile-pack' target='_blank'>the documentation</a> and <a href='http://mobiforge.com/forum/dotmobi/wordpress' target='_blank'>the forums</a>. If you like the plugin, please rate us on the <a href='http://wordpress.org/extend/plugins/wordpress-mobile-pack/'>WordPress directory</a>. <strong>And please let us know how we can improve this plugin for you!</strong></a>
    3232Version: 1.2.0
    3333Author: James Pearce & friends
     
    5858register_activation_hook('wordpress-mobile-pack/wordpress-mobile-pack.php', 'wordpress_mobile_pack_activate');
    5959register_deactivation_hook('wordpress-mobile-pack/wordpress-mobile-pack.php', 'wordpress_mobile_pack_deactivate');
     60
     61add_action('init', 'wordpress_mobile_pack_init');
    6062add_action('admin_notices', 'wordpress_mobile_pack_admin_notices');
    6163add_action('admin_menu', 'wordpress_mobile_pack_admin_menu');
    62 
    6364add_action('send_headers', 'wordpress_mobile_pack_send_headers');
    6465add_filter('get_the_generator_xhtml', 'wordpress_mobile_pack_generator');
    6566add_filter('get_the_generator_html', 'wordpress_mobile_pack_generator');
    6667
     68add_filter('plugin_action_links', 'wordpress_mobile_pack_plugin_action_links', 10, 3);
     69
     70
     71function wordpress_mobile_pack_init() {
     72  $plugin_dir = basename(dirname(__FILE__));
     73  load_plugin_textdomain('wpmp', 'wp-content/plugins/wordpress-mobile-pack', 'wordpress-mobile-pack');
     74}
     75
     76
    6777function wordpress_mobile_pack_send_headers($wp) {
    6878  @header("X-Mobilized-By: WordPress Mobile Pack " . WPMP_VERSION);
     
    7080function wordpress_mobile_pack_generator($generator) {
    7181  return '<meta name="generator" content="WordPress ' . get_bloginfo( 'version' ) . ', fitted with the WordPress Mobile Pack ' . WPMP_VERSION . '" />';
     82}
     83
     84
     85function wordpress_mobile_pack_plugin_action_links($action_links, $plugin_file, $plugin_info) {
     86  $this_file = basename(__FILE__);
     87  if(substr($plugin_file, -strlen($this_file))==$this_file) {
     88    $new_action_links = array(
     89      "<a href='themes.php?page=wpmp_switcher_admin'>Switcher</a>",
     90      "<a href='themes.php?page=wpmp_theme_theme_admin'>Themes</a> ",
     91      "<br /><a href='themes.php?page=wpmp_theme_widget_admin'>Widgets</a>",
     92      "<a href='options-general.php?page=wpmp_mpexo_admin'>mpexo</a>",
     93    );
     94    foreach($action_links as $action_link) {
     95      if (stripos($action_link, '>Edit<')===false) {
     96        if (stripos($action_link, '>Deactivate<')!==false) {
     97          $new_action_links[] = '<br />' . $action_link;
     98        } else {
     99          $new_action_links[] = $action_link;
     100        }
     101      }
     102    }
     103    return $new_action_links;
     104  }
     105  return $action_links;
    72106}
    73107
     
    75109  if($warning=get_option('wpmp_warning')) {
    76110    print "<div class='error'><p><strong style='color:#770000'>";
    77     print __("Critical WordPress Mobile Pack Issue");
     111    print __("Critical WordPress Mobile Pack Issue", 'wpmp');
    78112    print "</strong></p><p>$warning</p><p><small>(";
    79     print __('Deactivate and re-activate the WordPress Mobile Pack once resolved.');
     113    print __('Deactivate and re-activate the WordPress Mobile Pack once resolved.', 'wpmp');
    80114    print ")</small></p></div>";
    81115  }
    82116  if($flash=get_option('wpmp_flash')) {
    83117    print "<div class='error'><p><strong style='color:#770000'>";
    84     print __('Important WordPress Mobile Pack Notice');
     118    print __('Important WordPress Mobile Pack Notice', 'wpmp');
    85119    print "</strong></p><p>$flash</p></div>";
    86120    update_option('wpmp_flash', '');
     
    114148  if (version_compare(PHP_VERSION, '6.0.0', '>=')) {
    115149    $ready = false;
    116     $why_not[] = '<strong>' . __('PHP version not supported.') . '</strong> ' . sprintf(__('PHP versions 6 and greater are not yet supported by this plugin, and you have version %s'), PHP_VERSION);
     150    $why_not[] = '<strong>' . __('PHP version not supported.', 'wpmp') . '</strong> ' . sprintf(__('PHP versions 6 and greater are not yet supported by this plugin, and you have version %s', 'wpmp'), PHP_VERSION);
    117151  }
    118152
     
    120154  $cache_does = '';
    121155  if (!file_exists($cache_dir)) {
    122     $cache_does = __("That directory does not exist.");
     156    $cache_does = __("That directory does not exist.", 'wpmp');
    123157  } elseif (!is_writable($cache_dir)) {
    124     $cache_does = __("That directory is not writable.");
     158    $cache_does = __("That directory is not writable.", 'wpmp');
    125159  } elseif (!is_executable($cache_dir) && DIRECTORY_SEPARATOR=='/') {
    126     $cache_does = __("That directory is not executable.");
     160    $cache_does = __("That directory is not executable.", 'wpmp');
    127161  }
    128162  if($cache_does!='') {
    129163    $ready = false;
    130     $why_not[] = sprintf(__('<strong>Not able to cache images</strong> to %s.'), $cache_dir) . ' ' . $cache_does . ' ' . __('Please ensure that the web server has write- and execute-access to it.');
     164    $why_not[] = sprintf(__('<strong>Not able to cache images</strong> to %s.', 'wpmp'), $cache_dir) . ' ' . $cache_does . ' ' . __('Please ensure that the web server has write- and execute-access to it.', 'wpmp');
    131165  }
    132166
     
    134168  $theme_does = '';
    135169  if (!file_exists($theme_dir)) {
    136     $theme_does = __("That directory does not exist.");
     170    $theme_does = __("That directory does not exist.", 'wpmp');
    137171  } elseif (!is_writable($theme_dir)) {
    138     $theme_does = __("That directory is not writable.");
     172    $theme_does = __("That directory is not writable.", 'wpmp');
    139173  } elseif (!is_executable($theme_dir) && DIRECTORY_SEPARATOR=='/') {
    140     $theme_does = __("That directory is not executable.");
     174    $theme_does = __("That directory is not executable.", 'wpmp');
    141175  }
    142176  if($theme_does!='') {
    143177    $ready = false;
    144     $why_not[] = sprintf(__('<strong>Not able to install theme files</strong> to %s.'), $theme_dir) . ' ' . $theme_does . ' ' . __('Please ensure that the web server has write- and execute-access to it.');
     178    $why_not[] = sprintf(__('<strong>Not able to install theme files</strong> to %s.', 'wpmp'), $theme_dir) . ' ' . $theme_does . ' ' . __('Please ensure that the web server has write- and execute-access to it.', 'wpmp');
    145179  }
    146180
     
    161195      }
    162196      if($dir_does!='') {
    163       update_option('wpmp_warning', sprintf(__('<strong>Could not install theme files</strong> to '), $destination_dir) . ' ' . $dir_does . ' ' . __('Please ensure that the web server has write- and execute-access to it.'));
     197      update_option('wpmp_warning', sprintf(__('<strong>Could not install theme files</strong> to ', 'wpmp'), $destination_dir) . ' ' . $dir_does . ' ' . __('Please ensure that the web server has write- and execute-access to it.', 'wpmp'));
    164198      return;
    165199    }
     
    177211    if (file_exists($destination_child = "$destination_dir/$source_file") && $benign) {
    178212      update_option('wpmp_flash',
    179                     __("<strong>Existing Mobile Pack theme files were found</strong>, but they were not overwritten by the plugin activation.") .
     213                    __("<strong>Existing Mobile Pack theme files were found</strong>, but they were not overwritten by the plugin activation.", 'wpmp') .
    180214                    "</p><p>" .
    181                     sprintf(__("You are advised to upgrade your Mobile Pack theme files to version %s"), WPMP_VERSION) .
     215                    sprintf(__("You are advised to upgrade your Mobile Pack theme files to version %s", 'wpmp'), WPMP_VERSION) .
    182216                    "</p><p>" .
    183                     __("(<strong>NB</strong>: take precautions if you have manually edited any existing Mobile Pack theme files - your changes will now need to be re-applied.)") .
     217                    __("(<strong>NB</strong>: take precautions if you have manually edited any existing Mobile Pack theme files - your changes will now need to be re-applied.)", 'wpmp') .
    184218                    "</p><br /><form method='post' action='" . $_SERVER['REQUEST_URI'] . "'>".
    185219                    "<input type='submit' name='wordpress_mobile_pack_force_copy_theme' value='" .
    186                     __('Yes please - I&apos;ll upgrade all my themes') .
     220                    __('Yes please - I&apos;ll upgrade all my themes', 'wpmp') .
    187221                    "' />&nbsp;&nbsp;".
    188222                    "<input type='submit' value='" .
    189                     __('No thanks - I&apos;ll leave my themes as they are') .
     223                    __('No thanks - I&apos;ll leave my themes as they are', 'wpmp') .
    190224                    "' />".
    191225                    "</form><p>");
     
    198232
    199233    if (file_exists($destination_child) && !is_writable($destination_child)) {
    200       update_option('wpmp_warning', sprintf(__('<strong>Could not install file</strong> to %s.'), $destination_child) . ' ' . __('Please ensure that the web server has write- access to that file.'));
     234      update_option('wpmp_warning', sprintf(__('<strong>Could not install file</strong> to %s.', 'wpmp'), $destination_child) . ' ' . __('Please ensure that the web server has write- access to that file.', 'wpmp'));
    201235      continue;
    202236    }
Note: See TracChangeset for help on using the changeset viewer.