Skip to:
Content

Changeset 608


Ignore:
Timestamp:
01/17/07 06:42:31 (7 years ago)
Author:
mdawaffe
Message:

i18n fixes from thomasklaiber and a ngettext use fix

File:
1 edited

Legend:

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

    r603 r608  
    136136    } elseif ( !bb_is_user_logged_in() ) { 
    137137        echo '<p>'; 
    138         sprintf(__('You must <a href="%s">log in</a> to post.'), bb_get_option('uri') . 'bb-login.php'); 
     138        printf(__('You must <a href="%s">log in</a> to post.'), bb_get_option('uri') . 'bb-login.php'); 
    139139        echo '</p>'; 
    140140    } 
     
    702702    global $bb_current_user, $topic; 
    703703    $post_num = get_topic_posts(); 
    704     $posts = sprintf('%1$s %2$s', $post_num, __ngettext( __('post'), __('posts'), $post_num )); 
     704    $posts = sprintf(__ngettext( '%s post', '%s posts', $post_num ), $post_num); 
    705705    if ( 'all' == @$_GET['view'] && bb_current_user_can('browse_deleted') ) 
    706706        echo "<a href='" . get_topic_link() . "'>$posts</a>"; 
Note: See TracChangeset for help on using the changeset viewer.