OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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" | 5 #include "app/l10n_util.h" |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 | 8 |
9 #include "app/app_paths.h" | 9 #include "app/app_paths.h" |
10 #include "app/l10n_util_collator.h" | 10 #include "app/l10n_util_collator.h" |
11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/i18n/file_util_icu.h" | 14 #include "base/i18n/file_util_icu.h" |
15 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
16 #include "base/path_service.h" | 16 #include "base/path_service.h" |
17 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
18 #include "base/string16.h" | 18 #include "base/string16.h" |
19 #include "base/string_number_conversions.h" | 19 #include "base/string_number_conversions.h" |
| 20 #include "base/string_split.h" |
20 #include "base/sys_string_conversions.h" | 21 #include "base/sys_string_conversions.h" |
21 #include "base/utf_string_conversions.h" | 22 #include "base/utf_string_conversions.h" |
22 #include "build/build_config.h" | 23 #include "build/build_config.h" |
23 #include "gfx/canvas.h" | 24 #include "gfx/canvas.h" |
24 #include "unicode/rbbi.h" | 25 #include "unicode/rbbi.h" |
25 | 26 |
26 #if defined(OS_MACOSX) | 27 #if defined(OS_MACOSX) |
27 #include "app/l10n_util_mac.h" | 28 #include "app/l10n_util_mac.h" |
28 #endif | 29 #endif |
29 | 30 |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
863 for (size_t i = 0; i < arraysize(kAcceptLanguageList); ++i) { | 864 for (size_t i = 0; i < arraysize(kAcceptLanguageList); ++i) { |
864 if (!IsLocaleNameTranslated(kAcceptLanguageList[i], display_locale)) | 865 if (!IsLocaleNameTranslated(kAcceptLanguageList[i], display_locale)) |
865 // TODO(jungshik) : Put them at the of the list with language codes | 866 // TODO(jungshik) : Put them at the of the list with language codes |
866 // enclosed by brackets instead of skipping. | 867 // enclosed by brackets instead of skipping. |
867 continue; | 868 continue; |
868 locale_codes->push_back(kAcceptLanguageList[i]); | 869 locale_codes->push_back(kAcceptLanguageList[i]); |
869 } | 870 } |
870 } | 871 } |
871 | 872 |
872 } // namespace l10n_util | 873 } // namespace l10n_util |
OLD | NEW |