Index: ui/base/l10n/l10n_util.h |
diff --git a/ui/base/l10n/l10n_util.h b/ui/base/l10n/l10n_util.h |
index 4eb6d58114f5a235e64b9a725a6fbd02e19352c9..d2c3f1e8a7e4449c3718549e67930e6be844be98 100644 |
--- a/ui/base/l10n/l10n_util.h |
+++ b/ui/base/l10n/l10n_util.h |
@@ -90,9 +90,17 @@ UI_BASE_EXPORT bool IsValidLocaleSyntax(const std::string& locale); |
// |
// Pulls resource string from the string bundle and returns it. |
+// On Linux, RLM (right-to-left mark) is prepended to the string if |
+// the locale is RTL and the string starts with a strong LTR character |
+// but contains strong RTL characters. These functions require ICU to |
+// be initialized on Linux/Chrome OS. |
UI_BASE_EXPORT std::string GetStringUTF8(int message_id); |
UI_BASE_EXPORT base::string16 GetStringUTF16(int message_id); |
+// The same as above but without any RTL adjustment. Use it for |
+// reading the default value of a preference. |
+UI_BASE_EXPORT std::string GetStringUTF8Raw(int message_id); |
+ |
// Get a resource string and replace $i with replacements[i] for all |
// i < replacements.size(). Additionally, $$ is replaced by $. |
// If non-NULL |offsets| will be replaced with the start points of the replaced |