Add missing translations to Supervisor Wi-Fi network section (#14606)
Co-authored-by: Paul Bottein <paul.bottein@gmail.com>
This commit is contained in:
parent
549d893407
commit
cb00535683
|
@ -138,7 +138,10 @@ export class DialogHassioNetwork
|
|||
)}
|
||||
${this._interface?.type === "wireless"
|
||||
? html`
|
||||
<ha-expansion-panel header="Wi-Fi" outlined>
|
||||
<ha-expansion-panel
|
||||
.header=${this.supervisor.localize("dialog.network.wifi")}
|
||||
outlined
|
||||
>
|
||||
${this._interface?.wifi?.ssid
|
||||
? html`<p>
|
||||
${this.supervisor.localize(
|
||||
|
@ -177,7 +180,11 @@ export class DialogHassioNetwork
|
|||
>
|
||||
<span>${ap.ssid}</span>
|
||||
<span slot="secondary">
|
||||
${ap.mac} - Strength: ${ap.signal}
|
||||
${ap.mac} -
|
||||
${this.supervisor.localize(
|
||||
"dialog.network.signal_strength"
|
||||
)}:
|
||||
${ap.signal}
|
||||
</span>
|
||||
</mwc-list-item>
|
||||
`
|
||||
|
@ -241,7 +248,9 @@ export class DialogHassioNetwork
|
|||
class="flex-auto"
|
||||
type="password"
|
||||
id="psk"
|
||||
label="Password"
|
||||
.label=${this.supervisor.localize(
|
||||
"dialog.network.wifi_password"
|
||||
)}
|
||||
version="wifi"
|
||||
@value-changed=${this
|
||||
._handleInputValueChangedWifi}
|
||||
|
|
|
@ -24,7 +24,7 @@ export class HaDialogDatePicker extends LitElement {
|
|||
@state() private _value?: string;
|
||||
|
||||
public async showDialog(params: datePickerDialogParams): Promise<void> {
|
||||
// app-datpicker has a bug, that it removes its handlers when disconnected, but doesnt add them back when reconnected.
|
||||
// app-datepicker has a bug, that it removes its handlers when disconnected, but doesn't add them back when reconnected.
|
||||
// So we need to wait for the next render to make sure the element is removed and re-created so the handlers are added.
|
||||
await nextRender();
|
||||
this._params = params;
|
||||
|
|
|
@ -106,7 +106,12 @@ export class HassioNetwork extends LitElement {
|
|||
)}
|
||||
${this._interface?.type === "wireless"
|
||||
? html`
|
||||
<ha-expansion-panel header="Wi-Fi" outlined>
|
||||
<ha-expansion-panel
|
||||
.header=${this.hass.localize(
|
||||
"ui.panel.config.network.supervisor.wifi"
|
||||
)}
|
||||
outlined
|
||||
>
|
||||
${this._interface?.wifi?.ssid
|
||||
? html`<p>
|
||||
${this.hass.localize(
|
||||
|
@ -147,7 +152,11 @@ export class HassioNetwork extends LitElement {
|
|||
>
|
||||
<span>${ap.ssid}</span>
|
||||
<span slot="secondary">
|
||||
${ap.mac} - Strength: ${ap.signal}
|
||||
${ap.mac} -
|
||||
${this.hass.localize(
|
||||
"ui.panel.config.network.supervisor.signal_strength"
|
||||
)}:
|
||||
${ap.signal}
|
||||
</span>
|
||||
</mwc-list-item>
|
||||
`
|
||||
|
@ -211,7 +220,9 @@ export class HassioNetwork extends LitElement {
|
|||
class="flex-auto"
|
||||
type="password"
|
||||
id="psk"
|
||||
label="Password"
|
||||
.label=${this.hass.localize(
|
||||
"ui.panel.config.network.supervisor.wifi_password"
|
||||
)}
|
||||
version="wifi"
|
||||
@value-changed=${this
|
||||
._handleInputValueChangedWifi}
|
||||
|
|
|
@ -3679,9 +3679,12 @@
|
|||
"title": "Configure network interfaces",
|
||||
"connected_to": "Connected to {ssid}",
|
||||
"scan_ap": "Scan for access points",
|
||||
"signal_strength": "Signal strength",
|
||||
"open": "Open",
|
||||
"wep": "WEP",
|
||||
"wpa": "wpa-psk",
|
||||
"wifi": "Wi-Fi",
|
||||
"wifi_password": "Wi-Fi password",
|
||||
"warning": "If you are changing the Wi-Fi, IP or gateway addresses, you might lose the connection!",
|
||||
"static": "Static",
|
||||
"dhcp": "DHCP",
|
||||
|
@ -5376,9 +5379,12 @@
|
|||
"title": "Network settings",
|
||||
"connected_to": "Connected to {ssid}",
|
||||
"scan_ap": "Scan for access points",
|
||||
"signal_strength": "[%key:ui::panel::config::network::supervisor::signal_strength%]",
|
||||
"open": "Open",
|
||||
"wep": "WEP",
|
||||
"wpa": "wpa-psk",
|
||||
"wifi": "[%key:ui::panel::config::network::supervisor::wifi%]",
|
||||
"wifi_password": "[%key:ui::panel::config::network::supervisor::wifi_password%]",
|
||||
"warning": "If you are changing the Wi-Fi, IP or gateway addresses, you might lose the connection!",
|
||||
"static": "Static",
|
||||
"dhcp": "DHCP",
|
||||
|
|
Loading…
Reference in New Issue