fix(lang): correct strings for library sync button & user import toast (#1252)

* fix(lang): 'scan plex libraries' should actually be 'sync'

* fix(lang): also fix user import string in case of no imported users

* fix(lang): remove unused 'User Rating' strings
pull/1251/merge
TheCatLady 3 years ago committed by GitHub
parent 5f940c38bb
commit cb5ca7acf3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,6 @@ import StatusBadge from '../StatusBadge';
const messages = defineMessages({ const messages = defineMessages({
releasedate: 'Release Date', releasedate: 'Release Date',
userrating: 'User Rating',
status: 'Status', status: 'Status',
revenue: 'Revenue', revenue: 'Revenue',
budget: 'Budget', budget: 'Budget',

@ -50,8 +50,8 @@ const messages = defineMessages({
plexlibraries: 'Plex Libraries', plexlibraries: 'Plex Libraries',
plexlibrariesDescription: plexlibrariesDescription:
'The libraries Overseerr scans for titles. Set up and save your Plex connection settings, then click the button below if no libraries are listed.', 'The libraries Overseerr scans for titles. Set up and save your Plex connection settings, then click the button below if no libraries are listed.',
scanning: 'Scanning…', scanning: 'Syncing…',
scan: 'Scan Plex Libraries', scan: 'Sync Libraries',
manualscan: 'Manual Library Scan', manualscan: 'Manual Library Scan',
manualscanDescription: manualscanDescription:
"Normally, this will only be run once every 24 hours. Overseerr will check your Plex server's recently added more aggressively. If this is your first time configuring Plex, a one-time full manual library scan is recommended!", "Normally, this will only be run once every 24 hours. Overseerr will check your Plex server's recently added more aggressively. If this is your first time configuring Plex, a one-time full manual library scan is recommended!",

@ -39,7 +39,6 @@ import StatusBadge from '../StatusBadge';
const messages = defineMessages({ const messages = defineMessages({
firstAirDate: 'First Air Date', firstAirDate: 'First Air Date',
nextAirDate: 'Next Air Date', nextAirDate: 'Next Air Date',
userrating: 'User Rating',
status: 'Status', status: 'Status',
originallanguage: 'Original Language', originallanguage: 'Original Language',
overview: 'Overview', overview: 'Overview',

@ -29,7 +29,8 @@ const messages = defineMessages({
importfromplex: 'Import Users from Plex', importfromplex: 'Import Users from Plex',
importfromplexerror: 'Something went wrong while importing users from Plex.', importfromplexerror: 'Something went wrong while importing users from Plex.',
importedfromplex: importedfromplex:
'{userCount, plural, =0 {No new users} one {# new user} other {# new users}} imported from Plex successfully!', '{userCount, plural, one {# new user} other {# new users}} imported from Plex successfully!',
nouserstoimport: 'No new users to import from Plex.',
user: 'User', user: 'User',
totalrequests: 'Total Requests', totalrequests: 'Total Requests',
accounttype: 'Account Type', accounttype: 'Account Type',
@ -171,9 +172,11 @@ const UserList: React.FC = () => {
'/api/v1/user/import-from-plex' '/api/v1/user/import-from-plex'
); );
addToast( addToast(
intl.formatMessage(messages.importedfromplex, { createdUsers.length
userCount: createdUsers.length, ? intl.formatMessage(messages.importedfromplex, {
}), userCount: createdUsers.length,
})
: intl.formatMessage(messages.nouserstoimport),
{ {
autoDismiss: true, autoDismiss: true,
appearance: 'success', appearance: 'success',

@ -93,7 +93,6 @@
"components.MovieDetails.status": "Status", "components.MovieDetails.status": "Status",
"components.MovieDetails.studio": "{studioCount, plural, one {Studio} other {Studios}}", "components.MovieDetails.studio": "{studioCount, plural, one {Studio} other {Studios}}",
"components.MovieDetails.unavailable": "Unavailable", "components.MovieDetails.unavailable": "Unavailable",
"components.MovieDetails.userrating": "User Rating",
"components.MovieDetails.view": "View", "components.MovieDetails.view": "View",
"components.MovieDetails.viewfullcrew": "View Full Crew", "components.MovieDetails.viewfullcrew": "View Full Crew",
"components.MovieDetails.watchtrailer": "Watch Trailer", "components.MovieDetails.watchtrailer": "Watch Trailer",
@ -599,8 +598,8 @@
"components.Settings.regionTip": "Filter content by regional availability", "components.Settings.regionTip": "Filter content by regional availability",
"components.Settings.save": "Save Changes", "components.Settings.save": "Save Changes",
"components.Settings.saving": "Saving…", "components.Settings.saving": "Saving…",
"components.Settings.scan": "Scan Plex Libraries", "components.Settings.scan": "Sync Libraries",
"components.Settings.scanning": "Scanning…", "components.Settings.scanning": "Syncing…",
"components.Settings.serverConnected": "connected", "components.Settings.serverConnected": "connected",
"components.Settings.serverLocal": "local", "components.Settings.serverLocal": "local",
"components.Settings.serverRemote": "remote", "components.Settings.serverRemote": "remote",
@ -693,7 +692,6 @@
"components.TvDetails.similar": "Similar Series", "components.TvDetails.similar": "Similar Series",
"components.TvDetails.status": "Status", "components.TvDetails.status": "Status",
"components.TvDetails.unavailable": "Unavailable", "components.TvDetails.unavailable": "Unavailable",
"components.TvDetails.userrating": "User Rating",
"components.TvDetails.viewfullcrew": "View Full Crew", "components.TvDetails.viewfullcrew": "View Full Crew",
"components.TvDetails.watchtrailer": "Watch Trailer", "components.TvDetails.watchtrailer": "Watch Trailer",
"components.UserList.accounttype": "Account Type", "components.UserList.accounttype": "Account Type",
@ -711,12 +709,13 @@
"components.UserList.edit": "Edit", "components.UserList.edit": "Edit",
"components.UserList.edituser": "Edit User Permissions", "components.UserList.edituser": "Edit User Permissions",
"components.UserList.email": "Email Address", "components.UserList.email": "Email Address",
"components.UserList.importedfromplex": "{userCount, plural, =0 {No new users} one {# new user} other {# new users}} imported from Plex successfully!", "components.UserList.importedfromplex": "{userCount, plural, one {# new user} other {# new users}} imported from Plex successfully!",
"components.UserList.importfromplex": "Import Users from Plex", "components.UserList.importfromplex": "Import Users from Plex",
"components.UserList.importfromplexerror": "Something went wrong while importing users from Plex.", "components.UserList.importfromplexerror": "Something went wrong while importing users from Plex.",
"components.UserList.lastupdated": "Last Updated", "components.UserList.lastupdated": "Last Updated",
"components.UserList.localuser": "Local User", "components.UserList.localuser": "Local User",
"components.UserList.next": "Next", "components.UserList.next": "Next",
"components.UserList.nouserstoimport": "No new users to import from Plex.",
"components.UserList.owner": "Owner", "components.UserList.owner": "Owner",
"components.UserList.password": "Password", "components.UserList.password": "Password",
"components.UserList.passwordinfo": "Password Information", "components.UserList.passwordinfo": "Password Information",

Loading…
Cancel
Save