frontend translation + other stuff

This commit is contained in:
lordwilbur
2018-05-21 09:54:18 -05:00
committed by Nabeel Shahzad
parent ba8a819c7d
commit a346b0df2e
54 changed files with 966 additions and 771 deletions
@@ -5,30 +5,30 @@ https://api.checkwx.com/#metar-decoded
--}}
@if(!$metar)
<p>{{ __('METAR/TAF data could not be retrieved') }}</p>
<p>@lang('frontend.widgets.weather.metarnotretrieved')</p>
@else
<table class="table table-striped">
<tr>
<td>{{ __('Conditions') }}</td>
<td>@lang('frontend.widgets.weather.conditions')</td>
<td>
{{ $metar['category'] }}
{{ $metar['temperature'][$unit_temp] }}
°{{strtoupper($unit_temp)}}
@if($metar['visibility'])
, {{ __('visibility') }} {{ $metar['visibility'][$unit_dist] }} {{$unit_dist}}
, @lang('frontend.widgets.weather.visibility') {{ $metar['visibility'][$unit_dist] }} {{$unit_dist}}
@endif
@if($metar['humidity'])
, {{ $metar['humidity'] }}% {{ __('humidity') }}
, {{ $metar['humidity'] }}% @lang('frontend.widgets.weather.humidity')
@endif
@if($metar['dew_point'])
, {{ __('dew point') }}
, @lang('frontend.widgets.weather.dewpoint')
{{ $metar['dew_point'][$unit_temp] }}
°{{strtoupper($unit_temp)}}
@endif
</td>
</tr>
<tr>
<td>{{ __('Barometer') }}</td>
<td>@lang('frontend.widgets.weather.barometer')</td>
<td>
{{ number_format($metar['barometer'], 2) }} hPa
/ {{ number_format($metar['barometer_in'], 2) }} inHg
@@ -36,7 +36,7 @@ https://api.checkwx.com/#metar-decoded
</tr>
@if($metar['clouds'])
<tr>
<td>{{ __('Clouds') }}</td>
<td>@lang('frontend.widgets.weather.clouds')</td>
<td>
@if($unit_alt === 'ft')
{{$metar['clouds_report_ft']}}
@@ -47,17 +47,17 @@ https://api.checkwx.com/#metar-decoded
</tr>
@endif
<tr>
<td>{{ __('Wind') }}</td>
<td>@lang('frontend.widgets.weather.wind')</td>
<td>
{{$metar['wind_speed']}} kts {{ __('from') }} {{$metar['wind_direction_label']}}
{{$metar['wind_speed']}} kts @lang('frontend.global.from') {{$metar['wind_direction_label']}}
({{$metar['wind_direction']}}°)
@if($metar['wind_gust_speed'])
{{ __('gusts to').' '.$metar['wind_gust_speed'] }}
@lang('frontend.widgets.weather.guststo') {{ $metar['wind_gust_speed'] }}
@endif
</td>
</tr>
<tr>
<td>{{ __('METAR') }}</td>
<td>@lang('frontend.global.metar')</td>
<td>
<div style="line-height:1.5em;min-height: 3em;">
{{ $metar['raw'] }}
@@ -66,14 +66,14 @@ https://api.checkwx.com/#metar-decoded
</tr>
@if($metar['remarks'])
<tr>
<td>{{ __('Remarks') }}</td>
<td>@lang('frontend.widgets.weather.remarks')</td>
<td>
{{ $metar['remarks'] }}
</td>
</tr>
@endif
<tr>
<td>{{ __('Updated') }}</td>
<td>@lang('frontend.widgets.weather.updated')</td>
<td>{{$metar['observed_time']}} ({{$metar['observed_age']}})</td>
</tr>
</table>