From 4ce4b5bfb78e8bdf8bbab368885d08cae67c1a16 Mon Sep 17 00:00:00 2001
From: Ryan Boren
Date: Sat, 28 Jun 2008 16:27:21 +0000
Subject: [PATCH] i18n fixes from nbachiyski. fixes #7195
git-svn-id: https://develop.svn.wordpress.org/trunk@8211 602fd350-edb4-49c9-b593-d223f7449a82
---
wp-admin/admin-header.php | 4 ++--
wp-admin/index.php | 10 +++++-----
wp-admin/press-this.php | 17 ++++++++++-------
wp-settings.php | 2 +-
4 files changed, 18 insertions(+), 15 deletions(-)
diff --git a/wp-admin/admin-header.php b/wp-admin/admin-header.php
index ff42e3ffc5..bfd05339c3 100644
--- a/wp-admin/admin-header.php
+++ b/wp-admin/admin-header.php
@@ -87,7 +87,7 @@ if ( ($is_gecko || $is_winIE) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']),
diff --git a/wp-admin/index.php b/wp-admin/index.php
index f228531636..2401ef9f94 100644
--- a/wp-admin/index.php
+++ b/wp-admin/index.php
@@ -91,10 +91,10 @@ if ( current_user_can( 'manage_categories' ) ) {
$tags_text = "
$tags_text";
}
-$total_comments = sprintf( __( '%1$s total' ), number_format_i18n($num_comm['total_comments']) );
-$approved_comments = sprintf( __( '%1$s approved' ), number_format_i18n($num_comm['approved']) );
-$spam_comments = sprintf( __( '%1$s spam' ), number_format_i18n($num_comm['spam']) );
-$moderated_comments = sprintf( __( '%1$s awaiting moderation' ), number_format_i18n($num_comm['awaiting_moderation']) );
+$total_comments = sprintf( __ngettext( '%1$s total', '%1$s total', $num_comm['total_comments'] ), number_format_i18n($num_comm['total_comments']) );
+$approved_comments = sprintf( __ngettext( '%1$s approved', '%1$s approved', $num_comm['approved'] ), number_format_i18n($num_comm['approved']) );
+$spam_comments = sprintf( __ngettext( '%1$s spam', '%1$s spam', $num_comm['spam'] ), number_format_i18n($num_comm['spam']) );
+$moderated_comments = sprintf( __ngettext( '%1$s awaiting moderation', '%1$s awaiting moderation', $num_comm['awaiting_moderation'] ), number_format_i18n($num_comm['awaiting_moderation']) );
if( current_user_can( 'moderate_comments' ) ) {
$total_comments = "
{$total_comments}";
@@ -102,7 +102,7 @@ if( current_user_can( 'moderate_comments' ) ) {
$moderated_comments = "
{$moderated_comments}";
}
-$comm_text = sprintf( __( 'You have %1$s comments, %2$s, %3$s and %4$s.' ), $total_comments, $approved_comments, $spam_comments, $moderated_comments );
+$comm_text = sprintf( __ngettext( 'You have %1$s comment, %2$s, %3$s and %4$s.', 'You have %1$s comments, %2$s, %3$s and %4$s.', $num_comm['total_comments'] ), $total_comments, $approved_comments, $spam_comments, $moderated_comments );
$post_type_text = implode(', ', $post_type_texts);
diff --git a/wp-admin/press-this.php b/wp-admin/press-this.php
index eec40df668..8365cfd9fa 100644
--- a/wp-admin/press-this.php
+++ b/wp-admin/press-this.php
@@ -90,7 +90,7 @@ if ( 'post' == $_REQUEST['action'] ) {
-
+
- 
+

-
Insert Image | Cancel
+
|
-