Skip to content

Commit fd7d434

Browse files
committed
Localize some strings
1 parent 945e490 commit fd7d434

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

arduino-ide-extension/src/browser/boards/boards-toolbar-item.tsx

+10-2
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,20 @@ export class BoardsDropDown extends React.Component<BoardsDropDown.Props> {
5959
}}
6060
>
6161
{this.renderItem({
62-
label: 'Select Other Board & Port',
62+
label: nls.localize(
63+
'arduino/board/openBoardsConfig',
64+
'Select Other Board & Port'
65+
),
6366
onClick: () => this.props.openBoardsConfig(),
6467
})}
6568
{items
6669
.map(({ name, port, selected, onClick }) => ({
67-
label: `${name} at ${Port.toString(port)}`,
70+
label: nls.localize(
71+
'arduino/board/boardListItem',
72+
'{0} at {1}',
73+
name,
74+
Port.toString(port)
75+
),
6876
selected,
6977
onClick,
7078
}))

i18n/en.json

+2
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@
120120
"noneSelected": "No boards selected.",
121121
"noPortsSelected": "No ports selected for board: '{0}'.",
122122
"noFQBN": "The FQBN is not available for the selected board \"{0}\". Do you have the corresponding core installed?",
123+
"openBoardsConfig": "Select Other Board & Port",
124+
"boardListItem": "{0} at {1}",
123125
"selectBoardForInfo": "Please select a board to obtain board info.",
124126
"platformMissing": "The platform for the selected '{0}' board is not installed.",
125127
"selectPortForInfo": "Please select a port to obtain board info.",

0 commit comments

Comments
 (0)