Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(108)

Unified Diff: ui/base/l10n/l10n_util.cc

Issue 2002783002: Use plural formats and native digits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: plural: use "=1" instead of "one" for pop-up block infobar Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/l10n/l10n_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util.cc
diff --git a/ui/base/l10n/l10n_util.cc b/ui/base/l10n/l10n_util.cc
index 9dfe573dc43c8377060850ef1aff5f7bdea8359d..5323fdfccab1e871a4150e66fd71df5b9e3e1756 100644
--- a/ui/base/l10n/l10n_util.cc
+++ b/ui/base/l10n/l10n_util.cc
@@ -15,6 +15,7 @@
#include "base/files/file_util.h"
#include "base/i18n/file_util_icu.h"
#include "base/i18n/message_formatter.h"
+#include "base/i18n/number_formatting.h"
#include "base/i18n/rtl.h"
#include "base/i18n/string_compare.h"
#include "base/lazy_instance.h"
@@ -830,11 +831,11 @@ base::string16 GetStringFUTF16(int message_id,
}
base::string16 GetStringFUTF16Int(int message_id, int a) {
- return GetStringFUTF16(message_id, base::UTF8ToUTF16(base::IntToString(a)));
+ return GetStringFUTF16(message_id, base::FormatNumber(a));
}
base::string16 GetStringFUTF16Int(int message_id, int64_t a) {
- return GetStringFUTF16(message_id, base::UTF8ToUTF16(base::Int64ToString(a)));
+ return GetStringFUTF16(message_id, base::FormatNumber(a));
}
base::string16 GetPluralStringFUTF16(int message_id, int number) {
« no previous file with comments | « ui/base/l10n/l10n_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698