summaryrefslogtreecommitdiffstats
path: root/app/l10n_util.cc
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 21:23:18 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 21:23:18 +0000
commit31caf9184f97fc3a45eeac0d7fe869e261997e65 (patch)
treeac08dfc73e4ff037488c14107c17091d379fbfee /app/l10n_util.cc
parentad05af6e6f231a8e4283e13c8f7652454c223cc1 (diff)
downloadchromium_src-31caf9184f97fc3a45eeac0d7fe869e261997e65.zip
chromium_src-31caf9184f97fc3a45eeac0d7fe869e261997e65.tar.gz
chromium_src-31caf9184f97fc3a45eeac0d7fe869e261997e65.tar.bz2
Add general options page. Options are working with the following exceptions:
Custom start urls and default search options widgets aren't hooked up. Home page settings work, but are overridden by the linux start page settings. Default browser checking/setting functions are not implemented, so the option isn't useful yet. Refactors some common code out of browser/views/options/options_page_view.* into browser/options_page_base.{cc,h} BUG=11507 Patch by Matt Mueller (mattm@google.com). Review URL: http://codereview.chromium.org/113967 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17115 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/l10n_util.cc')
-rw-r--r--app/l10n_util.cc5
1 files changed, 5 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,