Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/12/2008 08:19:04 PM (17 years ago)
Author:
apeatling
Message:

Added the 'buddypress' textdomain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-blogs/bp-blogs-templatetags.php

    r359 r391  
    275275    if ( !empty($posts_template->postpost_password) ) { // if there's a password
    276276        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');
    278278            return;
    279279        }
     
    295295    echo apply_filters( 'comments_popup_link_attributes', '' );
    296296
    297     echo ' title="' . sprintf( __('Comment on %s'), $title ) . '">';
     297    echo ' title="' . sprintf( __('Comment on %s', 'buddypress'), $title ) . '">';
    298298    comments_number( $zero, $one, $more, $number );
    299299    echo '</a>';
     
    635635
    636636        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>";
    638638        }
    639639        ?>
    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&#8217;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&#8217;re not going to use a great blog domain, leave it for a new user. Now have at it!", 'buddypress') ?></p>
    643643
    644644        <form id="setupform" method="post" action="<?php echo $bp['loggedin_domain'] . $bp['blogs']['slug'] . '/create-a-blog' ?>">
     
    648648            <?php bp_blogs_signup_blog($blogname, $blog_title, $errors); ?>
    649649            <p>
    650                 <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Create Blog &raquo;') ?>" />
     650                <input id="submit" type="submit" name="submit" class="submit" value="<?php _e('Create Blog &raquo;', 'buddypress') ?>" />
    651651            </p>
    652652        </form>
     
    660660    // Blog name
    661661    if( constant( "VHOST" ) == 'no' )
    662         echo '<label for="blogname">' . __('Blog Name:') . '</label>';
     662        echo '<label for="blogname">' . __('Blog Name:', 'buddypress') . '</label>';
    663663    else
    664         echo '<label for="blogname">' . __('Blog Domain:') . '</label>';
     664        echo '<label for="blogname">' . __('Blog Domain:', 'buddypress') . '</label>';
    665665
    666666    if ( $errmsg = $errors->get_error_message('blogname') ) { ?>
     
    674674    }
    675675    if ( !is_user_logged_in() ) {
    676         print '(<strong>' . __( 'Your address will be ' );
     676        print '(<strong>' . __( 'Your address will be ' , 'buddypress');
    677677        if( constant( "VHOST" ) == 'no' ) {
    678             print $current_site->domain . $current_site->path . __( 'blogname' );
     678            print $current_site->domain . $current_site->path . __( 'blogname' , 'buddypress');
    679679        } 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>';
    683683    }
    684684
    685685    // Blog Title
    686686    ?>
    687     <label for="blog_title"><?php _e('Blog Title:') ?></label> 
     687    <label for="blog_title"><?php _e('Blog Title:', 'buddypress') ?></label>   
    688688    <?php if ( $errmsg = $errors->get_error_message('blog_title') ) { ?>
    689689        <p class="error"><?php echo $errmsg ?></p>
     
    693693
    694694    <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'); ?>
    697697        <div style="clear:both;"></div>
    698698        <label class="checkbox" for="blog_public_on">
    699699            <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>
    701701        </label>
    702702        <label class="checkbox" for="blog_public_off">
    703703            <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>
    705705        </label>
    706706    </p>
     
    753753function bp_blogs_confirm_blog_signup( $domain, $path, $blog_title, $user_name, $user_email = '', $meta = '' ) {
    754754    ?>
    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>
    756756    <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) ?>
    758758    </p>
    759759    <?php
     
    765765   
    766766    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>';
    768768    }
    769769}
Note: See TracChangeset for help on using the changeset viewer.