Changeset 188277
- Timestamp:
- 12/30/2009 09:30:27 PM (16 years ago)
- Location:
- wordpress-mobile-pack/trunk
- Files:
-
- 31 edited
-
plugins/wpmp_ads/wpmp_ads.php (modified) (4 diffs)
-
plugins/wpmp_ads/wpmp_ads_widget_admin.php (modified) (1 diff)
-
plugins/wpmp_barcode/wpmp_barcode.php (modified) (3 diffs)
-
plugins/wpmp_barcode/wpmp_barcode_widget_admin.php (modified) (2 diffs)
-
plugins/wpmp_mpexo/wpmp_mpexo.php (modified) (8 diffs)
-
plugins/wpmp_mpexo/wpmp_mpexo_admin.php (modified) (2 diffs)
-
plugins/wpmp_mpexo/wpmp_mpexo_widget_admin.php (modified) (1 diff)
-
plugins/wpmp_switcher/pages/desktop_interstitial.php (modified) (1 diff)
-
plugins/wpmp_switcher/pages/mobile.php (modified) (2 diffs)
-
plugins/wpmp_switcher/pages/mobile_admin.php (modified) (21 diffs)
-
plugins/wpmp_switcher/pages/mobile_interstitial.php (modified) (1 diff)
-
plugins/wpmp_switcher/pages/mobile_login.php (modified) (5 diffs)
-
plugins/wpmp_switcher/wpmp_switcher.php (modified) (14 diffs)
-
plugins/wpmp_switcher/wpmp_switcher_admin.php (modified) (2 diffs)
-
plugins/wpmp_transcoder/wpmp_transcoder.php (modified) (2 diffs)
-
themes/mobile_pack_base/archives.php (modified) (2 diffs)
-
themes/mobile_pack_base/comments.php (modified) (6 diffs)
-
themes/mobile_pack_base/footer.php (modified) (1 diff)
-
themes/mobile_pack_base/functions.php (modified) (10 diffs)
-
themes/mobile_pack_base/functions_persist.php (modified) (6 diffs)
-
themes/mobile_pack_base/groups/nokia_high/comments.php (modified) (1 diff)
-
themes/mobile_pack_base/groups/nokia_high/footer.php (modified) (1 diff)
-
themes/mobile_pack_base/groups/nokia_high/index.php (modified) (2 diffs)
-
themes/mobile_pack_base/groups/nokia_low/footer.php (modified) (1 diff)
-
themes/mobile_pack_base/groups/nokia_mid/footer.php (modified) (1 diff)
-
themes/mobile_pack_base/header.php (modified) (2 diffs)
-
themes/mobile_pack_base/index.php (modified) (8 diffs)
-
themes/mobile_pack_base/searchform.php (modified) (1 diff)
-
themes/mobile_pack_base/wpmp_theme_theme_admin.php (modified) (2 diffs)
-
themes/mobile_pack_base/wpmp_theme_widget_admin.php (modified) (4 diffs)
-
wordpress-mobile-pack.php (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wordpress-mobile-pack/trunk/plugins/wpmp_ads/wpmp_ads.php
r187052 r188277 39 39 40 40 function 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')) 43 43 ); 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'); 45 45 } 46 46 47 47 function wpmp_ads_activate() { 48 48 foreach(array( 49 'wpmp_ads_title'=>__('Mobile ads' ),49 'wpmp_ads_title'=>__('Mobile ads', 'wpmp'), 50 50 'wpmp_ads_provider'=>'none', 51 51 'wpmp_ads_publisher_id'=>'', … … 71 71 $buffer = $before_widget; 72 72 if (($title = get_option('wpmp_ads_title'))=='') { 73 $title = __("Mobile ads" );73 $title = __("Mobile ads", 'wpmp'); 74 74 } 75 75 $buffer .= $before_title . $title . $after_title; … … 126 126 $option, 127 127 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'), 132 132 ), 133 133 $onchange … … 166 166 $selected = ''; 167 167 } 168 $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description ) . '</option>';168 $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description, 'wpmp') . '</option>'; 169 169 } 170 170 $dropdown .= "</select>"; -
wordpress-mobile-pack/trunk/plugins/wpmp_ads/wpmp_ads_widget_admin.php
r187519 r188277 29 29 30 30 <p> 31 <label for="wpmp_ads_title"><?php _e('Title:' ); ?></label>31 <label for="wpmp_ads_title"><?php _e('Title:', 'wpmp'); ?></label> 32 32 <?php print wpmp_ads_option('wpmp_ads_title', '', 'widefat'); ?> 33 33 </p> 34 34 <p> 35 <label for="wpmp_ads_provider"><?php _e('Provider:' ); ?></label>35 <label for="wpmp_ads_provider"><?php _e('Provider:', 'wpmp'); ?></label> 36 36 <?php print wpmp_ads_option('wpmp_ads_provider'); ?> 37 37 </p> 38 38 <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> 40 40 <br /> 41 41 <?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'); ?> 43 43 </p> 44 44 <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'"); ?> 46 46 </p> 47 47 <p> 48 48 <?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> 50 50 </p> 51 51 <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'); ?> 53 53 </p> 54 54 <input type="hidden" id="wpmp_ads" name="wpmp_ads" value="1" /> -
wordpress-mobile-pack/trunk/plugins/wpmp_barcode/wpmp_barcode.php
r187519 r188277 39 39 40 40 function 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')) 43 43 ); 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'); 45 45 } 46 46 function wpmp_barcode_activate() { 47 47 foreach(array( 48 'wpmp_barcode_title'=>__('Our mobile site' ),48 'wpmp_barcode_title'=>__('Our mobile site', 'wpmp'), 49 49 'wpmp_barcode_link'=> 50 50 function_exists('wpmp_switcher_domains') ? … … 68 68 print $before_widget; 69 69 if (($title = get_option('wpmp_barcode_title'))=='') { 70 $title = __("Our mobile site" );70 $title = __("Our mobile site", 'wpmp'); 71 71 } 72 72 print $before_title . $title . $after_title; … … 87 87 if(get_option('wpmp_barcode_help')=='true') { 88 88 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'); 91 91 print "</p>"; 92 92 } 93 93 if(get_option('wpmp_barcode_reader_list')=='true') { 94 94 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'); 96 96 print "</p>"; 97 97 include_once('barcode_reader_list.php'); -
wordpress-mobile-pack/trunk/plugins/wpmp_barcode/wpmp_barcode_widget_admin.php
r187519 r188277 29 29 30 30 <p> 31 <label for="wpmp_barcode_title"><?php _e('Title:' ); ?></label>31 <label for="wpmp_barcode_title"><?php _e('Title:', 'wpmp'); ?></label> 32 32 <?php print wpmp_barcode_option('wpmp_barcode_title', '', 'widefat'); ?> 33 33 </p> 34 34 <p> 35 <label for="wpmp_barcode_link"><?php _e('Link:' ); ?></label>35 <label for="wpmp_barcode_link"><?php _e('Link:', 'wpmp'); ?></label> 36 36 <?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'); ?> 38 38 </p> 39 39 <p> 40 <label for="wpmp_barcode_size"><?php _e('Size:' ); ?></label>40 <label for="wpmp_barcode_size"><?php _e('Size:', 'wpmp'); ?></label> 41 41 <br /> 42 42 <?php print wpmp_barcode_option('wpmp_barcode_size', '', 'widefat', 'width:23%'); ?>px … … 44 44 <p> 45 45 <?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> 47 47 </p> 48 48 <p> 49 49 <?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> 51 51 </p> 52 52 <input type="hidden" id="wpmp_barcode" name="wpmp_barcode" value="1" /> -
wordpress-mobile-pack/trunk/plugins/wpmp_mpexo/wpmp_mpexo.php
r187519 r188277 150 150 $wpmp_mpexo_payload_forced = array(); 151 151 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')) 153 153 ); 154 154 wp_register_widget_control('wpmp_mpexo_widget', 'mpexo', 'wpmp_mpexo_widget_control'); … … 521 521 $state = ''; 522 522 } 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'); 524 524 } 525 525 … … 529 529 print $before_title . 'mpexo' . $after_title; 530 530 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'); 532 532 print "</p>"; 533 533 print $after_widget; … … 569 569 } 570 570 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'); 574 574 } 575 575 … … 581 581 $option, 582 582 array( 583 'none'=>__('None' ),584 'tagline'=>__('Tagline' ),585 'custom'=>__('Custom' ),583 'none'=>__('None', 'wpmp'), 584 'tagline'=>__('Tagline', 'wpmp'), 585 'custom'=>__('Custom', 'wpmp'), 586 586 ), 587 587 $onchange … … 591 591 $option, 592 592 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'), 597 597 ), 598 598 $onchange … … 602 602 $option, 603 603 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'), 608 608 ), 609 609 $onchange … … 636 636 $selected = ''; 637 637 } 638 $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description ) . '</option>';638 $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description, 'wpmp') . '</option>'; 639 639 } 640 640 $dropdown .= "</select>"; -
wordpress-mobile-pack/trunk/plugins/wpmp_mpexo/wpmp_mpexo_admin.php
r187521 r188277 31 31 <div class="wrap"> 32 32 <h2> 33 <?php _e('mpexo' ) ?>33 <?php _e('mpexo', 'wpmp') ?> 34 34 <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'); ?> 36 36 </p> 37 37 </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> 41 41 <form method="post" action=""> 42 42 <table class="form-table"> 43 43 <tr> 44 <th><?php _e('List my site on mpexo' ); ?></th>44 <th><?php _e('List my site on mpexo', 'wpmp'); ?></th> 45 45 <td> 46 46 <?php print wpmp_mpexo_option('wpmp_mpexo_enabled_beta', 'wpmpMpexo();'); ?> 47 47 <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'); ?> 49 49 </td> 50 50 </tr> 51 51 52 52 <tr class='wpmp_mpexo'> 53 <th><?php _e('Site description' ); ?></th>53 <th><?php _e('Site description', 'wpmp'); ?></th> 54 54 <td> 55 55 <?php print wpmp_mpexo_option('wpmp_mpexo_description', 'wpmpMpexo();'); ?> 56 56 <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"'); ?> 58 58 <br /> 59 59 <?php print wpmp_mpexo_option('wpmp_mpexo_description_override'); ?> … … 61 61 </tr> 62 62 <tr class='wpmp_mpexo_description_custom'> 63 <th><?php _e('Custom description' ); ?></th>63 <th><?php _e('Custom description', 'wpmp'); ?></th> 64 64 <td> 65 65 <?php print wpmp_mpexo_option('wpmp_mpexo_description_custom', '', 'regular-text'); ?> 66 66 <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'); ?> 68 68 </td> 69 69 </tr> 70 70 <tr class='wpmp_mpexo'> 71 <th><?php _e('Publish classification' ); ?></th>71 <th><?php _e('Publish classification', 'wpmp'); ?></th> 72 72 <td> 73 73 <?php print wpmp_mpexo_option('wpmp_mpexo_classification'); ?> 74 74 <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'); ?> 76 76 </td> 77 77 </tr> 78 78 <tr class='wpmp_mpexo'> 79 <th><?php _e('Publish content titles' ); ?></th>79 <th><?php _e('Publish content titles', 'wpmp'); ?></th> 80 80 <td> 81 81 <?php print wpmp_mpexo_option('wpmp_mpexo_content'); ?> 82 82 <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'); ?> 84 84 </td> 85 85 </tr> 86 86 <tr class='wpmp_mpexo'> 87 <th><?php _e('Gather mobile popularity' ); ?></th>87 <th><?php _e('Gather mobile popularity', 'wpmp'); ?></th> 88 88 <td> 89 89 <?php print wpmp_mpexo_option('wpmp_mpexo_popularity'); ?> 90 90 <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'); ?> 92 92 </td> 93 93 </tr> 94 94 <tr class='wpmp_mpexo'> 95 <th><?php _e('Gather diagnostics' ); ?></th>95 <th><?php _e('Gather diagnostics', 'wpmp'); ?></th> 96 96 <td> 97 97 <?php print wpmp_mpexo_option('wpmp_mpexo_diagnostics'); ?> 98 98 <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'); ?> 100 100 </td> 101 101 </tr> 102 102 <tr class='wpmp_mpexo'> 103 <th><?php _e('Register email address' ); ?></th>103 <th><?php _e('Register email address', 'wpmp'); ?></th> 104 104 <td> 105 105 <?php print wpmp_mpexo_option('wpmp_mpexo_email'); ?> 106 106 <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'); ?> 108 108 </td> 109 109 </tr> 110 110 </table> 111 111 <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'); ?>" /> 113 113 </p> 114 114 </form> -
wordpress-mobile-pack/trunk/plugins/wpmp_mpexo/wpmp_mpexo_widget_admin.php
r187519 r188277 29 29 30 30 <p> 31 <?php _e("There are currently no settings for this widget" ); ?>31 <?php _e("There are currently no settings for this widget", 'wpmp'); ?> 32 32 </p> 33 33 <input type="hidden" id="wpmp_mpexo" name="wpmp_mpexo" value="1" /> -
wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/desktop_interstitial.php
r187519 r188277 28 28 ?><html> 29 29 <head> 30 <title><?php bloginfo('name'); ?> - <?php _e("Select site" ); ?></title>30 <title><?php bloginfo('name'); ?> - <?php _e("Select site", 'wpmp'); ?></title> 31 31 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" /> 32 32 <?php wp_head(); ?> 33 33 </head> 34 34 <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> 39 39 </body> 40 40 </html> -
wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/mobile.php
r187519 r188277 88 88 $link = $base . $link; 89 89 } 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> '; 91 91 if ($name[0]!='_') { 92 92 print $item; … … 114 114 } else { 115 115 ?> 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> 117 117 <?php 118 118 } -
wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/mobile_admin.php
r187519 r188277 37 37 38 38 $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 template39 __("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 ); 47 47 if (function_exists('wp_logout_url')) { 48 $menu[ "Log out"] = wp_logout_url();48 $menu[__("Log out", 'wpmp')] = wp_logout_url(); 49 49 } else { 50 $menu[ "Log out"] = "/wp-login.php?action=logout";50 $menu[__("Log out", 'wpmp')] = "/wp-login.php?action=logout"; 51 51 } 52 52 … … 80 80 $page_count = wp_count_posts('page'); 81 81 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); 83 83 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); 89 89 print ".</p>"; 90 90 global $wpdb; 91 91 $comments = $wpdb->get_results("SELECT count(*) as cnt FROM $wpdb->comments WHERE comment_approved='0'" ); 92 92 $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>"; 95 95 print "<p><ul>"; 96 96 $not_first = false; … … 100 100 $link = $base . $link; 101 101 } 102 print "<li><a href='$link'>" . __("$name" ) . "</a>";102 print "<li><a href='$link'>" . __("$name", 'wpmp') . "</a>"; 103 103 } 104 104 $not_first = true; 105 105 } 106 106 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>"; 109 109 } 110 110 111 111 function wpmp_msma_junior($menu) { 112 112 $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>"; 116 116 } 117 117 … … 123 123 if (!wpmp_msma_check_referer()) { return; } 124 124 @wp_update_post($_POST); 125 print "<p>" . __("Your changes have been applied." ) . "</p>";125 print "<p>" . __("Your changes have been applied.", 'wpmp') . "</p>"; 126 126 wpmp_msma_post_list(); 127 127 } else { … … 129 129 $post = get_post($id, OBJECT, 'edit'); 130 130 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>"; 132 132 } 133 133 } elseif (!$new) { … … 150 150 print '<input type="hidden" name="user_ID" value="' . (int) $user_ID . '" />'; 151 151 152 print '<p><label for="title">' . __('Title' ) . ':</label><br />';152 print '<p><label for="title">' . __('Title', 'wpmp') . ':</label><br />'; 153 153 print '<input type="text" name="post_title" value="' . attribute_escape(@$post->post_title) . '" id="title" /></p>'; 154 154 155 print '<p><label for="post_status">' . __('Status' ) . ':</label><br />';155 print '<p><label for="post_status">' . __('Status', 'wpmp') . ':</label><br />'; 156 156 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>'; 160 160 print '</select></p>'; 161 161 162 print '<p><label for="post_content">' . __('Content' ) . ':</label><br />';162 print '<p><label for="post_content">' . __('Content', 'wpmp') . ':</label><br />'; 163 163 $safe_content = @$post->post_content; 164 164 $safe_content = str_replace("<textarea", "<div", $safe_content); … … 167 167 $safe_content = str_replace("</TEXTAREA", "</div", $safe_content); 168 168 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 <!--more--> 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 <!--more--> to indicate the end of the teaser.', 'wpmp') . '</p>'; 171 171 172 172 print '</form>'; … … 178 178 if(have_posts()) { 179 179 global $post; 180 print "<p>" . __("Select a post to edit:" ) . "</p>";180 print "<p>" . __("Select a post to edit:", 'wpmp') . "</p>"; 181 181 add_filter('get_pagenum_link', 'wpmp_msma_get_pagenum_link'); 182 182 while (have_posts()) { … … 191 191 previous_posts_link('Newer'); 192 192 } else { 193 print "<p>" . __("There are no posts to edit." ) . "</p>";193 print "<p>" . __("There are no posts to edit.", 'wpmp') . "</p>"; 194 194 } 195 195 } … … 198 198 $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" ); 199 199 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>"; 201 201 } else { 202 202 switch($size = sizeof($comments)) { 203 203 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>"; 205 205 break; 206 206 case 1: 207 207 return wpmp_msma_edit_comment($comments[0], true); 208 208 default: 209 print "<p>" . __("There are $size comments awaiting moderation:" ) . "</p>";209 print "<p>" . __("There are $size comments awaiting moderation:", 'wpmp') . "</p>"; 210 210 } 211 211 foreach($comments as $comment) { … … 238 238 if (!wpmp_msma_check_referer()) { return; } 239 239 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>"; 242 242 return; 243 243 } 244 244 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 />'; 246 246 $current = get_option('wpmp_switcher_mode'); 247 247 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'), 252 252 ) as $value=>$title) { 253 253 print "<input style='width:32px;' type='radio' name='wpmp_switcher_mode' value='$value'"; … … 258 258 } 259 259 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') . '" />'; 261 261 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>"; 263 263 } 264 264 … … 274 274 } 275 275 } 276 $approve = "<a href='comment.php?action=approvecomment&c=$id'>" . __('Approve' ) . "</a>";277 $delete = "<a href='comment.php?action=deletecomment&c=$id'>" . __('Delete' ) . "</a>";278 $spam = "<a href='comment.php?action=spamcomment&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&c=$id'>" . __('Approve', 'wpmp') . "</a>"; 277 $delete = "<a href='comment.php?action=deletecomment&c=$id'>" . __('Delete', 'wpmp') . "</a>"; 278 $spam = "<a href='comment.php?action=spamcomment&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) . 280 280 "<br />$content" . 281 281 "<br />$approve | $delete | $spam" . … … 288 288 if (!wpmp_msma_check_referer()) { return; } 289 289 wpmp_msma_option_update($_POST); 290 print "<p>" . __("Your changes have been applied." ) . "</p>";290 print "<p>" . __("Your changes have been applied.", 'wpmp') . "</p>"; 291 291 return wpmp_msma_options_list(); 292 292 } else { … … 330 330 $previous = ""; 331 331 if($page>0) { 332 $previous = "<a href='?page=" . ($page-1) . "'>" . __('Previous page' ) . "</a>";332 $previous = "<a href='?page=" . ($page-1) . "'>" . __('Previous page', 'wpmp') . "</a>"; 333 333 } 334 334 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>"; 336 336 } 337 337 if ($next || $previous) { … … 342 342 print "$next</p>"; 343 343 } 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>"; 345 345 346 346 } … … 349 349 $option = $wpdb->get_results("SELECT * FROM $wpdb->options " . wpmp_msma_options_filter() . " and option_id=$id"); 350 350 if(sizeof($option)==0) { 351 print "<p>" . __("That option is not editable." ) . "</p>";351 print "<p>" . __("That option is not editable.", 'wpmp') . "</p>"; 352 352 return wpmp_msma_options_list(); 353 353 } … … 355 355 $value = wpmp_msma_option_value($option->option_name, $option->option_value, $editable); 356 356 if(!$editable) { 357 print "<p>" . __("That option is not editable." ) . "</p>";357 print "<p>" . __("That option is not editable.", 'wpmp') . "</p>"; 358 358 return wpmp_msma_options_list(); 359 359 } … … 364 364 print '<input type="text" name="option_value" value="' . attribute_escape($value) . '" id="title" /></p>'; 365 365 366 print '<input name="submit" type="submit" id="submit" value="' . __('Apply' ) . '" />';366 print '<input name="submit" type="submit" id="submit" value="' . __('Apply', 'wpmp') . '" />'; 367 367 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>'; 369 369 } 370 370 print '</form>'; } … … 417 417 case 'publish': 418 418 case 'private': 419 return __('Published' );419 return __('Published', 'wpmp'); 420 420 case 'future': 421 return __('Scheduled' );421 return __('Scheduled', 'wpmp'); 422 422 case 'pending': 423 return __('Pending Review' );423 return __('Pending Review', 'wpmp'); 424 424 default: 425 return __('Unpublished' );425 return __('Unpublished', 'wpmp'); 426 426 } 427 427 } … … 433 433 $referer = $_SERVER['HTTP_REFERER']; 434 434 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'); 436 436 return false; 437 437 } -
wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/mobile_interstitial.php
r187519 r188277 27 27 28 28 include_once('mobile.php'); 29 wpmp_ms_mobile_top(__("Select site" ));29 wpmp_ms_mobile_top(__("Select site", 'wpmp')); 30 30 ?> 31 31 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> 35 35 36 36 <?php -
wordpress-mobile-pack/trunk/plugins/wpmp_switcher/pages/mobile_login.php
r187521 r188277 26 26 */ 27 27 28 function wpmp_switcher_login_header($title = __('Login' ), $message = '', $wp_error = '') {28 function wpmp_switcher_login_header($title = __('Login', 'wpmp'), $message = '', $wp_error = '') { 29 29 global $error; 30 30 … … 33 33 34 34 include_once('mobile.php'); 35 wpmp_ms_mobile_top(__("Login" ));35 wpmp_ms_mobile_top(__("Login", 'wpmp')); 36 36 37 37 if ( !empty( $message ) ) echo apply_filters('login_message', $message) . "\n"; … … 121 121 122 122 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'")); 124 124 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'); 130 130 131 wpmp_switcher_login_header(__('Login' ), '', $errors);131 wpmp_switcher_login_header(__('Login', 'wpmp'), '', $errors); 132 132 ?> 133 133 … … 135 135 <?php if ( !isset($_GET['checkemail']) || !in_array( $_GET['checkemail'], array('confirm', 'newpass') ) ) : ?> 136 136 <p> 137 <label><?php _e('Username' ) ?><br />137 <label><?php _e('Username', 'wpmp') ?><br /> 138 138 <input type="text" name="log" id="user_login" class="input" value="<?php echo attribute_escape(stripslashes(@$user_login)); ?>" size="20" tabindex="10" /></label> 139 139 </p> 140 140 <p> 141 <label><?php _e('Password' ) ?><br />141 <label><?php _e('Password', 'wpmp') ?><br /> 142 142 <input type="password" name="pwd" id="user_pass" class="input" value="" size="20" tabindex="20" /></label> 143 143 </p> 144 144 <?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> 146 146 <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" /> 148 148 <input type="hidden" name="redirect_to" value="<?php echo attribute_escape($redirect_to); ?>" /> 149 149 <input type="hidden" name="testcookie" value="1" /> … … 154 154 </form> 155 155 156 <p id="backtoblog"><a href="<?php bloginfo('url'); ?>/" title="<?php _e('Are you lost?' ) ?>"><?php print '« ' . 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 '« ' . sprintf(__('Back to %s', 'wpmp'), get_bloginfo('title', 'display' )); ?></a></p> 157 157 158 158 <?php -
wordpress-mobile-pack/trunk/plugins/wpmp_switcher/wpmp_switcher.php
r187519 r188277 58 58 59 59 function 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')) 62 62 ); 63 63 switch($switcher_outcome = wpmp_switcher_outcome()) { … … 102 102 return; 103 103 } 104 print $before_widget . $before_title . __('Switch site' ) . $after_title;104 print $before_widget . $before_title . __('Switch site', 'wpmp') . $after_title; 105 105 switch (wpmp_switcher_outcome()) { 106 106 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>"; 108 108 break; 109 109 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>"; 111 111 break; 112 112 } … … 184 184 185 185 function 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'); 187 187 } 188 188 function wpmp_switcher_admin() { … … 191 191 if(isset($_POST['wpmp_switcher_hit_reset']) && $_POST['wpmp_switcher_hit_reset']=='true') { 192 192 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>'; 194 194 } 195 195 } … … 203 203 switch (wpmp_switcher_outcome()) { 204 204 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>"; 206 206 break; 207 207 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>"; 209 209 break; 210 210 } … … 277 277 } 278 278 function 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); 283 283 $duration = wpmp_switcher_humanize_delta(microtime(true) - get_option("wpmp_switcher_hits_start")); 284 284 $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); 287 287 } 288 288 … … 291 291 $suffix = ''; 292 292 if ($number>(1000000000000)){ 293 $suffix=' ' . __('trillion' );293 $suffix=' ' . __('trillion', 'wpmp'); 294 294 $number = $number / (1000000000000); 295 295 } elseif ($number>(1000000000)){ 296 $suffix=' ' . __('billion' );296 $suffix=' ' . __('billion', 'wpmp'); 297 297 $number = $number / (1000000000); 298 298 } elseif ($number>(1000000)){ 299 $suffix=' ' . __('million' );299 $suffix=' ' . __('million', 'wpmp'); 300 300 $number = $number / (1000000); 301 301 } … … 305 305 function wpmp_switcher_humanize_delta($seconds) { 306 306 $seconds = $seconds * 1; 307 $suffix = ' ' . __('seconds' );307 $suffix = ' ' . __('seconds', 'wpmp'); 308 308 if (($seconds)>60*60*24*365*2){ 309 $suffix=' ' . __('years' );309 $suffix=' ' . __('years', 'wpmp'); 310 310 $seconds = round($seconds / (60*60*24*365), 1); 311 311 } elseif ($seconds>60*60*24*30*2){ 312 $suffix=' ' . __('months' );312 $suffix=' ' . __('months', 'wpmp'); 313 313 $seconds = round($seconds / (60*60*24*30), 0); 314 314 } elseif ($seconds>60*60*24*7*2){ 315 $suffix=' ' . __('weeks' );315 $suffix=' ' . __('weeks', 'wpmp'); 316 316 $seconds = round($seconds / (60*60*24*7), 1); 317 317 } elseif ($seconds>60*60*24*2){ 318 $suffix=' ' . __('days' );318 $suffix=' ' . __('days', 'wpmp'); 319 319 $seconds = round($seconds / (60*60*24), 1); 320 320 } elseif ($seconds>60*60*2){ 321 $suffix=' ' . __('hours' );321 $suffix=' ' . __('hours', 'wpmp'); 322 322 $seconds = round($seconds / (60*60), 1); 323 323 } elseif ($seconds>60){ 324 $suffix=' ' . __('minutes' );324 $suffix=' ' . __('minutes', 'wpmp'); 325 325 $seconds = round($seconds / 60, 1); 326 326 } else { … … 528 528 } 529 529 function wpmp_switcher_options_write() { 530 $message = __('Settings saved.' );530 $message = __('Settings saved.', 'wpmp'); 531 531 foreach(array( 532 532 'wpmp_switcher_mode'=>false, … … 561 561 $trimmed_domain = wpmp_switcher_trim_domain($domain); 562 562 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'); 564 564 } 565 565 $trimmed_domains[] = $trimmed_domain; … … 573 573 case 'domain': 574 574 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'); 576 576 break; 577 577 case 'browserdomain': 578 578 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'); 580 580 break; 581 581 } … … 590 590 $option, 591 591 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'), 596 596 ), 597 597 $onchange … … 602 602 603 603 case 'wpmp_switcher_detection': 604 $options = array('simple'=>__('User-agent prefixes' ));604 $options = array('simple'=>__('User-agent prefixes', 'wpmp')); 605 605 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'); 608 608 } 609 609 return wpmp_switcher_option_dropdown( … … 638 638 $selected = ''; 639 639 } 640 $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description ) . '</option>';640 $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description, 'wpmp') . '</option>'; 641 641 } 642 642 $dropdown .= "</select>"; -
wordpress-mobile-pack/trunk/plugins/wpmp_switcher/wpmp_switcher_admin.php
r187519 r188277 30 30 <div class="wrap"> 31 31 <h2> 32 <?php _e('Mobile Switcher' ) ?>32 <?php _e('Mobile Switcher', 'wpmp') ?> 33 33 <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'); ?> 35 35 </p> 36 36 </h2> … … 38 38 <table class="form-table"> 39 39 <tr> 40 <th><?php _e('Mobile activity' ); ?></th>40 <th><?php _e('Mobile activity', 'wpmp'); ?></th> 41 41 <td> 42 42 <?php print wpmp_switcher_hit_summary(); ?> 43 43 <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> 45 45 </td> 46 46 </tr> 47 47 <tr> 48 <th><?php _e('Switcher mode' ); ?></th>48 <th><?php _e('Switcher mode', 'wpmp'); ?></th> 49 49 <td> 50 50 <?php print wpmp_switcher_option('wpmp_switcher_mode', 'wpmpSwitcherMode();'); ?> 51 51 <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'); ?> 53 53 </td> 54 54 </tr> 55 55 <tr class='wpmp_theme'> 56 <th><?php _e('Mobile theme' ); ?></th>56 <th><?php _e('Mobile theme', 'wpmp'); ?></th> 57 57 <td> 58 58 <?php print wpmp_switcher_option('wpmp_switcher_mobile_theme'); ?> 59 59 <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'); ?> 61 61 <a href='/wp-admin/themes.php' target='_blank'><?php print wpmp_switcher_desktop_theme(); ?></a> 62 62 </td> 63 63 </tr> 64 64 <tr class='wpmp_browser'> 65 <th><?php _e('Browser detection' ); ?></th>65 <th><?php _e('Browser detection', 'wpmp'); ?></th> 66 66 <td><?php print wpmp_switcher_option('wpmp_switcher_detection'); ?></td> 67 67 </tr> 68 68 <tr class='wpmp_desktop_domain'> 69 <th><?php _e('Desktop domains' ); ?></th>69 <th><?php _e('Desktop domains', 'wpmp'); ?></th> 70 70 <td> 71 71 <?php print wpmp_switcher_option('wpmp_switcher_desktop_domains'); ?> 72 72 <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> 74 74 <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'); ?> 76 76 <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'); ?> 78 78 </td> 79 79 </tr> 80 80 <tr class='wpmp_mobile_domain'> 81 <th><?php _e('Mobile domains' ); ?></th>81 <th><?php _e('Mobile domains', 'wpmp'); ?></th> 82 82 <td> 83 83 <?php print wpmp_switcher_option('wpmp_switcher_mobile_domains'); ?> 84 84 <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> 86 86 <?php 87 87 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'); 89 89 } 90 90 ?> 91 91 <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'); ?> 93 93 <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'); ?> 95 95 </td> 96 96 </tr> 97 97 <tr class='wpmp_links'> 98 <th><?php _e('Footer links' ); ?></th>98 <th><?php _e('Footer links', 'wpmp'); ?></th> 99 99 <td> 100 100 <?php print wpmp_switcher_option('wpmp_switcher_footer_links'); ?> 101 101 <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'); ?> 106 106 </td> 107 107 </tr> 108 108 </table> 109 109 <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'); ?>" /> 111 111 </p> 112 112 </form> -
wordpress-mobile-pack/trunk/plugins/wpmp_transcoder/wpmp_transcoder.php
r187519 r188277 37 37 function wpmp_transcoder_activate() { 38 38 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')); 40 40 } 41 41 } … … 84 84 $pager = ''; 85 85 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)); 87 87 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>"; 89 89 } 90 90 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>"; 92 92 $wpmp_transcoder_is_last_page = false; 93 93 } else { -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/archives.php
r187519 r188277 32 32 <div id="content"> 33 33 <div class="post"> 34 <h2><?php _e('Archives by Month:' ); ?></h2>34 <h2><?php _e('Archives by Month:', 'wpmp'); ?></h2> 35 35 <ul> 36 36 <?php wp_get_archives('type=monthly'); ?> … … 38 38 </div> 39 39 <div class="post"> 40 <h2><?php _e('Archives by Subject:' ); ?></h2>40 <h2><?php _e('Archives by Subject:', 'wpmp'); ?></h2> 41 41 <ul> 42 42 <?php wp_list_categories(); ?> -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/comments.php
r187519 r188277 31 31 32 32 <?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> 34 34 <?php return; ?> 35 35 <?php } ?> … … 40 40 } else { 41 41 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>'; 43 43 wpmp_theme_comment_list($comments); 44 44 } 45 45 if ($post->comment_status == 'open') { 46 print '<h3 id="respond">' . __('Leave a comment' ) . '</h3>';46 print '<h3 id="respond">' . __('Leave a comment', 'wpmp') . '</h3>'; 47 47 wpmp_theme_comment_form($user_ID, $user_identity, $req, $comment_author, $comment_author_url, $id, $post); 48 48 } … … 61 61 <p><?php comment_author_link($comment->comment_ID) ?>:</p> 62 62 <?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> 64 64 <?php } ?> 65 65 <p class="metadata"><?php comment_date('F jS, Y') ?> at <?php comment_time() ?> <?php edit_comment_link('Edit','',''); ?></p> … … 77 77 <?php if ( get_option('comment_registration') && !$user_ID ) { ?> 78 78 <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)); ?> 80 80 </p> 81 81 <?php } else { ?> … … 83 83 <?php if ( $user_ID ) { ?> 84 84 <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> 87 87 <?php } else { ?> 88 88 <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> 90 90 <br /> 91 91 <input type="text" name="author" id="author" value="<?php echo $comment_author; ?>" /> 92 92 </p> 93 93 <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> 95 95 <br /> 96 96 <input type="text" name="email" id="email" value="<?php print empty($comment_author_email)?"":$comment_author_email; ?>" /> 97 97 </p> 98 98 <p> 99 <label for="url"><?php _e('Website' ); ?></label>99 <label for="url"><?php _e('Website', 'wpmp'); ?></label> 100 100 <br /> 101 101 <input type="text" name="url" id="url" value="<?php print empty($comment_author_url)?"http://":$comment_author_url; ?>"/> … … 103 103 <?php } ?> 104 104 <p> 105 <label for="comment"><?php _e('Comment' ); ?></label>105 <label for="comment"><?php _e('Comment', 'wpmp'); ?></label> 106 106 <br /> 107 107 <textarea name="comment" id="comment" rows="3"></textarea> 108 108 </p> 109 109 <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'); ?>" /> 111 111 <input type="hidden" name="comment_post_ID" value="<?php echo $id; ?>" /> 112 112 </p> -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/footer.php
r187519 r188277 34 34 } else { 35 35 ?> 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> 37 37 <?php 38 38 } -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/functions.php
r187519 r188277 110 110 } 111 111 if(($pos=strpos($content, '['))!==false) { 112 $content = substr($content, 0, $pos) . ' ' . __("Read more" );112 $content = substr($content, 0, $pos) . ' ' . __("Read more", 'wpmp'); 113 113 } 114 if (substr($content, strlen(__("Read more" )))==__("Read more")) {114 if (substr($content, strlen(__("Read more", 'wpmp')))==__("Read more", 'wpmp')) { 115 115 $content = substr($content, 0, -9); 116 116 $suffix = true; 117 117 } 118 118 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>"; 120 120 } 121 121 return $content; … … 139 139 function wpmp_theme_widget_search($args, $widget_args=1) { 140 140 extract($args); 141 print $before_widget . $before_title . __('Search Site' ) . $after_title;141 print $before_widget . $before_title . __('Search Site', 'wpmp') . $after_title; 142 142 include (TEMPLATEPATH . "/searchform.php"); 143 143 print $after_widget; … … 148 148 extract($args); 149 149 $options = get_option('widget_archives'); 150 $title = empty($options['title']) ? __('Archives' ) : $options['title'];150 $title = empty($options['title']) ? __('Archives', 'wpmp') : $options['title']; 151 151 print $before_widget . $before_title . $title . $after_title . "<ul>"; 152 152 ob_start(); … … 154 154 $html = ob_get_contents(); 155 155 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>"); 157 157 if($content) { 158 158 print $content; 159 159 } else { 160 print "<li>" . __('No archives' ) . "</li>";160 print "<li>" . __('No archives', 'wpmp') . "</li>"; 161 161 } 162 162 print "</ul>$after_widget"; … … 172 172 $options = get_option('widget_categories'); 173 173 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']; 175 175 print $before_widget . $before_title . $title . $after_title . "<ul>"; 176 176 ob_start(); … … 178 178 $html = ob_get_contents(); 179 179 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>"); 181 181 print "</ul>$after_widget"; 182 182 } … … 185 185 extract($args); 186 186 $options = get_option('widget_tag_cloud'); 187 $title = empty($options['title']) ? __('Tags' ) : $options['title'];187 $title = empty($options['title']) ? __('Tags', 'wpmp') : $options['title']; 188 188 $tags = get_tags(); 189 189 if(sizeof($tags)>0) { … … 192 192 foreach($tags as $tag) { 193 193 if($limit==0) { 194 print "<li><a href='/?archives=tag'>" . __('...more tags' ) . "</a>";194 print "<li><a href='/?archives=tag'>" . __('...more tags', 'wpmp') . "</a>"; 195 195 break; 196 196 } … … 212 212 $original = ob_get_contents(); 213 213 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); 215 215 $original = str_ireplace("&cpage", "&cpage", $original); 216 216 print $original; … … 232 232 } 233 233 preg_match_all("/(^.*)\<caption\>(.*)\<\/caption\>.*\<thead\>(.*)\<\/thead\>.*\<tfoot\>(.*)\<\/tfoot\>.*\<tbody\>(.*)\<\/tbody\>(.*$)/Usi", $original, $parts); 234 print str_replace("<h2> </h2>", "<h2>" . __('Calendar' ) . "</h2>", $parts[1][0]) .234 print str_replace("<h2> </h2>", "<h2>" . __('Calendar', 'wpmp') . "</h2>", $parts[1][0]) . 235 235 "<tr><td colspan='7'>" . $parts[2][0] . "</td></tr>" . 236 236 $parts[3][0] .$parts[5][0] . $parts[4][0] . -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/functions_persist.php
r187519 r188277 62 62 add_action('admin_menu', 'wpmp_theme_admin_menu'); 63 63 function 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'); 66 66 } 67 67 … … 71 71 if(isset($_POST['wpmp_theme_transcoder_clear_cache_now']) && $_POST['wpmp_theme_transcoder_clear_cache_now']=='true') { 72 72 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>'; 74 74 } 75 75 } … … 85 85 86 86 function wpmp_theme_options_write() { 87 $message = __('Settings saved.' );87 $message = __('Settings saved.', 'wpmp'); 88 88 foreach(array( 89 89 'wpmp_theme_widget'=>false, … … 116 116 if (!is_numeric(get_option('wpmp_theme_post_count'))) { 117 117 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'); 119 119 } 120 120 if (!is_numeric(get_option('wpmp_theme_teaser_length'))) { 121 121 update_option('wpmp_theme_teaser_length', '50'); 122 $message = __('Please provide a valid teaser length.' );122 $message = __('Please provide a valid teaser length.', 'wpmp'); 123 123 } 124 124 if (!is_numeric(get_option('wpmp_theme_widget_list_count'))) { 125 125 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'); 127 127 } 128 128 return $message; … … 135 135 $option, 136 136 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'), 140 140 ), 141 141 $onchange … … 177 177 $selected = ''; 178 178 } 179 $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description ) . '</option>';179 $dropdown .= '<option value="' . attribute_escape($value) . '"' . $selected . '>' . __($description, 'wpmp') . '</option>'; 180 180 } 181 181 $dropdown .= "</select>"; -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/groups/nokia_high/comments.php
r187519 r188277 29 29 print '<dl id="accordion_comments" class="list-accordion">'; 30 30 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>'; 32 32 print "<dd>"; wpmp_theme_comment_list($comments); print '</dd>'; 33 33 } 34 34 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>'; 36 36 print "<dd>"; wpmp_theme_comment_form($user_ID, $user_identity, $req, $comment_author, $comment_author_url, $id, $post); print '</dd>'; 37 37 } -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/groups/nokia_high/footer.php
r187519 r188277 28 28 ?> 29 29 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 33 33 wpmp_theme_post_single(); 34 34 } 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>'; 36 36 wpmp_theme_post_summary(); 37 37 } … … 39 39 if(!is_single() && !is_page()) { 40 40 print '<p class="navigation">'; 41 next_posts_link(__('Older' ));41 next_posts_link(__('Older', 'wpmp')); 42 42 print ' '; 43 previous_posts_link(__('Newer' ));43 previous_posts_link(__('Newer', 'wpmp')); 44 44 print '</p>'; 45 45 } -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/groups/nokia_low/footer.php
r187519 r188277 28 28 ?> 29 29 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 28 28 ?> 29 29 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 48 48 49 49 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> 50 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { print '» ' . __('Blog Archive' ); } ?><?php wp_title('»'); ?></title>50 <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { print '» ' . __('Blog Archive', 'wpmp'); } ?><?php wp_title('»'); ?></title> 51 51 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" /> 52 52 <link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" /> … … 64 64 <ul class="breadcrumbs"> 65 65 <?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> 67 67 <?php } ?> 68 68 <?php wp_list_pages('title_li=&depth=1'); ?> -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/index.php
r187519 r188277 32 32 $wpmp_not_found = false; 33 33 if (isset($_GET['archives']) && ($archives = $_GET['archives'])!='') { 34 $wpmp_title = __("Blog archives" );34 $wpmp_title = __("Blog archives", 'wpmp'); 35 35 $wpmp_archives = true; 36 36 } elseif (have_posts()) { 37 37 $post = $posts[0]; 38 38 if (is_search()) { 39 $wpmp_title = __("Search results" );39 $wpmp_title = __("Search results", 'wpmp'); 40 40 } 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)); 42 42 } 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)); 44 44 } 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')); 46 46 } 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')); 48 48 } 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')); 50 50 } elseif (is_author()) { 51 $wpmp_title = __("Author archive" );51 $wpmp_title = __("Author archive", 'wpmp'); 52 52 } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { 53 $wpmp_title = __("Blog archives" );53 $wpmp_title = __("Blog archives", 'wpmp'); 54 54 } elseif (!is_single() && !is_page()) { 55 $wpmp_title = __("Recent posts" );55 $wpmp_title = __("Recent posts", 'wpmp'); 56 56 } 57 57 } else { 58 $wpmp_title = __("Page not found" );58 $wpmp_title = __("Page not found", 'wpmp'); 59 59 $wpmp_not_found = true; 60 60 } … … 68 68 69 69 if ($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>"; 71 71 include (TEMPLATEPATH . "/searchform.php"); 72 72 73 73 } elseif ($wpmp_archives) { 74 74 if ($archives=='category') { 75 print "<h2>" . __("Archives by category" ) . "</h2>";75 print "<h2>" . __("Archives by category", 'wpmp') . "</h2>"; 76 76 $links = array(); 77 77 foreach(get_categories() as $category) { … … 80 80 $links = implode(', ', $links); 81 81 } elseif ($archives=='tag') { 82 print "<h2>" . __("Archives by tag" ) . "</h2>";82 print "<h2>" . __("Archives by tag", 'wpmp') . "</h2>"; 83 83 $links = array(); 84 84 foreach(get_tags() as $tag) { … … 87 87 $links = implode(', ', $links); 88 88 } 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>"; 90 90 $links = " "; 91 91 wp_get_archives(array('type'=>$archives.'ly', 'show_post_count'=>true)); … … 94 94 print "<p>$links</p>"; 95 95 } 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>"; 97 97 include (TEMPLATEPATH . "/searchform.php"); 98 98 } … … 120 120 if(!is_single() && !is_page()) { 121 121 print '<p class="navigation">'; 122 next_posts_link(__('Older' ));122 next_posts_link(__('Older', 'wpmp')); 123 123 print ' '; 124 previous_posts_link(__('Newer' ));124 previous_posts_link(__('Newer', 'wpmp')); 125 125 print '</p>'; 126 126 } … … 131 131 function wpmp_theme_post_single() { 132 132 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>'; 134 134 if(!function_exists('wpmp_transcoder_is_last_page') || wpmp_transcoder_is_last_page()) { 135 135 global $post; 136 136 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>'; 138 138 print '</div>'; 139 139 } else { … … 161 161 if ($single || ($summary!='none' && ($summary!='firstteaser' || $wpmp_summary_first))) { 162 162 print '<p class="entry">'; 163 the_content(__('Read more' ));163 the_content(__('Read more', 'wpmp')); 164 164 print '</p>'; 165 165 $wpmp_summary_first = false; 166 166 } 167 167 if ($single || $metadata) { 168 print '<p class="metadata">' . __('Posted in ' );168 print '<p class="metadata">' . __('Posted in ', 'wpmp'); 169 169 the_category(', '); 170 170 print ' | '; -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/searchform.php
r187519 r188277 31 31 <div> 32 32 <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'); ?>" /> 34 34 </div> 35 35 </form> -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/wpmp_theme_theme_admin.php
r187519 r188277 28 28 ?><div class="wrap"> 29 29 <h2> 30 <?php _e('Mobile Theme' ) ?>30 <?php _e('Mobile Theme', 'wpmp') ?> 31 31 <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'); ?> 33 33 </p> 34 34 </h2> 35 35 <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"'); ?> 37 37 </p> 38 38 <form method="post" action=""> 39 39 <table class="form-table"> 40 40 <tr> 41 <th><?php _e('Enable Nokia templates' ); ?></th>41 <th><?php _e('Enable Nokia templates', 'wpmp'); ?></th> 42 42 <td> 43 43 <?php print wpmp_theme_option('wpmp_theme_nokia_templates'); ?> 44 44 <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'); ?> 46 46 </td> 47 47 </tr> 48 48 <tr> 49 <th><?php _e('Check mobile status' ); ?></th>49 <th><?php _e('Check mobile status', 'wpmp'); ?></th> 50 50 <td> 51 51 <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> 52 52 <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'); ?> 54 54 </td> 55 55 </tr> 56 56 <tr> 57 <th><?php _e('Show home link in menu' ); ?></th>57 <th><?php _e('Show home link in menu', 'wpmp'); ?></th> 58 58 <td> 59 59 <?php print wpmp_theme_option('wpmp_theme_home_link_in_menu'); ?> 60 60 <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'); ?> 62 62 </td> 63 63 </tr> 64 64 <tr> 65 <th><?php _e('Number of posts' ); ?></th>65 <th><?php _e('Number of posts', 'wpmp'); ?></th> 66 66 <td> 67 67 <?php print wpmp_theme_option('wpmp_theme_post_count'); ?> 68 68 <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'); ?> 70 70 </td> 71 71 </tr> 72 72 <tr> 73 <th><?php _e('Lists of posts show' ); ?></th>73 <th><?php _e('Lists of posts show', 'wpmp'); ?></th> 74 74 <td> 75 75 <?php print wpmp_theme_option('wpmp_theme_post_summary', 'wpmpThemeSummary()'); ?> 76 76 <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> 78 78 <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'); ?> 80 80 </td> 81 81 </tr> 82 82 <tr class='wpmp_teaser'> 83 <th><?php _e('Teaser length' ); ?></th>83 <th><?php _e('Teaser length', 'wpmp'); ?></th> 84 84 <td> 85 85 <?php print wpmp_theme_option('wpmp_theme_teaser_length'); ?> 86 86 <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'); ?> 88 88 </td> 89 89 </tr> 90 90 <tr> 91 <th><?php _e('Number of widget items' ); ?></th>91 <th><?php _e('Number of widget items', 'wpmp'); ?></th> 92 92 <td> 93 93 <?php print wpmp_theme_option('wpmp_theme_widget_list_count'); ?> 94 94 <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'); ?> 96 96 </td> 97 97 </tr> 98 98 <?php if(function_exists('wpmp_transcoder_purge_cache')) { ?> 99 99 <tr> 100 <th><?php _e('Remove media' ); ?></th>100 <th><?php _e('Remove media', 'wpmp'); ?></th> 101 101 <td> 102 102 <?php print wpmp_theme_option('wpmp_theme_transcoder_remove_media'); ?> 103 103 <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'); ?> 105 105 </td> 106 106 </tr> 107 107 <tr> 108 <th><?php _e('Partition large pages' ); ?></th>108 <th><?php _e('Partition large pages', 'wpmp'); ?></th> 109 109 <td> 110 110 <?php print wpmp_theme_option('wpmp_theme_transcoder_partition_pages'); ?> 111 111 <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'); ?> 113 113 </td> 114 114 </tr> 115 115 <tr> 116 <th><?php _e('Shrink images' ); ?></th>116 <th><?php _e('Shrink images', 'wpmp'); ?></th> 117 117 <td> 118 118 <?php print wpmp_theme_option('wpmp_theme_transcoder_shrink_images'); ?> 119 119 <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'); ?> 121 121 <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> 123 123 <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'); ?> 125 125 </td> 126 126 </tr> 127 127 <tr> 128 <th><?php _e('Simplify styling' ); ?></th>128 <th><?php _e('Simplify styling', 'wpmp'); ?></th> 129 129 <td> 130 130 <?php print wpmp_theme_option('wpmp_theme_transcoder_simplify_styling'); ?> 131 131 <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'); ?> 133 133 </td> 134 134 </tr> … … 137 137 138 138 <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'); ?>" /> 140 140 </p> 141 141 </form> -
wordpress-mobile-pack/trunk/themes/mobile_pack_base/wpmp_theme_widget_admin.php
r187519 r188277 28 28 ?><div class="wrap"> 29 29 <h2> 30 <?php _e('Mobile Widgets' ) ?>30 <?php _e('Mobile Widgets', 'wpmp') ?> 31 31 <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'); ?> 33 33 </p> 34 34 </h2> … … 38 38 <?php $enabled = get_option('wpmp_theme_widget'); ?> 39 39 <?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> 41 41 <?php foreach($sidebar_widgets as $sidebar=>$widgets) { ?> 42 42 <?php if ($sidebar!='wp_inactive_widgets') { ?> … … 45 45 </h3> 46 46 <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) . "'"); ?> 48 48 </p> 49 49 <table class="form-table"> … … 81 81 <?php } ?> 82 82 <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'); ?>" /> 84 84 </p> 85 85 </form> -
wordpress-mobile-pack/trunk/wordpress-mobile-pack.php
r187052 r188277 29 29 Plugin Name: WordPress Mobile Pack 30 30 Plugin 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>.31 Description: <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> 32 32 Version: 1.2.0 33 33 Author: James Pearce & friends … … 58 58 register_activation_hook('wordpress-mobile-pack/wordpress-mobile-pack.php', 'wordpress_mobile_pack_activate'); 59 59 register_deactivation_hook('wordpress-mobile-pack/wordpress-mobile-pack.php', 'wordpress_mobile_pack_deactivate'); 60 61 add_action('init', 'wordpress_mobile_pack_init'); 60 62 add_action('admin_notices', 'wordpress_mobile_pack_admin_notices'); 61 63 add_action('admin_menu', 'wordpress_mobile_pack_admin_menu'); 62 63 64 add_action('send_headers', 'wordpress_mobile_pack_send_headers'); 64 65 add_filter('get_the_generator_xhtml', 'wordpress_mobile_pack_generator'); 65 66 add_filter('get_the_generator_html', 'wordpress_mobile_pack_generator'); 66 67 68 add_filter('plugin_action_links', 'wordpress_mobile_pack_plugin_action_links', 10, 3); 69 70 71 function 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 67 77 function wordpress_mobile_pack_send_headers($wp) { 68 78 @header("X-Mobilized-By: WordPress Mobile Pack " . WPMP_VERSION); … … 70 80 function wordpress_mobile_pack_generator($generator) { 71 81 return '<meta name="generator" content="WordPress ' . get_bloginfo( 'version' ) . ', fitted with the WordPress Mobile Pack ' . WPMP_VERSION . '" />'; 82 } 83 84 85 function 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; 72 106 } 73 107 … … 75 109 if($warning=get_option('wpmp_warning')) { 76 110 print "<div class='error'><p><strong style='color:#770000'>"; 77 print __("Critical WordPress Mobile Pack Issue" );111 print __("Critical WordPress Mobile Pack Issue", 'wpmp'); 78 112 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'); 80 114 print ")</small></p></div>"; 81 115 } 82 116 if($flash=get_option('wpmp_flash')) { 83 117 print "<div class='error'><p><strong style='color:#770000'>"; 84 print __('Important WordPress Mobile Pack Notice' );118 print __('Important WordPress Mobile Pack Notice', 'wpmp'); 85 119 print "</strong></p><p>$flash</p></div>"; 86 120 update_option('wpmp_flash', ''); … … 114 148 if (version_compare(PHP_VERSION, '6.0.0', '>=')) { 115 149 $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); 117 151 } 118 152 … … 120 154 $cache_does = ''; 121 155 if (!file_exists($cache_dir)) { 122 $cache_does = __("That directory does not exist." );156 $cache_does = __("That directory does not exist.", 'wpmp'); 123 157 } elseif (!is_writable($cache_dir)) { 124 $cache_does = __("That directory is not writable." );158 $cache_does = __("That directory is not writable.", 'wpmp'); 125 159 } elseif (!is_executable($cache_dir) && DIRECTORY_SEPARATOR=='/') { 126 $cache_does = __("That directory is not executable." );160 $cache_does = __("That directory is not executable.", 'wpmp'); 127 161 } 128 162 if($cache_does!='') { 129 163 $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'); 131 165 } 132 166 … … 134 168 $theme_does = ''; 135 169 if (!file_exists($theme_dir)) { 136 $theme_does = __("That directory does not exist." );170 $theme_does = __("That directory does not exist.", 'wpmp'); 137 171 } elseif (!is_writable($theme_dir)) { 138 $theme_does = __("That directory is not writable." );172 $theme_does = __("That directory is not writable.", 'wpmp'); 139 173 } elseif (!is_executable($theme_dir) && DIRECTORY_SEPARATOR=='/') { 140 $theme_does = __("That directory is not executable." );174 $theme_does = __("That directory is not executable.", 'wpmp'); 141 175 } 142 176 if($theme_does!='') { 143 177 $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'); 145 179 } 146 180 … … 161 195 } 162 196 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')); 164 198 return; 165 199 } … … 177 211 if (file_exists($destination_child = "$destination_dir/$source_file") && $benign) { 178 212 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') . 180 214 "</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) . 182 216 "</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') . 184 218 "</p><br /><form method='post' action='" . $_SERVER['REQUEST_URI'] . "'>". 185 219 "<input type='submit' name='wordpress_mobile_pack_force_copy_theme' value='" . 186 __('Yes please - I'll upgrade all my themes' ) .220 __('Yes please - I'll upgrade all my themes', 'wpmp') . 187 221 "' /> ". 188 222 "<input type='submit' value='" . 189 __('No thanks - I'll leave my themes as they are' ) .223 __('No thanks - I'll leave my themes as they are', 'wpmp') . 190 224 "' />". 191 225 "</form><p>"); … … 198 232 199 233 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')); 201 235 continue; 202 236 }
Note: See TracChangeset
for help on using the changeset viewer.