Skip to:
Content

Ignore:
Timestamp:
01/10/07 08:38:57 (7 years ago)
Author:
mdawaffe
Message:

i18n fixes from aurin. Fixes #535

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/template-functions.php

    r579 r580  
    136136    } elseif ( !bb_is_user_logged_in() ) { 
    137137        echo '<p>'; 
    138         _e(sprintf('You must <a href="%s">log in</a> to post.', bb_get_option('uri') . 'bb-login.php')); 
     138        sprintf(__('You must <a href="%s">log in</a> to post.'), bb_get_option('uri') . 'bb-login.php'); 
    139139        echo '</p>'; 
    140140    } 
     
    302302        $title = get_forum_name() . ' &laquo; '; 
    303303    if ( is_tag() ) 
    304         $title = wp_specialchars( get_tag_name() ). ' &laquo; Tags &laquo; '; 
     304        $title = wp_specialchars( get_tag_name() ). ' &laquo; ' . __('Tags') . ' &laquo; '; 
    305305    if ( is_bb_profile() ) 
    306306        $title = get_user_name( $user->ID ) . ' &laquo; '; 
     
    743743    global $bb_current_user, $topic; 
    744744    $post_num = get_topic_posts(); 
    745     $posts = sprintf('%1$s %2$s', $post_num, __ngettext( 'post', 'posts', $post_num )); 
     745    $posts = sprintf('%1$s %2$s', $post_num, __ngettext( __('post'), __('posts'), $post_num )); 
    746746    if ( 'all' == @$_GET['view'] && bb_current_user_can('browse_deleted') ) 
    747747        echo "<a href='" . get_topic_link() . "'>$posts</a>"; 
     
    753753            add_filter('get_topic_deleted_posts', create_function('$a', "\$a -= {$topic->bozos[$bb_current_user->ID]}; return \$a;") ); 
    754754        if ( $deleted = get_topic_deleted_posts() ) { 
    755             $extra = __(sprintf('+%d more', $deleted)); 
     755            $extra = sprintf(__('+%d more'), $deleted); 
    756756            if ( 'all' == @$_GET['view'] ) 
    757757                echo " $extra"; 
Note: See TracChangeset for help on using the changeset viewer.