| 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/sys_string_conversions.h" | 20 #include "base/sys_string_conversions.h" |
| 21 #include "base/utf_string_conversions.h" |
| 21 #include "build/build_config.h" | 22 #include "build/build_config.h" |
| 22 #include "gfx/canvas.h" | 23 #include "gfx/canvas.h" |
| 23 #include "unicode/rbbi.h" | 24 #include "unicode/rbbi.h" |
| 24 | 25 |
| 25 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
| 26 #include "app/l10n_util_mac.h" | 27 #include "app/l10n_util_mac.h" |
| 27 #endif | 28 #endif |
| 28 | 29 |
| 29 // TODO(playmobil): remove this undef once SkPostConfig.h is fixed. | 30 // TODO(playmobil): remove this undef once SkPostConfig.h is fixed. |
| 30 // skia/include/corecg/SkPostConfig.h #defines strcasecmp() so we can't use | 31 // skia/include/corecg/SkPostConfig.h #defines strcasecmp() so we can't use |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 for (size_t i = 0; i < arraysize(kAcceptLanguageList); ++i) { | 852 for (size_t i = 0; i < arraysize(kAcceptLanguageList); ++i) { |
| 852 if (!IsLocaleNameTranslated(kAcceptLanguageList[i], display_locale)) | 853 if (!IsLocaleNameTranslated(kAcceptLanguageList[i], display_locale)) |
| 853 // TODO(jungshik) : Put them at the of the list with language codes | 854 // TODO(jungshik) : Put them at the of the list with language codes |
| 854 // enclosed by brackets instead of skipping. | 855 // enclosed by brackets instead of skipping. |
| 855 continue; | 856 continue; |
| 856 locale_codes->push_back(kAcceptLanguageList[i]); | 857 locale_codes->push_back(kAcceptLanguageList[i]); |
| 857 } | 858 } |
| 858 } | 859 } |
| 859 | 860 |
| 860 } // namespace l10n_util | 861 } // namespace l10n_util |
| OLD | NEW |