summaryrefslogtreecommitdiffstats
path: root/src/core/content_client_qt.cpp
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2013-12-02 18:23:45 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-12-03 11:57:52 +0100
commit3e635f23d06a622db23c7d3e99cae574735534d9 (patch)
treea057592ee2170d096620e6f3ccf37a37bba4c531 /src/core/content_client_qt.cpp
parent430f202718f7311c541a7243870719e2df456f2f (diff)
Get localized strings in the render process
Building on top of the repacking of .pak files, we now ship the whole array of repacked locales and pick the appropriate one at runtime. Change-Id: I0096e3eac6a1fc83885fd11e0fa55a746f8e45d8 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/core/content_client_qt.cpp')
-rw-r--r--src/core/content_client_qt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/content_client_qt.cpp b/src/core/content_client_qt.cpp
index 46a3e9870..6a52cb5d4 100644
--- a/src/core/content_client_qt.cpp
+++ b/src/core/content_client_qt.cpp
@@ -43,8 +43,14 @@
#include "base/strings/string_piece.h"
#include "ui/base/layout.h"
+#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
base::StringPiece ContentClientQt::GetDataResource(int resource_id, ui::ScaleFactor scale_factor) const {
return ResourceBundle::GetSharedInstance().GetRawDataResourceForScale(resource_id, scale_factor);
}
+
+base::string16 ContentClientQt::GetLocalizedString(int message_id) const
+{
+ return l10n_util::GetStringUTF16(message_id);
+}