refactor(settings): extract hardcoded text to i18n string

this commit is related to GUI translation issues #226
This commit is contained in:
4gray committed 2023-02-11 10:50:47 +01:00
1 parent 83092fa29f
commit e9229cb162
2 files changed
+18 -12

No files matched your search

+9 -10
View File
@@ -68,7 +68,7 @@
<div class="row">
<div class="column">
{{ 'SETTINGS.VIDEO_PLAYER_LABEL' | translate }}
<p>Select default video player</p>
<p>{{ 'SETTINGS.VIDEO_PLAYER_DESCRIPTION' | translate }}</p>
</div>
<div class="column">
<mat-form-field appearance="outline">
@@ -93,7 +93,7 @@
<div class="row">
<div class="column">
{{ 'SETTINGS.LANGUAGE' | translate }}
<p>Select language of the application</p>
<p>{{ 'SETTINGS.LANGUAGE_DESCRIPTION' | translate }}</p>
</div>
<div class="column">
<mat-form-field appearance="outline">
@@ -120,7 +120,7 @@
<div class="row">
<div class="column">
{{ 'SETTINGS.THEME' | translate }}
<p>Select visual theme of the application</p>
<p>{{ 'SETTINGS.THEME_DESCRIPTION' | translate }}</p>
</div>
<div class="column">
<mat-form-field appearance="outline">
@@ -147,7 +147,7 @@
<div class="row">
<div class="column">
{{ 'SETTINGS.SHOW_CAPTIONS' | translate }}
<p>Show or hide subtitles by default</p>
<p>{{ 'SETTINGS.SHOW_CAPTIONS_DESCRIPTION' | translate }}</p>
</div>
<div class="column" style="margin-right: 10px">
<mat-checkbox
@@ -160,7 +160,7 @@
<div class="row">
<div class="column">
{{ 'SETTINGS.VERSION' | translate }}
<p>Current version of the application</p>
<p>{{ 'SETTINGS.VERSION_DESCRIPTION' | translate }}</p>
</div>
<div class="column">
{{ version }} <br />
@@ -169,11 +169,10 @@
</div>
<div class="row" *ngIf="!isElectron">
Currently EPG is available only in the electron-based version of
IPTVnator. Check it&nbsp;<a
href="https://github.com/4gray/iptvnator/releases"
>here</a
>
{{ 'SETTINGS.EPG_NOTE' | translate }}
&nbsp;<a href="https://github.com/4gray/iptvnator/releases">{{
'SETTINGS.EPG_NOTE_URL_TEXT' | translate
}}</a>
</div>
<mat-divider></mat-divider>
+9 -2
View File
@@ -62,7 +62,7 @@
"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",
"DESCRIPTION": "Please adapt the options from the list below and confirm with the save changes button",
"EPG_URL_LABEL": "EPG Url (*.xml or *.xml.gz)",
"EPG_URL_PLACEHOLDER": "Enter an URL",
"REFRESH_EPG": "Refresh EPG",
@@ -78,7 +78,14 @@
"THEME": "Visual theme",
"SHOW_CAPTIONS": "Show subtitles",
"ADD_EPG_SOURCE": "Add EPG source",
"EPG_URL_ERROR": "The value is not a valid URL"
"EPG_URL_ERROR": "The value is not a valid URL",
"VIDEO_PLAYER_DESCRIPTION": "Select default video player",
"LANGUAGE_DESCRIPTION": "Select language of the application",
"THEME_DESCRIPTION": "Select visual theme of the application",
"SHOW_CAPTIONS_DESCRIPTION": "Show or hide subtitles by default",
"VERSION_DESCRIPTION": "Current version of the application",
"EPG_NOTE": "Currently EPG is available only in the electron-based version of IPTVnator.",
"EPG_NOTE_URL_TEXT": "Check it here"
},
"THEMES": {
"DARK_THEME": "Dark theme",