You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -225,7 +226,10 @@ export class ArduinoFrontendContribution
225
226
if(!window.navigator.onLine){
226
227
// tslint:disable-next-line:max-line-length
227
228
this.messageService.warn(
228
-
'You appear to be offline. Without an Internet connection, the Arduino CLI might not be able to download the required resources and could cause malfunction. Please connect to the Internet and restart the application.'
229
+
nls.localize(
230
+
'arduino/common/offlineIndicator',
231
+
'You appear to be offline. Without an Internet connection, the Arduino CLI might not be able to download the required resources and could cause malfunction. Please connect to the Internet and restart the application.'
232
+
)
229
233
);
230
234
}
231
235
constupdateStatusBar=({
@@ -236,15 +240,22 @@ export class ArduinoFrontendContribution
'True if the user interface automatically scales with the font size.',
53
+
description: nls.localize(
54
+
'arduino/preferences/window.autoScale',
55
+
'True if the user interface automatically scales with the font size.'
56
+
),
44
57
default: true,
45
58
},
46
59
'arduino.window.zoomLevel': {
47
60
type: 'number',
48
-
description:
49
-
'Adjust the zoom level of the window. The original size is 0 and each increment above (e.g. 1) or below (e.g. -1) represents zooming 20% larger or smaller. You can also enter decimals to adjust the zoom level with a finer granularity.',
61
+
description: nls.localize(
62
+
'arduino/preferences/window.zoomLevel',
63
+
'Adjust the zoom level of the window. The original size is 0 and each increment above (e.g. 1) or below (e.g. -1) represents zooming 20% larger or smaller. You can also enter decimals to adjust the zoom level with a finer granularity.'
64
+
),
50
65
default: 0,
51
66
},
52
67
'arduino.ide.autoUpdate': {
53
68
type: 'boolean',
54
-
description:
55
-
'True to enable automatic update checks. The IDE will check for updates automatically and periodically.',
69
+
description: nls.localize(
70
+
'arduino/preferences/ide.autoUpdate',
71
+
'True to enable automatic update checks. The IDE will check for updates automatically and periodically.'
72
+
),
56
73
default: true,
57
74
},
58
75
'arduino.board.certificates': {
59
76
type: 'string',
60
-
description: 'List of certificates that can be uploaded to boards',
77
+
description: nls.localize(
78
+
'arduino/preferences/board.certificates',
79
+
'List of certificates that can be uploaded to boards'
80
+
),
61
81
default: '',
62
82
},
63
83
'arduino.sketchbook.showAllFiles': {
64
84
type: 'boolean',
65
-
description:
66
-
'True to show all sketch files inside the sketch. It is false by default.',
85
+
description: nls.localize(
86
+
'arduino/preferences/sketchbook.showAllFiles',
87
+
'True to show all sketch files inside the sketch. It is false by default.'
88
+
),
67
89
default: false,
68
90
},
69
91
'arduino.cloud.enabled': {
70
92
type: 'boolean',
71
-
description:
72
-
'True if the sketch sync functions are enabled. Defaults to true.',
93
+
description: nls.localize(
94
+
'arduino/preferences/cloud.enabled',
95
+
'True if the sketch sync functions are enabled. Defaults to true.'
96
+
),
73
97
default: true,
74
98
},
75
99
'arduino.cloud.pull.warn': {
76
100
type: 'boolean',
77
-
description:
78
-
'True if users should be warned before pulling a cloud sketch. Defaults to true.',
101
+
description: nls.localize(
102
+
'arduino/preferences/cloud.pull.warn',
103
+
'True if users should be warned before pulling a cloud sketch. Defaults to true.'
104
+
),
79
105
default: true,
80
106
},
81
107
'arduino.cloud.push.warn': {
82
108
type: 'boolean',
83
-
description:
84
-
'True if users should be warned before pushing a cloud sketch. Defaults to true.',
109
+
description: nls.localize(
110
+
'arduino/preferences/cloud.push.warn',
111
+
'True if users should be warned before pushing a cloud sketch. Defaults to true.'
112
+
),
85
113
default: true,
86
114
},
87
115
'arduino.cloud.pushpublic.warn': {
88
116
type: 'boolean',
89
-
description:
90
-
'True if users should be warned before pushing a public sketch to the cloud. Defaults to true.',
117
+
description: nls.localize(
118
+
'arduino/preferences/cloud.pushpublic.warn',
119
+
'True if users should be warned before pushing a public sketch to the cloud. Defaults to true.'
120
+
),
91
121
default: true,
92
122
},
93
123
'arduino.cloud.sketchSyncEnpoint': {
94
124
type: 'string',
95
-
description:
96
-
'The endpoint used to push and pull sketches from a backend. By default it points to Arduino Cloud API.',
125
+
description: nls.localize(
126
+
'arduino/preferences/cloud.sketchSyncEnpoint',
127
+
'The endpoint used to push and pull sketches from a backend. By default it points to Arduino Cloud API.'
128
+
),
97
129
default: 'https://api2.arduino.cc/create',
98
130
},
99
131
'arduino.auth.clientID': {
100
132
type: 'string',
101
-
description: 'The OAuth2 client ID.',
133
+
description: nls.localize(
134
+
'arduino/preferences/auth.clientID',
135
+
'The OAuth2 client ID.'
136
+
),
102
137
default: 'C34Ya6ex77jTNxyKWj01lCe1vAHIaPIo',
103
138
},
104
139
'arduino.auth.domain': {
105
140
type: 'string',
106
-
description: 'The OAuth2 domain.',
141
+
description: nls.localize(
142
+
'arduino/preferences/auth.domain',
143
+
'The OAuth2 domain.'
144
+
),
107
145
default: 'login.arduino.cc',
108
146
},
109
147
'arduino.auth.audience': {
110
148
type: 'string',
111
-
description: 'The 0Auth2 audience.',
149
+
description: nls.localize(
150
+
'arduino/preferences/auth.audience',
151
+
'The OAuth2 audience.'
152
+
),
112
153
default: 'https://api.arduino.cc',
113
154
},
114
155
'arduino.auth.registerUri': {
115
156
type: 'string',
116
-
description: 'The URI used to register a new user.',
`The \`"${candidate.name}${version}"\` core has to be installed for the currently selected \`"${selectedBoard.name}"\` board. Do you want to install it now?`,
88
-
'Install Manually',
89
-
'Yes'
93
+
nls.localize(
94
+
'arduino/board/installNow',
95
+
'The "{0} {1}" core has to be installed for the currently selected "{2}" board. Do you want to install it now?',
96
+
candidate.name,
97
+
version,
98
+
selectedBoard.name
99
+
),
100
+
manualInstall,
101
+
yes
90
102
)
91
103
.then(async(answer)=>{
92
104
constindex=this.notifications.findIndex((board)=>
@@ -95,7 +107,7 @@ export class BoardsAutoInstaller implements FrontendApplicationContribution {
95
107
if(index!==-1){
96
108
this.notifications.splice(index,1);
97
109
}
98
-
if(answer==='Yes'){
110
+
if(answer===yes){
99
111
awaitInstallable.installWithProgress({
100
112
installable: this.boardsService,
101
113
item: candidate,
@@ -105,7 +117,7 @@ export class BoardsAutoInstaller implements FrontendApplicationContribution {
0 commit comments