From f345918dd18fb22fd8d4e18e385e41ca43a6639b Mon Sep 17 00:00:00 2001 From: jmiverson Date: Fri, 10 Apr 2020 10:55:01 -0500 Subject: [PATCH] Updated Labels to Title Case Some labels were using title case and others weren't. Attempted to make it consistent across the board. --- .../templates/car/summary.html.leex | 10 +++++----- .../templates/geo_fence/form.html.leex | 2 +- .../templates/geo_fence/index.html.leex | 2 +- .../templates/settings/index.html.leex | 2 +- priv/gettext/de/LC_MESSAGES/default.po | 20 ++++++++----------- priv/gettext/default.pot | 20 ++++++++----------- priv/gettext/en/LC_MESSAGES/default.po | 20 ++++++++----------- priv/gettext/es/LC_MESSAGES/default.po | 20 ++++++++----------- priv/gettext/fr/LC_MESSAGES/default.po | 20 ++++++++----------- priv/gettext/nb/LC_MESSAGES/default.po | 20 ++++++++----------- priv/gettext/sv/LC_MESSAGES/default.po | 20 ++++++++----------- .../controllers/car_controller_test.exs | 18 ++++++++--------- 12 files changed, 73 insertions(+), 101 deletions(-) diff --git a/lib/teslamate_web/templates/car/summary.html.leex b/lib/teslamate_web/templates/car/summary.html.leex index 5d9a336702..ead0a3def0 100644 --- a/lib/teslamate_web/templates/car/summary.html.leex +++ b/lib/teslamate_web/templates/car/summary.html.leex @@ -44,7 +44,7 @@ <% end %> <%= if @summary.plugged_in do %> - + <% end %> @@ -166,7 +166,7 @@ <%= if @summary.plugged_in do %> <%= if not is_nil(@summary.scheduled_charging_start_time) do %> - <%= gettext "Scheduled charging" %> + <%= gettext "Scheduled Charging" %> <%= tag :span, data: [date: @summary.scheduled_charging_start_time |> DateTime.to_iso8601()], phx_hook: "LocalTime" @@ -175,7 +175,7 @@ <% end %> <%= if not is_nil(@summary.charge_limit_soc) do %> - <%= gettext "Charge limit" %> + <%= gettext "Charge Limit" %> <%= @summary.charge_limit_soc %>% <% end %> @@ -235,7 +235,7 @@ <%= if @summary.state not in [:asleep, :offline, :suspended] or DateTime.diff(DateTime.utc_now(), @summary.since) < 30*60 do %> <%= unless is_nil(@summary.outside_temp) do %> - <%= gettext "Outside temperature" %> + <%= gettext "Outside Temperature" %> <%= if @settings.unit_of_temperature == :F do "#{Convert.celsius_to_fahrenheit(@summary.outside_temp, 1)} °F" @@ -247,7 +247,7 @@ <% end %> <%= unless is_nil(@summary.inside_temp) do %> - <%= gettext "Inside temperature" %> + <%= gettext "Inside Temperature" %> <%= if @settings.unit_of_temperature == :F do "#{Convert.celsius_to_fahrenheit(@summary.inside_temp, 1)} °F" diff --git a/lib/teslamate_web/templates/geo_fence/form.html.leex b/lib/teslamate_web/templates/geo_fence/form.html.leex index 6610514e79..4d88332ccd 100644 --- a/lib/teslamate_web/templates/geo_fence/form.html.leex +++ b/lib/teslamate_web/templates/geo_fence/form.html.leex @@ -1,7 +1,7 @@