Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temperature widget #1332

Merged
merged 1 commit into from
Oct 21, 2021
Merged

Temperature widget #1332

merged 1 commit into from
Oct 21, 2021

Conversation

avs-code
Copy link
Contributor

Add temp "es" string.
@lang temp to widget wheather blade.

Please, check if code is right.

Add temp "es" string
@lang temp to widget wheather blade
@nabeelio nabeelio merged commit 1e7e8cc into nabeelio:dev Oct 21, 2021
@nabeelio nabeelio added the bug label Oct 21, 2021
@nabeelio nabeelio added this to the 7.0.0 milestone Oct 21, 2021
@nabeelio nabeelio added enhancement and removed bug labels Oct 21, 2021
@@ -51,7 +51,7 @@
<tr>
<td>Temperature</td>
<td>
@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)}}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should not be here, instead it should be at line 52.

So the table row will start with Temperatura then it will show the value like 32 and go on with , Punto de rocio 28 and so on.

What will happen with this code is like below

Temperature | Temperatura 32, Punto de rocio 28, Humedad %80

So the table row will still be using English on the left.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the worst part of this happens for English users, they will see the widget like this

Temperature | Temperature 32, Dewpoint 38, Humidity %80 :(

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah shoot, sorry, I thought this was all tested already. @arv187 can you submit another PR to fix

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants