summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/l10n_util.cc5
-rw-r--r--app/l10n_util.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/app/l10n_util.cc b/app/l10n_util.cc
index 1fb06af..81fb7f4 100644
--- a/app/l10n_util.cc
+++ b/app/l10n_util.cc
@@ -304,6 +304,11 @@ std::string GetStringUTF8(int message_id) {
return UTF16ToUTF8(rb.GetLocalizedString(message_id));
}
+string16 GetStringUTF16(int message_id) {
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ return rb.GetLocalizedString(message_id);
+}
+
static string16 GetStringF(int message_id,
const string16& a,
const string16& b,
diff --git a/app/l10n_util.h b/app/l10n_util.h
index 0fe391c..69d3271 100644
--- a/app/l10n_util.h
+++ b/app/l10n_util.h
@@ -67,6 +67,7 @@ std::wstring GetLocalName(const std::string& locale_code_str,
// Pulls resource string from the string bundle and returns it.
std::wstring GetString(int message_id);
std::string GetStringUTF8(int message_id);
+string16 GetStringUTF16(int message_id);
// Get a resource string and replace $1-$2-$3 with |a| and |b|
// respectively. Additionally, $$ is replaced by $.