Settings internationalised

This commit is contained in:
Philip Abbey
2023-12-16 18:33:51 +00:00
parent 8c5aa820ef
commit 3d24301a72
37 changed files with 351 additions and 15 deletions

View File

@ -15,8 +15,8 @@
<settings>
<setting
propertyKey="@Properties.api_key"
title="API Key for Home Assistant"
prompt="Long-Lived Access Token"
title="@Strings.SettingsApiKey"
prompt="@Strings.SettingsApiKeyPrompt"
>
<settingConfig
type="alphaNumeric"
@ -25,7 +25,7 @@
<setting
propertyKey="@Properties.api_url"
title="URL for Home Assistant API"
title="@Strings.SettingsApiUrl"
prompt="https://homeassistant.local/api"
>
<settingConfig
@ -35,7 +35,7 @@
<setting
propertyKey="@Properties.config_url"
title="URL for menu configuration (JSON)"
title="@Strings.SettingsConfigUrl"
prompt="https://homeassistant.local/local/garmin/menu.json"
>
<settingConfig
@ -45,7 +45,7 @@
<setting
propertyKey="@Properties.app_timeout"
title="Timeout in seconds. Exit the application after this period of inactivity to save the device battery."
title="@Strings.SettingsAppTimeout"
>
<settingConfig
type="numeric"
@ -55,7 +55,7 @@
<setting
propertyKey="@Properties.confirm_timeout"
title="After this time (in seconds), a confirmation dialog for an action is automatically closed and the action is cancelled. Set to 0 to disable the timeout."
title="@Strings.SettingsConfirmTimeout"
>
<settingConfig
type="numeric"
@ -65,7 +65,7 @@
<setting
propertyKey="@Properties.types_representation"
title="Representing types with icons (off) or with labels (on)"
title="@Strings.SettingsUi"
>
<settingConfig
type="boolean"
@ -74,7 +74,7 @@
<setting
propertyKey="@Properties.menu_alignment"
title="Left (off) or Right (on) Menu Alignment"
title="@Strings.SettingsTextAlign"
>
<settingConfig
type="boolean"

View File

@ -31,4 +31,15 @@
<string id="ConfigUrlNotFound">URL not found. Potential Configuration URL error in settings.</string>
<string id="UnhandledHttpErr">HTTP request returned error code = </string>
<string id="TrailingSlashErr">API URL must not have a trailing slash '/'</string>
<!-- For the settings GUI -->
<string id="SettingsApiKey">API Key for HomeAssistant.</string>
<string id="SettingsApiKeyPrompt">Long-Lived Access Token.</string>
<string id="SettingsApiUrl">URL for HomeAssistant API.</string>
<string id="SettingsConfigUrl">URL for menu configuration (JSON).</string>
<string id="SettingsAppTimeout">Timeout in seconds. Exit the application after this period of inactivity to save the device battery.</string>
<string id="SettingsConfirmTimeout">After this time (in seconds), a confirmation dialog for an action is automatically closed and the action is cancelled. Set to 0 to disable the timeout.</string>
<string id="SettingsUi">Representing types with icons (off) or with labels (on).</string>
<string id="SettingsTextAlign">Left (off) or Right (on) Menu Alignment.</string>
</strings>