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

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

Issue 1107273002: Use the new ICU plural syntax to fix the strings in the hung pages dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: grd descriptions 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 | « chrome/browser/ui/views/hung_renderer_view.cc ('k') | ui/base/l10n/l10n_util_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/l10n/l10n_util_mac.h
diff --git a/ui/base/l10n/l10n_util_mac.h b/ui/base/l10n/l10n_util_mac.h
index 74bc58b49351d381ead9fd6cac35b74773e54808..c1ef16389fda333b579a7494f7251c78796f1c83 100644
--- a/ui/base/l10n/l10n_util_mac.h
+++ b/ui/base/l10n/l10n_util_mac.h
@@ -72,6 +72,12 @@ UI_BASE_EXPORT NSString* GetNSStringFWithFixup(int message_id,
const base::string16& c,
const base::string16& d);
+// 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 NSString* GetPluralNSStringF(int message_id, int number);
+
// Support the override of the locale with the value from Cocoa.
UI_BASE_EXPORT void OverrideLocaleWithCocoaLocale();
UI_BASE_EXPORT const std::string& GetLocaleOverride();
« no previous file with comments | « chrome/browser/ui/views/hung_renderer_view.cc ('k') | ui/base/l10n/l10n_util_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698