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 "chrome/browser/renderer_host/translation_service.h" | 5 #include "chrome/browser/renderer_host/translation_service.h" |
6 | 6 |
7 #include "base/json/json_reader.h" | 7 #include "base/json/json_reader.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util-inl.h" |
9 #include "chrome/browser/profile.h" | 9 #include "chrome/browser/profile.h" |
10 #include "chrome/common/render_messages.h" | 10 #include "chrome/common/render_messages.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // The list of languages the Google translation server supports. | 50 // The list of languages the Google translation server supports. |
51 // For information, here is the list of languages that Chrome can be run into | 51 // For information, here is the list of languages that Chrome can be run into |
52 // but that the translation server does not support: | 52 // but that the translation server does not support: |
53 // am Amharic | 53 // am Amharic |
54 // bn Bengali | 54 // bn Bengali |
55 // gu Gujarati | 55 // gu Gujarati |
56 // kn Kannada | 56 // kn Kannada |
57 // ml Malayalam | 57 // ml Malayalam |
58 // mr Marathi | 58 // mr Marathi |
59 // or Oriya | |
60 // ta Tamil | 59 // ta Tamil |
61 // te Telugu | 60 // te Telugu |
62 const char* kSupportedLanguages[] = { | 61 const char* kSupportedLanguages[] = { |
63 "af", // Afrikaans | 62 "af", // Afrikaans |
64 "sq", // Albanian | 63 "sq", // Albanian |
65 "ar", // Arabic | 64 "ar", // Arabic |
66 "be", // Belarusian | 65 "be", // Belarusian |
67 "bg", // Bulgarian | 66 "bg", // Bulgarian |
68 "ca", // Catalan | 67 "ca", // Catalan |
69 "zh-CN", // Chinese (Simplified) | 68 "zh-CN", // Chinese (Simplified) |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 request->append("=1"); | 666 request->append("=1"); |
668 } | 667 } |
669 } | 668 } |
670 // IMPORTANT NOTE: if you make any change below, make sure to reflect them in | 669 // IMPORTANT NOTE: if you make any change below, make sure to reflect them in |
671 // text_param_length_ in TranslationService constructor. | 670 // text_param_length_ in TranslationService constructor. |
672 request->append("&"); | 671 request->append("&"); |
673 request->append(kTextParam); | 672 request->append(kTextParam); |
674 request->append("="); | 673 request->append("="); |
675 request->append(text); | 674 request->append(text); |
676 } | 675 } |
OLD | NEW |