From 9641313492ef513093931f083a298b1e4a07ddb7 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Tue, 22 Jul 2025 22:03:10 +0100 Subject: [PATCH] Wifi -> Wi-Fi Amended in presentational aspects only, not in the actual code. "Wi-Fi" is the proper noun and registered trademark. --- resources/settings/properties.xml | 2 +- resources/strings/strings.xml | 10 +++++----- source/HomeAssistantApp.mc | 6 +++--- source/Settings.mc | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/resources/settings/properties.xml b/resources/settings/properties.xml index 55bdd79..bad9f1b 100644 --- a/resources/settings/properties.xml +++ b/resources/settings/properties.xml @@ -97,7 +97,7 @@ false diff --git a/resources/strings/strings.xml b/resources/strings/strings.xml index bf5cede..e4549d4 100644 --- a/resources/strings/strings.xml +++ b/resources/strings/strings.xml @@ -44,8 +44,8 @@ HTTP request returned error code = Failed to register Webhook Wrong PIN - No Wifi or LTE available - Execute over Wifi/LTE? + No Wi-Fi or LTE available + Execute over Wi-Fi/LTE? Sending to Home Assistant. No data received. @@ -70,7 +70,7 @@ Enable the background service to send the device battery level, location and (if supported) activity data to Home Assistant. The refresh rate (in minutes) at which the background service should repeat sending data. (Read only) The Webhook ID created by the device for background service updates. You might require this for debugging. - Wifi/LTE execution mode. - Enable executing commands over Wifi/LTE. - Allows the app to start without phone connection (when menu is cached), and prompt to execute command over Wifi/LTE. + Wi-Fi/LTE execution mode. + Enable executing commands over Wi-Fi/LTE. + Allows the app to start without phone connection (when menu is cached), and prompt to execute command over Wi-Fi/LTE. diff --git a/source/HomeAssistantApp.mc b/source/HomeAssistantApp.mc index 8677420..a14d871 100644 --- a/source/HomeAssistantApp.mc +++ b/source/HomeAssistantApp.mc @@ -132,10 +132,10 @@ class HomeAssistantApp extends Application.AppBase { // System.println("HomeAssistantApp getInitialView(): No Phone connection, no cached menu, skipping API call."); return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoPhoneNoCache) as Lang.String); } else if (! System.getDeviceSettings().phoneConnected and ! Settings.getWifiLteExecutionEnabled()) { - // System.println("HomeAssistantApp getInitialView(): No Phone connection and wifi disabled, skipping API call."); + // System.println("HomeAssistantApp getInitialView(): No Phone connection and Wi-Fi disabled, skipping API call."); return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoPhone) as Lang.String); } else if (! System.getDeviceSettings().connectionAvailable and ! Settings.getWifiLteExecutionEnabled()) { - // System.println("HomeAssistantApp getInitialView(): No Internet connection and wifi disabled, skipping API call."); + // System.println("HomeAssistantApp getInitialView(): No Internet connection and Wi-Fi disabled, skipping API call."); return ErrorView.create(WatchUi.loadResource($.Rez.Strings.NoInternet) as Lang.String); } else { var isCached = fetchMenuConfig(); @@ -436,7 +436,7 @@ class HomeAssistantApp extends Application.AppBase { var phoneConnected = System.getDeviceSettings().phoneConnected; var connectionAvailable = System.getDeviceSettings().connectionAvailable; - // In Wifi/LTE execution mode, we should not show an error page but use a toast instead. + // In Wi-Fi/LTE execution mode, we should not show an error page but use a toast instead. if (Settings.getWifiLteExecutionEnabled() && (! phoneConnected || ! connectionAvailable)) { // Notify only once per disconnection cycle if (!mNotifiedNoBle) { diff --git a/source/Settings.mc b/source/Settings.mc index 9075198..030ec21 100644 --- a/source/Settings.mc +++ b/source/Settings.mc @@ -272,12 +272,12 @@ class Settings { } } - //! Get the value of the WiFi/LTE toggle in settings. + //! Get the value of the Wi-Fi/LTE toggle in settings. //! //! @return The state of the toggle. // static function getWifiLteExecutionEnabled() as Lang.Boolean { - // Wifi/LTE sync execution on a cached menu + // Wi-Fi/LTE sync execution on a cached menu if (!mCacheConfig) { return false; }