summaryrefslogtreecommitdiffstats
path: root/chrome/common/l10n_util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/common/l10n_util.cc')
-rw-r--r--chrome/common/l10n_util.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/chrome/common/l10n_util.cc b/chrome/common/l10n_util.cc
index dbe34c7..a8749c8 100644
--- a/chrome/common/l10n_util.cc
+++ b/chrome/common/l10n_util.cc
@@ -17,9 +17,11 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/gfx/chrome_canvas.h"
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
// TODO(port): re-enable.
#include "chrome/common/resource_bundle.h"
+#endif
+#if defined(OS_WIN)
#include "chrome/views/view.h"
#endif // defined(OS_WIN)
#include "unicode/coll.h"
@@ -325,7 +327,7 @@ std::wstring GetLocalName(const std::wstring& locale_code_wstr,
}
std::wstring GetString(int message_id) {
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
ResourceBundle &rb = ResourceBundle::GetSharedInstance();
return rb.GetLocalizedString(message_id);
#else
@@ -341,7 +343,7 @@ static std::wstring GetStringF(int message_id,
const std::wstring& c,
const std::wstring& d,
std::vector<size_t>* offsets) {
-#if defined(OS_WIN)
+#if defined(OS_WIN) || defined(OS_LINUX)
// TODO(port): re-enable.
const std::wstring& format_string = GetString(message_id);
std::wstring formatted = ReplaceStringPlaceholders(format_string, a, b, c,