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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_welcome.js

Issue 2796343004: ChromeOS OOBE: cr-network-list strings must be updated on UI language change. (Closed)
Patch Set: Created 3 years, 8 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/chromeos/login/oobe_screen_network.js ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 /** 5 /**
6 * @fileoverview Polymer element for displaying material design OOBE. 6 * @fileoverview Polymer element for displaying material design OOBE.
7 */ 7 */
8 8
9 Polymer({ 9 Polymer({
10 is: 'oobe-welcome-md', 10 is: 'oobe-welcome-md',
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 94
95 /** 95 /**
96 * GUID of the user-selected network. It is remembered after user taps on 96 * GUID of the user-selected network. It is remembered after user taps on
97 * network entry. After we receive event "connected" on this network, 97 * network entry. After we receive event "connected" on this network,
98 * OOBE will proceed. 98 * OOBE will proceed.
99 */ 99 */
100 networkLastSelectedGuid_: '', 100 networkLastSelectedGuid_: '',
101 101
102 /** @override */ 102 /** @override */
103 ready: function() { 103 ready: function() {
104 this.updateLocalizedContent();
105 },
106
107 /**
108 * This is called when UI strings are changed.
109 */
110 updateLocalizedContent: function() {
104 CrOncStrings = { 111 CrOncStrings = {
105 OncTypeCellular: loadTimeData.getString('OncTypeCellular'), 112 OncTypeCellular: loadTimeData.getString('OncTypeCellular'),
106 OncTypeEthernet: loadTimeData.getString('OncTypeEthernet'), 113 OncTypeEthernet: loadTimeData.getString('OncTypeEthernet'),
107 OncTypeVPN: loadTimeData.getString('OncTypeVPN'), 114 OncTypeVPN: loadTimeData.getString('OncTypeVPN'),
108 OncTypeWiFi: loadTimeData.getString('OncTypeWiFi'), 115 OncTypeWiFi: loadTimeData.getString('OncTypeWiFi'),
109 OncTypeWiMAX: loadTimeData.getString('OncTypeWiMAX'), 116 OncTypeWiMAX: loadTimeData.getString('OncTypeWiMAX'),
110 networkDisabled: loadTimeData.getString('networkDisabled'), 117 networkDisabled: loadTimeData.getString('networkDisabled'),
111 networkListItemConnected: 118 networkListItemConnected:
112 loadTimeData.getString('networkListItemConnected'), 119 loadTimeData.getString('networkListItemConnected'),
113 networkListItemConnecting: 120 networkListItemConnecting:
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 * @private 484 * @private
478 */ 485 */
479 onTimezoneSelected_: function(event) { 486 onTimezoneSelected_: function(event) {
480 var item = event.detail; 487 var item = event.detail;
481 if (!item) 488 if (!item)
482 return; 489 return;
483 490
484 this.screen.onTimezoneSelected_(item.value); 491 this.screen.onTimezoneSelected_(item.value);
485 }, 492 },
486 }); 493 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_screen_network.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698