OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "app/l10n_util.h" | |
6 | |
7 #include "app/resource_bundle.h" | 5 #include "app/resource_bundle.h" |
8 #include "base/command_line.h" | 6 #include "base/command_line.h" |
9 #include "base/string16.h" | 7 #include "base/string16.h" |
10 #include "base/string_piece.h" | 8 #include "base/string_piece.h" |
11 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
12 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
13 #include "build/build_config.h" | 11 #include "build/build_config.h" |
14 #include "unicode/uscript.h" | 12 #include "unicode/uscript.h" |
15 | 13 |
16 | 14 |
17 namespace l10n_util { | 15 namespace l10n_util { |
18 | 16 |
19 std::wstring GetString(int message_id) { | 17 std::wstring GetString(int message_id) { |
20 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); | 18 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); |
21 return UTF16ToWide(rb.GetLocalizedString(message_id)); | 19 return UTF16ToWide(rb.GetLocalizedString(message_id)); |
22 } | 20 } |
23 | 21 |
24 } // namespace l10n_util | 22 } // namespace l10n_util |
OLD | NEW |