From b79cf37476c40b64f5b1384706bfbc4911c03550 Mon Sep 17 00:00:00 2001 From: 4gray Date: Thu, 18 Feb 2021 01:02:37 +0100 Subject: [PATCH] refactor: localization of settings module --- src/app/settings/settings.component.html | 35 ++++++++++++++++-------- src/assets/i18n/en.json | 13 +++++++++ 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/src/app/settings/settings.component.html b/src/app/settings/settings.component.html index cdc33e37a..f8e5cebe8 100644 --- a/src/app/settings/settings.component.html +++ b/src/app/settings/settings.component.html @@ -1,24 +1,26 @@
- Please adapt the options from the list below and confirm with a - save button + {{ 'SETTINGS.DESCRIPTION' | translate }}
-

EPG Url (*.xml or *.xml.gz)

+

{{ 'SETTINGS.EPG_URL_LABEL' | translate }}

@@ -43,10 +47,15 @@

-

Video player

+

+ {{ 'SETTINGS.VIDEO_PLAYER_LABEL' | translate }} +

- Select an option + {{ + 'SETTINGS.VIDEO_PLAYER_PLACEHOLDER' + | translate + }}

-

Version

+

{{ 'SETTINGS.VERSION' | translate }}

{{ version }}
{{ updateMessage }} @@ -76,7 +85,8 @@ type="submit" [disabled]="settingsForm.pristine" > - save Save changes + save + {{ 'SETTINGS.SAVE_CHANGES' | translate }}

diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json index fbc42958d..f6299b247 100644 --- a/src/assets/i18n/en.json +++ b/src/assets/i18n/en.json @@ -34,5 +34,18 @@ "PLAYLIST_URL": "Playlist URL (m3u, m3u8)", "ADD_PLAYLIST": "Add playlist" } + }, + "SETTINGS": { + "TITLE": "Settings / IPTVnator", + "SUBTITLE": "Change the configuration of the application", + "DESCRIPTION": "Please adapt the options from the list below and confirm with a save button", + "EPG_URL_LABEL": "EPG Url (*.xml or *.xml.gz)", + "EPG_URL_PLACEHOLDER": "Enter a URL", + "REFRESH_EPG": "Refresh EPG", + "VIDEO_PLAYER_LABEL": "Video player", + "VIDEO_PLAYER_PLACEHOLDER": "Select an option", + "VERSION": "Version", + "SAVE_CHANGES": "Save changes", + "BACK_TO_HOME": "Back to home" } } \ No newline at end of file