Skip to content

Commit

Permalink
Fix php format strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mantis committed Sep 28, 2013
1 parent ed6c90b commit fd9ff72
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/email_api.php
Expand Up @@ -1077,7 +1077,7 @@ function email_format_bug_message( $p_visible_bug_data ) {
# Sponsorship
if( isset( $p_visible_bug_data['sponsorship_total'] ) && ( $p_visible_bug_data['sponsorship_total'] > 0 ) ) {
$t_message .= $t_email_separator1 . " \n";
$t_message .= sprintf( _( 'Total Sponsorship = %1' ), sponsorship_format_amount( $p_visible_bug_data['sponsorship_total'] ) ) . "\n" . "\n";
$t_message .= sprintf( _( 'Total Sponsorship = %s' ), sponsorship_format_amount( $p_visible_bug_data['sponsorship_total'] ) ) . "\n" . "\n";

if( isset( $p_visible_bug_data['sponsorships'] ) ) {
foreach( $p_visible_bug_data['sponsorships'] as $t_sponsorship ) {
Expand Down
2 changes: 1 addition & 1 deletion manage/config_email_page.php
Expand Up @@ -309,7 +309,7 @@ function get_section_end_for_email() {
if ( ALL_PROJECTS == $t_project ) {
$t_project_title = _( 'Note: These configurations affect all projects, unless overridden at the project level.' );
} else {
$t_project_title = sprintf( _( 'Note: These configurations affect only the %1 project.' ) , string_display( project_get_name( $t_project ) ) );
$t_project_title = sprintf( _( 'Note: These configurations affect only the %s project.' ) , string_display( project_get_name( $t_project ) ) );
}
echo '<p class="bold">' . $t_project_title . '</p>' . "\n";
echo '<p>' . _( 'In the table below, the following color code applies:' ) . '<br />';
Expand Down
4 changes: 2 additions & 2 deletions manage/plugin_page.php
Expand Up @@ -254,10 +254,10 @@ function plugin_sort( $p_plugin1, $p_plugin2 ) {
$t_author = implode( $t_author, ', ' );
}
if ( !is_blank( $t_contact ) ) {
$t_author = '<br/>' . sprintf( _( 'Author: %1' ),
$t_author = '<br/>' . sprintf( _( 'Author: %s' ),
'<a href="mailto:' . string_display_line( $t_contact ) . '">' . string_display_line( $t_author ) . '</a>' );
} else {
$t_author = '<br/>' . string_display_line( sprintf( _( 'Author: %1' ), $t_author ) );
$t_author = '<br/>' . string_display_line( sprintf( _( 'Author: %s' ), $t_author ) );
}
}

Expand Down
2 changes: 1 addition & 1 deletion my_view_inc.php
Expand Up @@ -263,7 +263,7 @@

if ( $t_attachment_count > 0 ) {
$t_href = string_get_bug_view_url( $t_bug->id ) . '#attachments';
$t_href_title = sprintf( _( 'View %1 attachment(s) for issue #%2' ), $t_attachment_count, $t_bug->id );
$t_href_title = sprintf( _( 'View %1$d attachment(s) for issue #%2$d' ), $t_attachment_count, $t_bug->id );
$t_alt_text = $t_attachment_count . _( '&#32;' ) . _( 'attachment(s)' );
echo "<a class=\"attachments\" href=\"$t_href\" title=\"$t_href_title\"><img src=\"" . helper_mantis_url( 'themes/' . config_get( 'theme' ) . '/images/attachment.png' ) . "\" alt=\"$t_alt_text\" title=\"$t_alt_text\" /></a>";
}
Expand Down

0 comments on commit fd9ff72

Please sign in to comment.