Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(245)

Side by Side Diff: chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc

Issue 2690263002: MD Settings: add empty list message for spell-check edit page. (Closed)
Patch Set: fix 80 col Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/settings/md_settings_localized_strings_provide r.h" 5 #include "chrome/browser/ui/webui/settings/md_settings_localized_strings_provide r.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/i18n/number_formatting.h" 10 #include "base/i18n/number_formatting.h"
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
968 {"spellCheckSummaryThreeLanguages", 968 {"spellCheckSummaryThreeLanguages",
969 IDS_SETTINGS_LANGUAGES_SPELL_CHECK_SUMMARY_THREE_LANGUAGES}, 969 IDS_SETTINGS_LANGUAGES_SPELL_CHECK_SUMMARY_THREE_LANGUAGES},
970 {"spellCheckSummaryMultipleLanguages", 970 {"spellCheckSummaryMultipleLanguages",
971 IDS_SETTINGS_LANGUAGES_SPELL_CHECK_SUMMARY_MULTIPLE_LANGUAGES}, 971 IDS_SETTINGS_LANGUAGES_SPELL_CHECK_SUMMARY_MULTIPLE_LANGUAGES},
972 {"manageSpellCheck", IDS_SETTINGS_LANGUAGES_SPELL_CHECK_MANAGE}, 972 {"manageSpellCheck", IDS_SETTINGS_LANGUAGES_SPELL_CHECK_MANAGE},
973 {"editDictionaryPageTitle", IDS_SETTINGS_LANGUAGES_EDIT_DICTIONARY_TITLE}, 973 {"editDictionaryPageTitle", IDS_SETTINGS_LANGUAGES_EDIT_DICTIONARY_TITLE},
974 {"addDictionaryWordLabel", IDS_SETTINGS_LANGUAGES_ADD_DICTIONARY_WORD}, 974 {"addDictionaryWordLabel", IDS_SETTINGS_LANGUAGES_ADD_DICTIONARY_WORD},
975 {"addDictionaryWordButton", 975 {"addDictionaryWordButton",
976 IDS_SETTINGS_LANGUAGES_ADD_DICTIONARY_WORD_BUTTON}, 976 IDS_SETTINGS_LANGUAGES_ADD_DICTIONARY_WORD_BUTTON},
977 {"customDictionaryWords", IDS_SETTINGS_LANGUAGES_DICTIONARY_WORDS}, 977 {"customDictionaryWords", IDS_SETTINGS_LANGUAGES_DICTIONARY_WORDS},
978 {"noCustomDictionaryWordsFound",
979 IDS_SETTINGS_LANGUAGES_DICTIONARY_WORDS_NONE},
978 #endif 980 #endif
979 }; 981 };
980 AddLocalizedStringsBulk(html_source, localized_strings, 982 AddLocalizedStringsBulk(html_source, localized_strings,
981 arraysize(localized_strings)); 983 arraysize(localized_strings));
982 984
983 #if defined(OS_CHROMEOS) 985 #if defined(OS_CHROMEOS)
984 // Only the Chrome OS help article explains how language order affects website 986 // Only the Chrome OS help article explains how language order affects website
985 // language. 987 // language.
986 html_source->AddString( 988 html_source->AddString(
987 "languagesLearnMoreURL", 989 "languagesLearnMoreURL",
(...skipping 916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1904 1906
1905 #if defined(OS_CHROMEOS) 1907 #if defined(OS_CHROMEOS)
1906 chromeos::network_element::AddLocalizedStrings(html_source); 1908 chromeos::network_element::AddLocalizedStrings(html_source);
1907 #endif 1909 #endif
1908 policy_indicator::AddLocalizedStrings(html_source); 1910 policy_indicator::AddLocalizedStrings(html_source);
1909 1911
1910 html_source->SetJsonPath(kLocalizedStringsFile); 1912 html_source->SetJsonPath(kLocalizedStringsFile);
1911 } 1913 }
1912 1914
1913 } // namespace settings 1915 } // namespace settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698