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

Side by Side Diff: chrome/browser/ui/webui/chromeos/network_element_localized_strings_provider.cc

Issue 2627023006: WebUI: Remove i18n from cr_elements/network (Closed)
Patch Set: Allow <if> in settings_ui.html Created 3 years, 11 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/webui/chromeos/network_element_localized_strings_pro vider.h"
6
7 #include "build/build_config.h"
8 #include "chrome/grit/generated_resources.h"
9 #include "content/public/browser/web_ui_data_source.h"
10
11 namespace chromeos {
12 namespace network_element {
13
14 void AddLocalizedStrings(content::WebUIDataSource* html_source) {
15 struct {
16 const char* name;
17 int id;
18 } localized_strings[] = {
19 {"OncTypeCellular", IDS_NETWORK_TYPE_CELLULAR},
20 {"OncTypeEthernet", IDS_NETWORK_TYPE_ETHERNET},
21 {"OncTypeVPN", IDS_NETWORK_TYPE_VPN},
22 {"OncTypeWiFi", IDS_NETWORK_TYPE_WIFI},
23 {"OncTypeWiMAX", IDS_NETWORK_TYPE_WIMAX},
24 {"networkDisabled", IDS_NETWORK_LIST_DISABLED},
25 {"networkListItemConnected", IDS_NETWORK_LIST_CONNECTED},
26 {"networkListItemConnecting", IDS_NETWORK_LIST_CONNECTING},
27 {"networkListItemNotConnected", IDS_NETWORK_LIST_NOT_CONNECTED},
28 {"vpnNameTemplate", IDS_NETWORK_LIST_THIRD_PARTY_VPN_NAME_TEMPLATE},
29 };
30 for (const auto& entry : localized_strings)
31 html_source->AddLocalizedString(entry.name, entry.id);
32 }
33
34 } // namespace network_element
35 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698