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
Fix pluralization of 'Standort' / 'Standorten' #17
Conversation
I'm not sure if this fix is even worth it, since the wording in general dosn't make to much sense for only 1 sensor. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
src/Views.elm
Outdated
{-| View: Map | ||
-} | ||
mapView : Model -> Html Msg | ||
mapView model = | ||
page | ||
("Finde die aktuelle und historische Wassertemperatur an " | ||
++ (model.sensors |> List.length |> toString) | ||
++ " Standorten rund um den Zürichsee!" | ||
++ (pluralize " Standort" " Standorten" (model.sensors |> List.length)) ++ " rund um den Zürichsee!" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you break the line at ++
? You should probably install elm-vim for auto-formatting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Alternatively you can manually reformat with elm-format
on the command line.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I made this fix before I did the elm tutorial, because since then I have the plugin installed. Will fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Best fix would be to have more sensors 🙂 Maybe you could ask at Sensirion? |
aaee71f
to
b090922
Compare
@dhasenfratz Because you mentioned it today 😉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Terriffic!
Previously it showed "1 Standorten".