From 1ff354e423865772e734cf755d5aa50aa59f9a5f Mon Sep 17 00:00:00 2001 From: Ozh Date: Sat, 23 Mar 2013 20:43:53 +0000 Subject: [PATCH] Better translation strings & correct function used. git-svn-id: http://yourls.googlecode.com/svn/trunk@897 12232710-3e20-11de-b438-597f59cd7555 --- admin/index.php | 8 ++++---- admin/plugins.php | 2 +- yourls-infos.php | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/admin/index.php b/admin/index.php index 31f0c3b..1ebfc23 100644 --- a/admin/index.php +++ b/admin/index.php @@ -48,7 +48,7 @@ $search_in = 'ip'; break; } - $search_sentence = yourls_s( 'Searching for %s in %s.', yourls_esc_html( $search ), yourls_esc_html( $search_in_text ) ); + $search_sentence = yourls_s( 'Searching for %1$s in %2$s.', yourls_esc_html( $search ), yourls_esc_html( $search_in_text ) ); $search_url = yourls_sanitize_url( "&search=$search&search_in=$search_in" ); $search_text = $search; $search = str_replace( '*', '%', '*' . yourls_escape( $search ) . '*' ); @@ -218,12 +218,12 @@ if ( !$is_bookmark ) { ?>

%s to %s of %s URLs' ), $display_on_page, $max_on_page, $total_items ); + printf( yourls__( 'Display %1$s to %2$s of %3$s URLs' ), $display_on_page, $max_on_page, $total_items ); if( $total_items_clicks !== false ) - echo ", " . sprintf( yourls__( 'counting 1 click', 'counting %s clicks', $total_items_clicks ), $total_items_clicks ); + echo ", " . sprintf( yourls_n( 'counting 1 click', 'counting %s clicks', $total_items_clicks ), yourls_number_format_i18n( $total_items_clicks ) ); ?>.

-

%s links, %s clicks, and counting!' ), yourls_number_format_i18n( $total_urls ), yourls_number_format_i18n( $total_clicks ) ); ?>

+

%1$s links, %2$s clicks, and counting!' ), yourls_number_format_i18n( $total_urls ), yourls_number_format_i18n( $total_clicks ) ); ?>

diff --git a/admin/plugins.php b/admin/plugins.php index 5e3202b..8640d32 100644 --- a/admin/plugins.php +++ b/admin/plugins.php @@ -71,7 +71,7 @@ $count_active = yourls_has_active_plugins(); ?> -

%s installed, and %s activated', $plugins_count, $count_active ); ?>

+

%1$s installed, and %2$s activated', $plugins_count, $count_active ); ?>

diff --git a/yourls-infos.php b/yourls-infos.php index f778109..f52f28b 100644 --- a/yourls-infos.php +++ b/yourls-infos.php @@ -377,7 +377,7 @@ $best_time['month'] = date( "m", strtotime( $best['day'] ) ); $best_time['year'] = date( "Y", strtotime( $best['day'] ) ); ?> -

%s hit on %s', '%s hits on %s', $best['max'] ), $best['max'], yourls_date_i18n( "F j, Y", strtotime( $best['day'] ) ) ); ?>. +

%1$s hit on %2$s', '%1$s hits on %2$s', $best['max'] ), $best['max'], yourls_date_i18n( "F j, Y", strtotime( $best['day'] ) ) ); ?>.