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/app_switches.h" | |
11 #include "app/l10n_util_collator.h" | 10 #include "app/l10n_util_collator.h" |
12 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
13 #include "base/command_line.h" | 12 #include "base/command_line.h" |
14 #include "base/file_util.h" | 13 #include "base/file_util.h" |
15 #include "base/i18n/file_util_icu.h" | 14 #include "base/i18n/file_util_icu.h" |
16 #include "base/i18n/rtl.h" | 15 #include "base/i18n/rtl.h" |
17 #include "base/path_service.h" | 16 #include "base/path_service.h" |
18 #include "base/scoped_ptr.h" | 17 #include "base/scoped_ptr.h" |
19 #include "base/string16.h" | 18 #include "base/string16.h" |
20 #include "base/string_piece.h" | 19 #include "base/string_piece.h" |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 for (size_t i = 0; i < arraysize(kAcceptLanguageList); ++i) { | 852 for (size_t i = 0; i < arraysize(kAcceptLanguageList); ++i) { |
854 if (!IsLocaleNameTranslated(kAcceptLanguageList[i], display_locale)) | 853 if (!IsLocaleNameTranslated(kAcceptLanguageList[i], display_locale)) |
855 // 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 |
856 // enclosed by brackets instead of skipping. | 855 // enclosed by brackets instead of skipping. |
857 continue; | 856 continue; |
858 locale_codes->push_back(kAcceptLanguageList[i]); | 857 locale_codes->push_back(kAcceptLanguageList[i]); |
859 } | 858 } |
860 } | 859 } |
861 | 860 |
862 } // namespace l10n_util | 861 } // namespace l10n_util |
OLD | NEW |