Changeset 391 for trunk/bp-blogs/bp-blogs-templatetags.php
- Timestamp:
- 10/12/2008 08:19:04 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/bp-blogs/bp-blogs-templatetags.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-blogs/bp-blogs-templatetags.php
r359 r391 275 275 if ( !empty($posts_template->postpost_password) ) { // if there's a password 276 276 if ( !isset($_COOKIE['wp-postpass_' . COOKIEHASH]) || $_COOKIE['wp-postpass_' . COOKIEHASH] != $posts_template->postpost_password ) { // and it doesn't match the cookie 277 echo __('Enter your password to view comments' );277 echo __('Enter your password to view comments', 'buddypress'); 278 278 return; 279 279 } … … 295 295 echo apply_filters( 'comments_popup_link_attributes', '' ); 296 296 297 echo ' title="' . sprintf( __('Comment on %s' ), $title ) . '">';297 echo ' title="' . sprintf( __('Comment on %s', 'buddypress'), $title ) . '">'; 298 298 comments_number( $zero, $one, $more, $number ); 299 299 echo '</a>'; … … 635 635 636 636 if ( $errors->get_error_code() ) { 637 echo "<p>" . __('There was a problem, please correct the form below and try again.' ) . "</p>";637 echo "<p>" . __('There was a problem, please correct the form below and try again.', 'buddypress') . "</p>"; 638 638 } 639 639 ?> 640 <p><?php printf(__("By filling out the form below, you can <strong>add a blog to your account</strong>. There is no limit to the number of blogs you can have, so create to your heart's content, but blog responsibly." ), $current_user->display_name) ?></p>641 642 <p><?php _e("If you’re not going to use a great blog domain, leave it for a new user. Now have at it!" ) ?></p>640 <p><?php printf(__("By filling out the form below, you can <strong>add a blog to your account</strong>. There is no limit to the number of blogs you can have, so create to your heart's content, but blog responsibly.", 'buddypress'), $current_user->display_name) ?></p> 641 642 <p><?php _e("If you’re not going to use a great blog domain, leave it for a new user. Now have at it!", 'buddypress') ?></p> 643 643 644 644 <form id="setupform" method="post" action="<?php echo $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog' ?>"> … … 648 648 <?php bp_blogs_signup_blog($blogname, $blog_title, $errors); ?> 649 649 <p> 650 <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Create Blog »' ) ?>" />650 <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Create Blog »', 'buddypress') ?>" /> 651 651 </p> 652 652 </form> … … 660 660 // Blog name 661 661 if( constant( "VHOST" ) == 'no' ) 662 echo '<label for="blogname">' . __('Blog Name:' ) . '</label>';662 echo '<label for="blogname">' . __('Blog Name:', 'buddypress') . '</label>'; 663 663 else 664 echo '<label for="blogname">' . __('Blog Domain:' ) . '</label>';664 echo '<label for="blogname">' . __('Blog Domain:', 'buddypress') . '</label>'; 665 665 666 666 if ( $errmsg = $errors->get_error_message('blogname') ) { ?> … … 674 674 } 675 675 if ( !is_user_logged_in() ) { 676 print '(<strong>' . __( 'Your address will be ' );676 print '(<strong>' . __( 'Your address will be ' , 'buddypress'); 677 677 if( constant( "VHOST" ) == 'no' ) { 678 print $current_site->domain . $current_site->path . __( 'blogname' );678 print $current_site->domain . $current_site->path . __( 'blogname' , 'buddypress'); 679 679 } else { 680 print __( 'domain.' ) . $current_site->domain . $current_site->path;681 } 682 echo '.</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)' ) . '</p>';680 print __( 'domain.' , 'buddypress') . $current_site->domain . $current_site->path; 681 } 682 echo '.</strong> ' . __( 'Must be at least 4 characters, letters and numbers only. It cannot be changed so choose carefully!)' , 'buddypress') . '</p>'; 683 683 } 684 684 685 685 // Blog Title 686 686 ?> 687 <label for="blog_title"><?php _e('Blog Title:' ) ?></label>687 <label for="blog_title"><?php _e('Blog Title:', 'buddypress') ?></label> 688 688 <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?> 689 689 <p class="error"><?php echo $errmsg ?></p> … … 693 693 694 694 <p> 695 <label for="blog_public_on"><?php _e('Privacy:' ) ?></label>696 <?php _e('I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.' ); ?>695 <label for="blog_public_on"><?php _e('Privacy:', 'buddypress') ?></label> 696 <?php _e('I would like my blog to appear in search engines like Google and Technorati, and in public listings around this site.', 'buddypress'); ?> 697 697 <div style="clear:both;"></div> 698 698 <label class="checkbox" for="blog_public_on"> 699 699 <input type="radio" id="blog_public_on" name="blog_public" value="1" <?php if( !isset( $_POST['blog_public'] ) || $_POST['blog_public'] == '1' ) { ?>checked="checked"<?php } ?> /> 700 <strong><?php _e( 'Yes' ); ?></strong>700 <strong><?php _e( 'Yes' , 'buddypress'); ?></strong> 701 701 </label> 702 702 <label class="checkbox" for="blog_public_off"> 703 703 <input type="radio" id="blog_public_off" name="blog_public" value="0" <?php if( isset( $_POST['blog_public'] ) && $_POST['blog_public'] == '0' ) { ?>checked="checked"<?php } ?> /> 704 <strong><?php _e( 'No' ); ?></strong>704 <strong><?php _e( 'No' , 'buddypress'); ?></strong> 705 705 </label> 706 706 </p> … … 753 753 function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = '' ) { 754 754 ?> 755 <p><?php _e('Congratulations! You have successfully registered a new blog.' ) ?></p>755 <p><?php _e('Congratulations! You have successfully registered a new blog.', 'buddypress') ?></p> 756 756 <p> 757 <?php printf(__('<a href="http://%1$s">http://%2$s</a> is your new blog. <a href="%3$s">Login</a> as "%4$s" using your existing password.' ), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name) ?>757 <?php printf(__('<a href="http://%1$s">http://%2$s</a> is your new blog. <a href="%3$s">Login</a> as "%4$s" using your existing password.', 'buddypress'), $domain.$path, $domain.$path, "http://" . $domain.$path . "wp-login.php", $user_name) ?> 758 758 </p> 759 759 <?php … … 765 765 766 766 if ( bp_is_home() ) { 767 echo '<a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog">' . __('Create a Blog' ) . '</a>';767 echo '<a href="' . $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog">' . __('Create a Blog', 'buddypress') . '</a>'; 768 768 } 769 769 }
Note: See TracChangeset
for help on using the changeset viewer.