From 4a41c67dfe30c856e03c0cbc1f4be0eaa323f5ce Mon Sep 17 00:00:00 2001 From: Stevie Robinson Date: Tue, 29 Aug 2023 04:27:47 +0200 Subject: [PATCH] Fix missing translations and correct some keys (cherry picked from commit ce4ac7594192fa8f63ba239607be61d229c24ce1) --- frontend/src/Activity/Queue/QueueOptions.js | 2 +- frontend/src/Activity/Queue/TimeleftCell.js | 2 +- .../Filter/Builder/FilterBuilderRowValueTag.js | 10 ++++++---- frontend/src/Components/Form/UMaskInput.js | 2 +- .../Table/TableOptions/TableOptionsModal.js | 8 ++++---- .../CustomFormats/ImportCustomFormatModalContent.js | 2 +- src/NzbDrone.Core/Localization/Core/en.json | 13 ++++++++----- 7 files changed, 22 insertions(+), 17 deletions(-) diff --git a/frontend/src/Activity/Queue/QueueOptions.js b/frontend/src/Activity/Queue/QueueOptions.js index 63a1fc422..adf0c25b1 100644 --- a/frontend/src/Activity/Queue/QueueOptions.js +++ b/frontend/src/Activity/Queue/QueueOptions.js @@ -61,7 +61,7 @@ class QueueOptions extends Component { type={inputTypes.CHECK} name="includeUnknownMovieItems" value={includeUnknownMovieItems} - helpText={translate('ShownUnknownMovieItemsHelpText')} + helpText={translate('ShowUnknownMovieItemsHelpText')} onChange={this.onOptionChange} /> diff --git a/frontend/src/Activity/Queue/TimeleftCell.js b/frontend/src/Activity/Queue/TimeleftCell.js index 5677af2ee..ab1134b8c 100644 --- a/frontend/src/Activity/Queue/TimeleftCell.js +++ b/frontend/src/Activity/Queue/TimeleftCell.js @@ -41,7 +41,7 @@ function TimeleftCell(props) { return ( - diff --git a/frontend/src/Components/Filter/Builder/FilterBuilderRowValueTag.js b/frontend/src/Components/Filter/Builder/FilterBuilderRowValueTag.js index 4408c87b3..5214632a5 100644 --- a/frontend/src/Components/Filter/Builder/FilterBuilderRowValueTag.js +++ b/frontend/src/Components/Filter/Builder/FilterBuilderRowValueTag.js @@ -2,6 +2,7 @@ import PropTypes from 'prop-types'; import React from 'react'; import TagInputTag from 'Components/Form/TagInputTag'; import { kinds } from 'Helpers/Props'; +import translate from 'Utilities/String/translate'; import styles from './FilterBuilderRowValueTag.css'; function FilterBuilderRowValueTag(props) { @@ -15,10 +16,11 @@ function FilterBuilderRowValueTag(props) { /> { - !props.isLastTag && - - or - + props.isLastTag ? + null : +
+ {translate('Or')} +
} ); diff --git a/frontend/src/Components/Form/UMaskInput.js b/frontend/src/Components/Form/UMaskInput.js index 6480d8084..dcbee09ec 100644 --- a/frontend/src/Components/Form/UMaskInput.js +++ b/frontend/src/Components/Form/UMaskInput.js @@ -102,7 +102,7 @@ class UMaskInput extends Component {
- +
{umask}
diff --git a/frontend/src/Components/Table/TableOptions/TableOptionsModal.js b/frontend/src/Components/Table/TableOptions/TableOptionsModal.js index 80613de68..42961676f 100644 --- a/frontend/src/Components/Table/TableOptions/TableOptionsModal.js +++ b/frontend/src/Components/Table/TableOptions/TableOptionsModal.js @@ -51,9 +51,9 @@ class TableOptionsModal extends Component { let pageSizeError = null; if (value < 5) { - pageSizeError = 'Page size must be at least 5'; + pageSizeError = translate('TablePageSizeMinimum', { minimumValue: '5' }); } else if (value > 250) { - pageSizeError = 'Page size must not exceed 250'; + pageSizeError = translate('TablePageSizeMaximum', { maximumValue: '250' }); } else { this.props.onTableOptionChange({ pageSize: value }); } @@ -145,13 +145,13 @@ class TableOptionsModal extends Component { { hasPageSize ? - {translate('PageSize')} + {translate('TablePageSize')} diff --git a/frontend/src/Settings/CustomFormats/CustomFormats/ImportCustomFormatModalContent.js b/frontend/src/Settings/CustomFormats/CustomFormats/ImportCustomFormatModalContent.js index 5e2658801..d6cf2feb0 100644 --- a/frontend/src/Settings/CustomFormats/CustomFormats/ImportCustomFormatModalContent.js +++ b/frontend/src/Settings/CustomFormats/CustomFormats/ImportCustomFormatModalContent.js @@ -106,7 +106,7 @@ class ImportCustomFormatModalContent extends Component {
- {translate('CustomFormatJSON')} + {translate('CustomFormatJson')}