Skip to:
Content

BuddyPress.org

Changeset 391 for trunk/bp-core.php


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-core.php

    r388 r391  
    158158    global $menu;
    159159   
    160     $account_settings_tab = add_menu_page( __('Account'), __('Account'), 10, 'bp-core/admin-mods/bp-core-account-tab.php' );
     160    $account_settings_tab = add_menu_page( __('Account', 'buddypress'), __('Account', 'buddypress'), 10, 'bp-core/admin-mods/bp-core-account-tab.php' );
    161161}
    162162add_action( 'admin_menu', 'bp_core_add_settings_tab' );
     
    425425    if ( count($list) < count($options) ) :
    426426?>
    427     <li id="all-my-blogs-tab" class="wp-no-js-hidden"><a href="#" class="blog-picker-toggle"><?php _e( 'All my blogs' ); ?></a></li>
     427    <li id="all-my-blogs-tab" class="wp-no-js-hidden"><a href="#" class="blog-picker-toggle"><?php _e( 'All my blogs' , 'buddypress'); ?></a></li>
    428428
    429429    </ul>
     
    431431    <form id="all-my-blogs" action="" method="get" style="display: none">
    432432        <p>
    433             <?php printf( __( 'Choose a blog: %s' ), $select ); ?>
    434 
    435             <input type="submit" class="button" value="<?php _e( 'Go' ); ?>" />
    436             <a href="#" class="blog-picker-toggle"><?php _e( 'Cancel' ); ?></a>
     433            <?php printf( __( 'Choose a blog: %s' , 'buddypress'), $select ); ?>
     434
     435            <input type="submit" class="button" value="<?php _e( 'Go' , 'buddypress'); ?>" />
     436            <a href="#" class="blog-picker-toggle"><?php _e( 'Cancel' , 'buddypress'); ?></a>
    437437        </p>
    438438    </form>
     
    800800   
    801801    if ( !$just_date ) {
    802         $date .= __('at') . date( ' g:iA', $time );
     802        $date .= __('at', 'buddypress') . date( ' g:iA', $time );
    803803    }
    804804   
     
    900900    // Make sure we have an uploads dir
    901901    if ( ! wp_mkdir_p( $dir ) ) {
    902         $message = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' ), $dir );
     902        $message = sprintf( __( 'Unable to create directory %s. Is its parent directory writable by the server?' , 'buddypress'), $dir );
    903903        return array( 'error' => $message );
    904904    }
     
    968968    // array of time period chunks
    969969    $chunks = array(
    970     array( 60 * 60 * 24 * 365 , __('year') ),
    971     array( 60 * 60 * 24 * 30 , __('month') ),
    972     array( 60 * 60 * 24 * 7, __('week') ),
    973     array( 60 * 60 * 24 , __('day') ),
    974     array( 60 * 60 , __('hour') ),
    975     array( 60 , __('minute') ),
    976     array( 1, __('second') )
     970    array( 60 * 60 * 24 * 365 , __('year', 'buddypress') ),
     971    array( 60 * 60 * 24 * 30 , __('month', 'buddypress') ),
     972    array( 60 * 60 * 24 * 7, __('week', 'buddypress') ),
     973    array( 60 * 60 * 24 , __('day', 'buddypress') ),
     974    array( 60 * 60 , __('hour', 'buddypress') ),
     975    array( 60 , __('minute', 'buddypress') ),
     976    array( 1, __('second', 'buddypress') )
    977977    );
    978978
     
    10091009        $name2 = $chunks[$i + 1][1];
    10101010       
    1011         if ( $name2 == __('second') ) return $output;
     1011        if ( $name2 == __('second', 'buddypress') ) return $output;
    10121012   
    10131013        if ( ( $count2 = floor( ( $since - ( $seconds * $count ) ) / $seconds2 ) ) != 0 ) {
     
    10581058function bp_core_get_last_activity( $last_activity_date, $before, $after ) {
    10591059    if ( !$last_activity_date || $last_activity_date == '' ) {
    1060         $last_active = __('not recently active');
     1060        $last_active = __('not recently active', 'buddypress');
    10611061    } else {
    10621062        $last_active = $before;
Note: See TracChangeset for help on using the changeset viewer.