Rewording of own data source

This commit is contained in:
Djuri Baars 2024-05-09 00:54:55 +02:00
parent e47fc066b0
commit 7a6b8bf2c2
6 changed files with 43 additions and 28 deletions

View file

@ -30,7 +30,7 @@
"wifiTxPower": "WiFi-TX-Leistung",
"settingsSaved": "Einstellungen gespeichert",
"errorSavingSettings": "Fehler beim Speichern der Einstellungen",
"ownPriceSource": "BTClock-Preisquelle verwenden",
"ownDataSource": "BTClock-Datenquelle verwenden",
"flAlwaysOn": "Displaybeleuchtung immer an"
},
"control": {
@ -55,7 +55,8 @@
"wsMempoolConnection": "WS Mempool.space-Verbindung",
"fetchEuroNote": "If you use \"Fetch € price\" the WS Price connection will show ❌ since it uses another data source.",
"uptime": "Betriebszeit",
"wifiSignalStrength": "WiFi-Signalstärke"
"wifiSignalStrength": "WiFi-Signalstärke",
"wsDataConnection": "BTClock-Datenquelle verbindung"
}
},
"colors": {

View file

@ -29,7 +29,7 @@
"wifiTxPower": "WiFi TX power",
"settingsSaved": "Settings saved",
"errorSavingSettings": "Error saving settings",
"ownPriceSource": "Use BTClock price source",
"ownDataSource": "Use BTClock data source",
"flMaxBrightness": "Frontlight brightness",
"flAlwaysOn": "Frontlight always on"
},
@ -55,7 +55,8 @@
"wsMempoolConnection": "WS Mempool.space connection",
"fetchEuroNote": "If you use \"Fetch € price\" the WS Price connection will show ❌ since it uses another data source.",
"uptime": "Uptime",
"wifiSignalStrength": "WiFi Signal strength"
"wifiSignalStrength": "WiFi Signal strength",
"wsDataConnection": "BTClock data-source connection"
}
},
"colors": {

View file

@ -28,7 +28,7 @@
"wifiTxPowerText": "En la mayoría de los casos no es necesario configurar esto.",
"settingsSaved": "Configuración guardada",
"errorSavingSettings": "Error al guardar la configuración",
"ownPriceSource": "Usar fuente de precios BTClock",
"ownDataSource": "Utilice la fuente de datos BTClock",
"flMaxBrightness": "Brillo de luz de la pantalla",
"flAlwaysOn": "Luz de la pantalla siempre encendida"
},
@ -54,7 +54,8 @@
"uptime": "Tiempo de funcionamiento",
"fetchEuroNote": "Si utiliza \"Obtener precio en €\", la conexión de Precio WS mostrará ❌ ya que utiliza otra fuente de datos.",
"title": "Estado",
"wifiSignalStrength": "Fuerza de la señal WiFi"
"wifiSignalStrength": "Fuerza de la señal WiFi",
"wsDataConnection": "Conexión de fuente de datos BTClock"
}
},
"button": {

View file

@ -29,7 +29,7 @@
"wifiTxPowerText": "Meestal hoeft dit niet aangepast te worden.",
"settingsSaved": "Instellingen opgeslagen",
"errorSavingSettings": "Fout bij opslaan instellingen",
"ownPriceSource": "Gebruik BTClock prijs bron",
"ownDataSource": "BTClock-gegevensbron gebruiken",
"flMaxBrightness": "Displaylicht helderheid",
"flAlwaysOn": "Displaylicht altijd aan"
},
@ -54,7 +54,8 @@
"wsMempoolConnection": "WS Mempool.space verbinding",
"fetchEuroNote": "Wanneer je \"Toon € prijs\" aanzet, zal de prijsverbinding als ❌ verbroken getoond worden vanwege het gebruik van een andere bron.",
"uptime": "Uptime",
"wifiSignalStrength": "WiFi signaalsterkte"
"wifiSignalStrength": "WiFi signaalsterkte",
"wsDataConnection": "BTClock-gegevensbron verbinding"
}
},
"colors": {

View file

@ -361,11 +361,11 @@
</Col>
<Col md="6">
<Input
id="ownPriceSource"
bind:checked={$settings.ownPriceSource}
id="ownDataSource"
bind:checked={$settings.ownDataSource}
type="switch"
bsSize="sm"
label="{$_('section.settings.ownPriceSource')} ({$_('restartRequired')})"
label="{$_('section.settings.ownDataSource')} ({$_('restartRequired')})"
/>
</Col>
{#if $settings.hasFrontlight}

View file

@ -161,6 +161,7 @@
{$_('section.status.uptime')}: {toUptimestring($status.espUptime)}
<br />
<p>
{#if !$settings.ownDataSource}
{$_('section.status.wsPriceConnection')}:
<span>
{#if $status.connectionStatus && $status.connectionStatus.price}
@ -178,6 +179,16 @@
&#10060;
{/if}
</span><br />
{:else}
{$_('section.status.wsDataConnection')}:
<span>
{#if $status.connectionStatus && $status.connectionStatus.price}
&#9989;
{:else}
&#10060;
{/if}
</span>
{/if}
{#if $settings.fetchEurPrice}
<small>{$_('section.status.fetchEuroNote')}</small>
{/if}