diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 21:12:02 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-09 21:12:02 +0000 |
commit | 3e0e269d2f7f92d2409d9e328f678189b158c6b6 (patch) | |
tree | 6f18e76e12d4811599f350307050c7bc86bf9d3a /webkit/glue/localized_strings.cc | |
parent | 0faf0bd93ce937ae915999b694ccf0b59d6c7ce9 (diff) | |
download | chromium_src-3e0e269d2f7f92d2409d9e328f678189b158c6b6.zip chromium_src-3e0e269d2f7f92d2409d9e328f678189b158c6b6.tar.gz chromium_src-3e0e269d2f7f92d2409d9e328f678189b158c6b6.tar.bz2 |
define constants for strings in absence of GRIT machinery on mac&linux as a temporary boostraping measure.
Review URL: http://codereview.chromium.org/1854
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1929 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/localized_strings.cc')
-rw-r--r-- | webkit/glue/localized_strings.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/webkit/glue/localized_strings.cc b/webkit/glue/localized_strings.cc index 094e9c1..d654e93 100644 --- a/webkit/glue/localized_strings.cc +++ b/webkit/glue/localized_strings.cc @@ -29,17 +29,25 @@ #include "IntSize.h" #undef LOG +#include "webkit/glue/glue_util.h" #include "webkit/glue/webkit_glue.h" #include "base/logging.h" #include "base/string_util.h" +#include "build/build_config.h" +#if defined(OS_WIN) #include "webkit_strings.h" +#else +// TODO:(pinkerton): only windows has the GRIT machinery, so we've created a +// temporary generated header until we can figure out the l10n strategy. +#include "bogus_webkit_strings.h" +#endif using namespace WebCore; inline String GetLocalizedString(int message_id) { const std::wstring& str(webkit_glue::GetLocalizedString(message_id)); - return String(str.c_str()); + return webkit_glue::StdWStringToString(str); } String WebCore::searchableIndexIntroduction() { |