From 1e7e8cc5e582d0b78ff2f22541dc808e64062e8a Mon Sep 17 00:00:00 2001 From: Toni Vicente Date: Thu, 21 Oct 2021 18:28:58 +0200 Subject: [PATCH] Temperature (#1332) Add temp "es" string @lang temp to widget wheather blade --- resources/lang/es/widgets.php | 7 ++++--- resources/views/layouts/default/widgets/weather.blade.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/resources/lang/es/widgets.php b/resources/lang/es/widgets.php index 12886c05..9b68b988 100644 --- a/resources/lang/es/widgets.php +++ b/resources/lang/es/widgets.php @@ -18,9 +18,10 @@ return [ 'weather' => [ 'nometar' => 'No se han encontrado datos METAR/TAF', 'conditions' => 'Condiciones', - 'visibility' => 'visibilidad', - 'humidity' => 'humedad', - 'dewpoint' => 'punto de rocío', + 'visibility' => 'Visibilidad', + 'temp' => 'Temperatura', + 'humidity' => 'Humedad', + 'dewpoint' => 'Punto de rocío', 'barometer' => 'Barometro', 'clouds' => 'Nubes', 'wind' => 'Viento', diff --git a/resources/views/layouts/default/widgets/weather.blade.php b/resources/views/layouts/default/widgets/weather.blade.php index c5b83403..93df14c1 100644 --- a/resources/views/layouts/default/widgets/weather.blade.php +++ b/resources/views/layouts/default/widgets/weather.blade.php @@ -51,7 +51,7 @@ https://api.checkwx.com/#metar-decoded Temperature - @if($metar['temperature'][$unit_temp]) {{ $metar['temperature'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}} + @if($metar['temperature'][$unit_temp]), @lang('widgets.weather.temp') {{ $metar['temperature'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}} @if($metar['dew_point']), @lang('widgets.weather.dewpoint') @if($metar['dew_point'][$unit_temp]) {{ $metar['dew_point'][$unit_temp] }} @else 0 @endif °{{strtoupper($unit_temp)}} @endif @if($metar['humidity']), @lang('widgets.weather.humidity') {{ $metar['humidity'] }}% @endif