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

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

Issue 2716233002: MD Settings: add "More actions..." text to all vertical 3-dot menus (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/browser/resources/settings/site_settings/usb_devices.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 {"basicPageTitle", IDS_SETTINGS_BASIC}, 74 {"basicPageTitle", IDS_SETTINGS_BASIC},
75 {"cancel", IDS_CANCEL}, 75 {"cancel", IDS_CANCEL},
76 {"close", IDS_CLOSE}, 76 {"close", IDS_CLOSE},
77 {"confirm", IDS_CONFIRM}, 77 {"confirm", IDS_CONFIRM},
78 {"controlledByExtension", IDS_SETTINGS_CONTROLLED_BY_EXTENSION}, 78 {"controlledByExtension", IDS_SETTINGS_CONTROLLED_BY_EXTENSION},
79 {"disable", IDS_DISABLE}, 79 {"disable", IDS_DISABLE},
80 {"done", IDS_DONE}, 80 {"done", IDS_DONE},
81 {"edit", IDS_SETTINGS_EDIT}, 81 {"edit", IDS_SETTINGS_EDIT},
82 {"learnMore", IDS_LEARN_MORE}, 82 {"learnMore", IDS_LEARN_MORE},
83 {"menuButtonLabel", IDS_SETTINGS_MENU_BUTTON_LABEL}, 83 {"menuButtonLabel", IDS_SETTINGS_MENU_BUTTON_LABEL},
84 {"moreActions", IDS_SETTINGS_MORE_ACTIONS},
84 {"ok", IDS_OK}, 85 {"ok", IDS_OK},
85 {"restart", IDS_SETTINGS_RESTART}, 86 {"restart", IDS_SETTINGS_RESTART},
86 {"save", IDS_SAVE}, 87 {"save", IDS_SAVE},
87 {"settings", IDS_SETTINGS_SETTINGS}, 88 {"settings", IDS_SETTINGS_SETTINGS},
88 }; 89 };
89 AddLocalizedStringsBulk(html_source, localized_strings, 90 AddLocalizedStringsBulk(html_source, localized_strings,
90 arraysize(localized_strings)); 91 arraysize(localized_strings));
91 92
92 html_source->AddBoolean( 93 html_source->AddBoolean(
93 "isGuest", 94 "isGuest",
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 {"onStartupEditPage", IDS_SETTINGS_ON_STARTUP_EDIT_PAGE}, 1024 {"onStartupEditPage", IDS_SETTINGS_ON_STARTUP_EDIT_PAGE},
1024 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL}, 1025 {"onStartupSiteUrl", IDS_SETTINGS_ON_STARTUP_SITE_URL},
1025 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE}, 1026 {"onStartupRemove", IDS_SETTINGS_ON_STARTUP_REMOVE},
1026 }; 1027 };
1027 AddLocalizedStringsBulk(html_source, localized_strings, 1028 AddLocalizedStringsBulk(html_source, localized_strings,
1028 arraysize(localized_strings)); 1029 arraysize(localized_strings));
1029 } 1030 }
1030 1031
1031 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) { 1032 void AddPasswordsAndFormsStrings(content::WebUIDataSource* html_source) {
1032 LocalizedString localized_strings[] = { 1033 LocalizedString localized_strings[] = {
1033 {"overflowMenu", IDS_SETTINGS_OVERFLOW_MENU},
1034 {"passwordsAndAutofillPageTitle", 1034 {"passwordsAndAutofillPageTitle",
1035 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE}, 1035 IDS_SETTINGS_PASSWORDS_AND_AUTOFILL_PAGE_TITLE},
1036 {"autofill", IDS_SETTINGS_AUTOFILL}, 1036 {"autofill", IDS_SETTINGS_AUTOFILL},
1037 {"googlePayments", IDS_SETTINGS_GOOGLE_PAYMENTS}, 1037 {"googlePayments", IDS_SETTINGS_GOOGLE_PAYMENTS},
1038 {"googlePaymentsCached", IDS_SETTINGS_GOOGLE_PAYMENTS_CACHED}, 1038 {"googlePaymentsCached", IDS_SETTINGS_GOOGLE_PAYMENTS_CACHED},
1039 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING}, 1039 {"addresses", IDS_SETTINGS_AUTOFILL_ADDRESSES_HEADING},
1040 {"addAddressTitle", IDS_SETTINGS_AUTOFILL_ADDRESSES_ADD_TITLE}, 1040 {"addAddressTitle", IDS_SETTINGS_AUTOFILL_ADDRESSES_ADD_TITLE},
1041 {"editAddressTitle", IDS_SETTINGS_AUTOFILL_ADDRESSES_EDIT_TITLE}, 1041 {"editAddressTitle", IDS_SETTINGS_AUTOFILL_ADDRESSES_EDIT_TITLE},
1042 {"addressCountry", IDS_SETTINGS_AUTOFILL_ADDRESSES_COUNTRY}, 1042 {"addressCountry", IDS_SETTINGS_AUTOFILL_ADDRESSES_COUNTRY},
1043 {"addressPhone", IDS_SETTINGS_AUTOFILL_ADDRESSES_PHONE}, 1043 {"addressPhone", IDS_SETTINGS_AUTOFILL_ADDRESSES_PHONE},
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
1950 1950
1951 #if defined(OS_CHROMEOS) 1951 #if defined(OS_CHROMEOS)
1952 chromeos::network_element::AddLocalizedStrings(html_source); 1952 chromeos::network_element::AddLocalizedStrings(html_source);
1953 #endif 1953 #endif
1954 policy_indicator::AddLocalizedStrings(html_source); 1954 policy_indicator::AddLocalizedStrings(html_source);
1955 1955
1956 html_source->SetJsonPath(kLocalizedStringsFile); 1956 html_source->SetJsonPath(kLocalizedStringsFile);
1957 } 1957 }
1958 1958
1959 } // namespace settings 1959 } // namespace settings
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/site_settings/usb_devices.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698