OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/options/language_options_handler_common.h" | 5 #include "chrome/browser/ui/webui/options/language_options_handler_common.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 { "enableSpellCheck", IDS_OPTIONS_ENABLE_SPELLCHECK }, | 69 { "enableSpellCheck", IDS_OPTIONS_ENABLE_SPELLCHECK }, |
70 { "enableAutoSpellCorrection", | 70 { "enableAutoSpellCorrection", |
71 IDS_OPTIONS_ENABLE_AUTO_SPELL_CORRECTION }, | 71 IDS_OPTIONS_ENABLE_AUTO_SPELL_CORRECTION }, |
72 { "downloadingDictionary", IDS_OPTIONS_DICTIONARY_DOWNLOADING }, | 72 { "downloadingDictionary", IDS_OPTIONS_DICTIONARY_DOWNLOADING }, |
73 { "downloadFailed", IDS_OPTIONS_DICTIONARY_DOWNLOAD_FAILED }, | 73 { "downloadFailed", IDS_OPTIONS_DICTIONARY_DOWNLOAD_FAILED }, |
74 { "retryButton", IDS_OPTIONS_DICTIONARY_DOWNLOAD_RETRY }, | 74 { "retryButton", IDS_OPTIONS_DICTIONARY_DOWNLOAD_RETRY }, |
75 { "downloadFailHelp", IDS_OPTIONS_DICTIONARY_DOWNLOAD_FAIL_HELP }, | 75 { "downloadFailHelp", IDS_OPTIONS_DICTIONARY_DOWNLOAD_FAIL_HELP }, |
76 #endif // !OS_MACOSX | 76 #endif // !OS_MACOSX |
77 { "addLanguageTitle", IDS_OPTIONS_LANGUAGES_ADD_TITLE }, | 77 { "addLanguageTitle", IDS_OPTIONS_LANGUAGES_ADD_TITLE }, |
78 { "addLanguageSelectLabel", IDS_OPTIONS_LANGUAGES_ADD_SELECT_LABEL }, | 78 { "addLanguageSelectLabel", IDS_OPTIONS_LANGUAGES_ADD_SELECT_LABEL }, |
79 { "restartButton", IDS_OPTIONS_SETTINGS_LANGUAGES_RELAUNCH_BUTTON } | 79 { "restartButton", IDS_OPTIONS_SETTINGS_LANGUAGES_RELAUNCH_BUTTON }, |
| 80 { "dontTranslateInThisLanguage", |
| 81 IDS_OPTIONS_LANGUAGES_DONT_TRANSLATE_IN_THIS_LANGUAGE }, |
80 }; | 82 }; |
81 | 83 |
82 #if defined(ENABLE_SETTINGS_APP) | 84 #if defined(ENABLE_SETTINGS_APP) |
83 static OptionsStringResource app_resources[] = { | 85 static OptionsStringResource app_resources[] = { |
84 { "cannotBeDisplayedInThisLanguage", | 86 { "cannotBeDisplayedInThisLanguage", |
85 IDS_OPTIONS_SETTINGS_LANGUAGES_CANNOT_BE_DISPLAYED_IN_THIS_LANGUAGE, | 87 IDS_OPTIONS_SETTINGS_LANGUAGES_CANNOT_BE_DISPLAYED_IN_THIS_LANGUAGE, |
86 IDS_SETTINGS_APP_LAUNCHER_PRODUCT_NAME }, | 88 IDS_SETTINGS_APP_LAUNCHER_PRODUCT_NAME }, |
87 { "isDisplayedInThisLanguage", | 89 { "isDisplayedInThisLanguage", |
88 IDS_OPTIONS_SETTINGS_LANGUAGES_IS_DISPLAYED_IN_THIS_LANGUAGE, | 90 IDS_OPTIONS_SETTINGS_LANGUAGES_IS_DISPLAYED_IN_THIS_LANGUAGE, |
89 IDS_SETTINGS_APP_LAUNCHER_PRODUCT_NAME }, | 91 IDS_SETTINGS_APP_LAUNCHER_PRODUCT_NAME }, |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 } | 234 } |
233 | 235 |
234 base::WeakPtr<SpellcheckHunspellDictionary>& | 236 base::WeakPtr<SpellcheckHunspellDictionary>& |
235 LanguageOptionsHandlerCommon::GetHunspellDictionary() { | 237 LanguageOptionsHandlerCommon::GetHunspellDictionary() { |
236 if (!hunspell_dictionary_.get()) | 238 if (!hunspell_dictionary_.get()) |
237 RefreshHunspellDictionary(); | 239 RefreshHunspellDictionary(); |
238 return hunspell_dictionary_; | 240 return hunspell_dictionary_; |
239 } | 241 } |
240 | 242 |
241 } // namespace options | 243 } // namespace options |
OLD | NEW |