1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-08-18 08:19:38 +02:00

Fix missing translations and correct some keys

(cherry picked from commit ce4ac7594192fa8f63ba239607be61d229c24ce1)
This commit is contained in:
Stevie Robinson 2023-08-29 04:27:47 +02:00 committed by Bogdan
parent 85d51e485a
commit 4a41c67dfe
7 changed files with 22 additions and 17 deletions

View File

@ -61,7 +61,7 @@ class QueueOptions extends Component {
type={inputTypes.CHECK} type={inputTypes.CHECK}
name="includeUnknownMovieItems" name="includeUnknownMovieItems"
value={includeUnknownMovieItems} value={includeUnknownMovieItems}
helpText={translate('ShownUnknownMovieItemsHelpText')} helpText={translate('ShowUnknownMovieItemsHelpText')}
onChange={this.onOptionChange} onChange={this.onOptionChange}
/> />
</FormGroup> </FormGroup>

View File

@ -41,7 +41,7 @@ function TimeleftCell(props) {
return ( return (
<TableRowCell <TableRowCell
className={styles.timeleft} className={styles.timeleft}
title={translate('RetryingDownload', { date, time })} title={translate('RetryingDownloadOn', { date, time })}
> >
- -
</TableRowCell> </TableRowCell>

View File

@ -2,6 +2,7 @@ import PropTypes from 'prop-types';
import React from 'react'; import React from 'react';
import TagInputTag from 'Components/Form/TagInputTag'; import TagInputTag from 'Components/Form/TagInputTag';
import { kinds } from 'Helpers/Props'; import { kinds } from 'Helpers/Props';
import translate from 'Utilities/String/translate';
import styles from './FilterBuilderRowValueTag.css'; import styles from './FilterBuilderRowValueTag.css';
function FilterBuilderRowValueTag(props) { function FilterBuilderRowValueTag(props) {
@ -15,10 +16,11 @@ function FilterBuilderRowValueTag(props) {
/> />
{ {
!props.isLastTag && props.isLastTag ?
<span className={styles.or}> null :
or <div className={styles.or}>
</span> {translate('Or')}
</div>
} }
</span> </span>
); );

View File

@ -102,7 +102,7 @@ class UMaskInput extends Component {
</div> </div>
<div className={styles.details}> <div className={styles.details}>
<div> <div>
<label>{translate('UMask')}</label> <label>{translate('Umask')}</label>
<div className={styles.value}>{umask}</div> <div className={styles.value}>{umask}</div>
</div> </div>
<div> <div>

View File

@ -51,9 +51,9 @@ class TableOptionsModal extends Component {
let pageSizeError = null; let pageSizeError = null;
if (value < 5) { if (value < 5) {
pageSizeError = 'Page size must be at least 5'; pageSizeError = translate('TablePageSizeMinimum', { minimumValue: '5' });
} else if (value > 250) { } else if (value > 250) {
pageSizeError = 'Page size must not exceed 250'; pageSizeError = translate('TablePageSizeMaximum', { maximumValue: '250' });
} else { } else {
this.props.onTableOptionChange({ pageSize: value }); this.props.onTableOptionChange({ pageSize: value });
} }
@ -145,13 +145,13 @@ class TableOptionsModal extends Component {
{ {
hasPageSize ? hasPageSize ?
<FormGroup> <FormGroup>
<FormLabel>{translate('PageSize')}</FormLabel> <FormLabel>{translate('TablePageSize')}</FormLabel>
<FormInputGroup <FormInputGroup
type={inputTypes.NUMBER} type={inputTypes.NUMBER}
name="pageSize" name="pageSize"
value={pageSize || 0} value={pageSize || 0}
helpText={translate('PageSizeHelpText')} helpText={translate('TablePageSizeHelpText')}
errors={pageSizeError ? [{ message: pageSizeError }] : undefined} errors={pageSizeError ? [{ message: pageSizeError }] : undefined}
onChange={this.onPageSizeChange} onChange={this.onPageSizeChange}
/> />

View File

@ -106,7 +106,7 @@ class ImportCustomFormatModalContent extends Component {
<Form> <Form>
<FormGroup size={sizes.MEDIUM}> <FormGroup size={sizes.MEDIUM}>
<FormLabel> <FormLabel>
{translate('CustomFormatJSON')} {translate('CustomFormatJson')}
</FormLabel> </FormLabel>
<FormInputGroup <FormInputGroup
key={0} key={0}

View File

@ -203,7 +203,7 @@
"CustomFilters": "Custom Filters", "CustomFilters": "Custom Filters",
"CustomFormat": "Custom Format", "CustomFormat": "Custom Format",
"CustomFormatHelpText": "Radarr scores each release using the sum of scores for matching custom formats. If a new release would improve the score, at the same or better quality, then Radarr will grab it.", "CustomFormatHelpText": "Radarr scores each release using the sum of scores for matching custom formats. If a new release would improve the score, at the same or better quality, then Radarr will grab it.",
"CustomFormatJSON": "Custom Format JSON", "CustomFormatJson": "Custom Format JSON",
"CustomFormatScore": "Custom Format Score", "CustomFormatScore": "Custom Format Score",
"CustomFormatUnknownCondition": "Unknown Custom Format condition '{0}'", "CustomFormatUnknownCondition": "Unknown Custom Format condition '{0}'",
"CustomFormatUnknownConditionOption": "Unknown option '{0}' for condition '{1}'", "CustomFormatUnknownConditionOption": "Unknown option '{0}' for condition '{1}'",
@ -771,6 +771,7 @@
"OpenBrowserOnStart": "Open browser on start", "OpenBrowserOnStart": "Open browser on start",
"OpenThisModal": "Open This Modal", "OpenThisModal": "Open This Modal",
"Options": "Options", "Options": "Options",
"Or": "or",
"Organize": "Organize", "Organize": "Organize",
"OrganizeAndRename": "Organize & Rename", "OrganizeAndRename": "Organize & Rename",
"OrganizeConfirm": "Are you sure you want to organize all files in the {count} selected movie(s)?", "OrganizeConfirm": "Are you sure you want to organize all files in the {count} selected movie(s)?",
@ -791,8 +792,6 @@
"Overview": "Overview", "Overview": "Overview",
"OverviewOptions": "Overview Options", "OverviewOptions": "Overview Options",
"PackageVersion": "Package Version", "PackageVersion": "Package Version",
"PageSize": "Page Size",
"PageSizeHelpText": "Number of items to show on each page",
"Parse": "Parse", "Parse": "Parse",
"ParseModalErrorParsing": "Error parsing, please try again.", "ParseModalErrorParsing": "Error parsing, please try again.",
"ParseModalHelpText": "Enter a release title in the input above", "ParseModalHelpText": "Enter a release title in the input above",
@ -1114,9 +1113,9 @@
"ShowTmdbRating": "Show TMDb Rating", "ShowTmdbRating": "Show TMDb Rating",
"ShowTmdbRatingHelpText": "Show TMDb rating under poster", "ShowTmdbRatingHelpText": "Show TMDb rating under poster",
"ShowUnknownMovieItems": "Show Unknown Movie Items", "ShowUnknownMovieItems": "Show Unknown Movie Items",
"ShowUnknownMovieItemsHelpText": "Show items without a movie in the queue. This could include removed movies or anything else in Radarr's category",
"ShowYear": "Show Year", "ShowYear": "Show Year",
"ShownClickToHide": "Shown, click to hide", "ShownClickToHide": "Shown, click to hide",
"ShownUnknownMovieItemsHelpText": "Show items without a movie in the queue. This could include removed movies or anything else in Radarr's category",
"Shutdown": "Shutdown", "Shutdown": "Shutdown",
"Size": "Size", "Size": "Size",
"SizeLimit": "Size Limit", "SizeLimit": "Size Limit",
@ -1159,6 +1158,10 @@
"TableOptions": "Table Options", "TableOptions": "Table Options",
"TableOptionsButton": "Table Options Button", "TableOptionsButton": "Table Options Button",
"TableOptionsColumnsMessage": "Choose which columns are visible and which order they appear in", "TableOptionsColumnsMessage": "Choose which columns are visible and which order they appear in",
"TablePageSize": "Page Size",
"TablePageSizeHelpText": "Number of items to show on each page",
"TablePageSizeMaximum": "Page size must not exceed {maximumValue}",
"TablePageSizeMinimum": "Page size must be at least {minimumValue}",
"TagCannotBeDeletedWhileInUse": "Cannot be deleted while in use", "TagCannotBeDeletedWhileInUse": "Cannot be deleted while in use",
"TagDetails": "Tag Details - {label}", "TagDetails": "Tag Details - {label}",
"TagIsNotUsedAndCanBeDeleted": "Tag is not used and can be deleted", "TagIsNotUsedAndCanBeDeleted": "Tag is not used and can be deleted",
@ -1208,8 +1211,8 @@
"UILanguageHelpTextWarning": "Browser Reload Required", "UILanguageHelpTextWarning": "Browser Reload Required",
"UISettings": "UI Settings", "UISettings": "UI Settings",
"UISettingsSummary": "Calendar, date and color impaired options", "UISettingsSummary": "Calendar, date and color impaired options",
"UMask": "UMask",
"URLBase": "URL Base", "URLBase": "URL Base",
"Umask": "Umask",
"UnableToAddANewConditionPleaseTryAgain": "Unable to add a new condition, please try again.", "UnableToAddANewConditionPleaseTryAgain": "Unable to add a new condition, please try again.",
"UnableToAddANewCustomFormatPleaseTryAgain": "Unable to add a new custom format, please try again.", "UnableToAddANewCustomFormatPleaseTryAgain": "Unable to add a new custom format, please try again.",
"UnableToAddANewDownloadClientPleaseTryAgain": "Unable to add a new download client, please try again.", "UnableToAddANewDownloadClientPleaseTryAgain": "Unable to add a new download client, please try again.",