mirror of
https://github.com/Radarr/Radarr.git
synced 2024-08-18 08:19:38 +02:00
Translate Frontend Organize + Rename modal
(cherry picked from commit 866fbc7f093c34e4414734f90e756e2f6870d84a) Closes #9054
This commit is contained in:
parent
11c7446cbe
commit
4bbc166040
@ -4,6 +4,7 @@ import Alert from 'Components/Alert';
|
|||||||
import CheckInput from 'Components/Form/CheckInput';
|
import CheckInput from 'Components/Form/CheckInput';
|
||||||
import Button from 'Components/Link/Button';
|
import Button from 'Components/Link/Button';
|
||||||
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
|
import LoadingIndicator from 'Components/Loading/LoadingIndicator';
|
||||||
|
import InlineMarkdown from 'Components/Markdown/InlineMarkdown';
|
||||||
import ModalBody from 'Components/Modal/ModalBody';
|
import ModalBody from 'Components/Modal/ModalBody';
|
||||||
import ModalContent from 'Components/Modal/ModalContent';
|
import ModalContent from 'Components/Modal/ModalContent';
|
||||||
import ModalFooter from 'Components/Modal/ModalFooter';
|
import ModalFooter from 'Components/Modal/ModalFooter';
|
||||||
@ -92,7 +93,7 @@ class OrganizePreviewModalContent extends Component {
|
|||||||
return (
|
return (
|
||||||
<ModalContent onModalClose={onModalClose}>
|
<ModalContent onModalClose={onModalClose}>
|
||||||
<ModalHeader>
|
<ModalHeader>
|
||||||
{translate('OrganizeAndRename')}
|
{translate('OrganizeModalHeader')}
|
||||||
</ModalHeader>
|
</ModalHeader>
|
||||||
|
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
@ -103,9 +104,7 @@ class OrganizePreviewModalContent extends Component {
|
|||||||
|
|
||||||
{
|
{
|
||||||
!isFetching && error &&
|
!isFetching && error &&
|
||||||
<div>
|
<div>{translate('OrganizeLoadError')}</div>
|
||||||
{translate('ErrorLoadingPreviews')}
|
|
||||||
</div>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
@ -113,8 +112,8 @@ class OrganizePreviewModalContent extends Component {
|
|||||||
<div>
|
<div>
|
||||||
{
|
{
|
||||||
renameMovies ?
|
renameMovies ?
|
||||||
<div>{translate('OrganizeModalSuccess')}</div> :
|
<div>{translate('OrganizeNothingToRename')}</div> :
|
||||||
<div>{translate('OrganizeModalDisabled')}</div>
|
<div>{translate('OrganizeRenamingDisabled')}</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
@ -124,17 +123,11 @@ class OrganizePreviewModalContent extends Component {
|
|||||||
<div>
|
<div>
|
||||||
<Alert>
|
<Alert>
|
||||||
<div>
|
<div>
|
||||||
{translate('OrganizeModalAllPathsRelative')}
|
<InlineMarkdown data={translate('OrganizeRelativePaths', { path })} blockClassName={styles.path} />
|
||||||
<span className={styles.path}>
|
|
||||||
{path}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
{translate('OrganizeModalNamingPattern')}
|
<InlineMarkdown data={translate('OrganizeNamingPattern', { standardMovieFormat })} blockClassName={styles.standardMovieFormat} />
|
||||||
<span className={styles.standardMovieFormat}>
|
|
||||||
{standardMovieFormat}
|
|
||||||
</span>
|
|
||||||
</div>
|
</div>
|
||||||
</Alert>
|
</Alert>
|
||||||
|
|
||||||
|
@ -375,7 +375,6 @@
|
|||||||
"Ended": "Ended",
|
"Ended": "Ended",
|
||||||
"Error": "Error",
|
"Error": "Error",
|
||||||
"ErrorLoadingContents": "Error loading contents",
|
"ErrorLoadingContents": "Error loading contents",
|
||||||
"ErrorLoadingPreviews": "Error loading previews",
|
|
||||||
"ErrorRestoringBackup": "Error restoring backup",
|
"ErrorRestoringBackup": "Error restoring backup",
|
||||||
"EventType": "Event Type",
|
"EventType": "Event Type",
|
||||||
"Events": "Events",
|
"Events": "Events",
|
||||||
@ -787,12 +786,13 @@
|
|||||||
"Options": "Options",
|
"Options": "Options",
|
||||||
"Or": "or",
|
"Or": "or",
|
||||||
"Organize": "Organize",
|
"Organize": "Organize",
|
||||||
"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)?",
|
||||||
"OrganizeModalAllPathsRelative": "All paths are relative to:",
|
"OrganizeLoadError": "Error loading previews",
|
||||||
"OrganizeModalDisabled": "Renaming is disabled, nothing to rename",
|
"OrganizeModalHeader": "Organize & Rename",
|
||||||
"OrganizeModalNamingPattern": "Naming Pattern:",
|
"OrganizeNamingPattern": "Naming pattern: `{standardMovieFormat}`",
|
||||||
"OrganizeModalSuccess": "Success! My work is done, no files to rename.",
|
"OrganizeNothingToRename": "Success! My work is done, no files to rename.",
|
||||||
|
"OrganizeRelativePaths": "All paths are relative to: `{path}`",
|
||||||
|
"OrganizeRenamingDisabled": "Renaming is disabled, nothing to rename",
|
||||||
"OrganizeSelectedMovies": "Organize Selected Movies",
|
"OrganizeSelectedMovies": "Organize Selected Movies",
|
||||||
"Original": "Original",
|
"Original": "Original",
|
||||||
"OriginalLanguage": "Original Language",
|
"OriginalLanguage": "Original Language",
|
||||||
|
Loading…
Reference in New Issue
Block a user