diff options
author | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 23:05:02 +0000 |
---|---|---|
committer | gregoryd@google.com <gregoryd@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-07 23:05:02 +0000 |
commit | dfdfad0c7f19b5f9e3bc9e174d0ecf40b4351c5d (patch) | |
tree | cabc1161fc9b2aac5d6c01b70833aa005faef08e /app/l10n_util_dummy.cc | |
parent | 192745015c18e59970b382d69371d46eb15390ed (diff) | |
download | chromium_src-dfdfad0c7f19b5f9e3bc9e174d0ecf40b4351c5d.zip chromium_src-dfdfad0c7f19b5f9e3bc9e174d0ecf40b4351c5d.tar.gz chromium_src-dfdfad0c7f19b5f9e3bc9e174d0ecf40b4351c5d.tar.bz2 |
Split app.gyp and add a Win64 version of the app_base target.
This is required for supporting NaCl on 64-bit Windows
TEST=none
BUG=28176
Review URL: http://codereview.chromium.org/460083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34009 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app/l10n_util_dummy.cc')
-rw-r--r-- | app/l10n_util_dummy.cc | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/app/l10n_util_dummy.cc b/app/l10n_util_dummy.cc new file mode 100644 index 0000000..749ecb4 --- /dev/null +++ b/app/l10n_util_dummy.cc @@ -0,0 +1,27 @@ +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "app/l10n_util.h" + +#include "app/resource_bundle.h" +#include "base/command_line.h" +#include "base/string16.h" +#include "base/string_piece.h" +#include "base/string_util.h" +#include "base/sys_string_conversions.h" +#include "build/build_config.h" +#include "unicode/uscript.h" + + +namespace l10n_util { + +// Represents the locale-specific text direction. +static TextDirection g_text_direction = UNKNOWN_DIRECTION; + +std::wstring GetString(int message_id) { + ResourceBundle& rb = ResourceBundle::GetSharedInstance(); + return UTF16ToWide(rb.GetLocalizedString(message_id)); +} + +} // namespace l10n_util |