summaryrefslogtreecommitdiffstats
path: root/app/l10n_util.cc
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 07:49:53 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-17 07:49:53 +0000
commit2e59325fed2416cd23d0b418cd46e302148aa584 (patch)
tree12a5fa4d92c38c32b4e03a8df4a55a8688f1e449 /app/l10n_util.cc
parent3e52d7d6df02b80809826c8a68b897d337ec8f94 (diff)
downloadchromium_src-2e59325fed2416cd23d0b418cd46e302148aa584.zip
chromium_src-2e59325fed2416cd23d0b418cd46e302148aa584.tar.gz
chromium_src-2e59325fed2416cd23d0b418cd46e302148aa584.tar.bz2
Translate: Move label parsing logic into common code.
* Add a string16 & Cocoa version of GetStringF(). * Move logic for parsing translate infobar label into translate_infobars_delegates. * Make views variant of translate infobars use new code. BUG=34466 TEST=Translate infobars should continue to workon Windows. Review URL: http://codereview.chromium.org/597042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39206 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/l10n_util.cc')
-rw-r--r--app/l10n_util.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/l10n_util.cc b/app/l10n_util.cc
index 1feb09d..8d418d2 100644
--- a/app/l10n_util.cc
+++ b/app/l10n_util.cc
@@ -705,6 +705,13 @@ std::wstring GetStringF(int message_id,
string16(), string16(), offsets));
}
+string16 GetStringFUTF16(int message_id,
+ const string16& a,
+ const string16& b,
+ std::vector<size_t>* offsets) {
+ return GetStringF(message_id, a, b, string16(), string16(), offsets);
+}
+
std::wstring GetStringF(int message_id, int a) {
return GetStringF(message_id, IntToWString(a));
}