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

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

Issue 1049513002: Use the ICU syntax message for plural formatting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios whitelist update Created 5 years, 8 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/formatter.cc ('k') | ui/base/l10n/l10n_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util.h
diff --git a/ui/base/l10n/l10n_util.h b/ui/base/l10n/l10n_util.h
index c957c3ea2650908e5327648719ac1454adf3b69a..505ebd3a41fdf3f6a8cd1a1c3a70106f3a78e93e 100644
--- a/ui/base/l10n/l10n_util.h
+++ b/ui/base/l10n/l10n_util.h
@@ -162,15 +162,12 @@ UI_BASE_EXPORT base::string16 GetStringFUTF16(int message_id,
UI_BASE_EXPORT base::string16 GetStringFUTF16Int(int message_id, int a);
base::string16 GetStringFUTF16Int(int message_id, int64 a);
-// Get a resource string using |number| to decide which of |message_ids| should
-// be used. |message_ids| must be size 6 and in order: default, singular, zero,
-// two, few, many.
-UI_BASE_EXPORT base::string16 GetPluralStringFUTF16(
- const std::vector<int>& message_ids,
- int number);
-UI_BASE_EXPORT std::string GetPluralStringFUTF8(
- const std::vector<int>& message_ids,
- int number);
+// Get a resource string using |number| with a locale-specific plural rule.
+// |message_id| points to a message in the ICU syntax.
+// See http://userguide.icu-project.org/formatparse/messages and
+// go/plurals (Google internal).
+UI_BASE_EXPORT base::string16 GetPluralStringFUTF16(int message_id, int number);
+UI_BASE_EXPORT std::string GetPluralStringFUTF8(int message_id, int number);
// In place sorting of base::string16 strings using collation rules for
// |locale|.
« no previous file with comments | « ui/base/l10n/formatter.cc ('k') | ui/base/l10n/l10n_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698