diff --git a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.html b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.html index 7d466d972..6942eb3ad 100644 --- a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.html +++ b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.html @@ -7,15 +7,15 @@ - +
- User Type: + {{'UserPreferences.UserType' | translate}}
- {{UserType[user?.userType]}} + {{'UserTypeLabel.' + user?.userType | translate }}
@@ -58,7 +58,7 @@
Get it on Google Play + src="https://play.google.com/intl/{{ selectedLang }}/badges/static/images/badges/{{ selectedLang }}_badge_web_generic.png" />
- +
@@ -75,15 +77,15 @@
- +
-

Change Details

+

{{'UserPreferences.ChangeDetails' | translate}}

- You need your current password to make any changes here + {{'UserPreferences.NeedCurrentPassword' | translate}} - Current Password + {{'UserPreferences.CurrentPassword' | translate}}
@@ -91,7 +93,7 @@
- Email Address + {{'UserPreferences.EmailAddress' | translate}}
@@ -100,7 +102,7 @@
- New Password + {{'UserPreferences.NewPassword' | translate}}
@@ -108,12 +110,14 @@
- New Password Confirm + {{'UserPreferences.NewPasswordConfirm' | translate}}
- +
diff --git a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.ts b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.ts index afa2496cf..32ba813cc 100644 --- a/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.ts +++ b/src/Ombi/ClientApp/src/app/user-preferences/components/user-preference/user-preference.component.ts @@ -133,7 +133,7 @@ export class UserPreferenceComponent implements OnInit { currentPassword: values.currentPassword }).subscribe(x => { if (x.successful) { - this.notification.success("Updated your information"); + this.notification.success(this.translate.instant("UserPreferences.UpdatedYourInformation")); this.user.emailAddress = values.emailAddress; } else { this.notification.error(x.errors[0]); diff --git a/src/Ombi/wwwroot/translations/en.json b/src/Ombi/wwwroot/translations/en.json index 791ec3285..959ddaade 100644 --- a/src/Ombi/wwwroot/translations/en.json +++ b/src/Ombi/wwwroot/translations/en.json @@ -35,6 +35,7 @@ }, "Cancel": "Cancel", "Submit": "Submit", + "Update": "Update", "tvShow": "TV Show", "movie": "Movie" }, @@ -361,6 +362,24 @@ "LanguageDescription": "This is the language you would like the Ombi interface to be displayed in.", "MobileQRCode":"Mobile QR Code", "LegacyApp":"Launch Legacy App", - "NoQrCode":"Please contact your administrator to enable QR codes" + "NoQrCode":"Please contact your administrator to enable QR codes", + "UserType": "User Type:", + "ChangeDetails": "Change Details", + "NeedCurrentPassword": "You need your current password to make any changes here", + "CurrentPassword": "Current Password", + "EmailAddress": "Email Address", + "NewPassword": "New Password", + "NewPasswordConfirm": "New Password Confirm", + "Security": "Security", + "Profile": "Profile", + "UpdatedYourInformation": "Updated your information" + }, + "UserTypeLabel": { + "1": "Local User", + "2": "Plex User", + "3": "Emby User", + "4": "Emby Connect User", + "5": "Jellyfin User" } + }