mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Translations for Auth Settings
This commit is contained in:
@@ -12,6 +12,7 @@ import ModalFooter from 'Components/Modal/ModalFooter';
|
|||||||
import ModalHeader from 'Components/Modal/ModalHeader';
|
import ModalHeader from 'Components/Modal/ModalHeader';
|
||||||
import { inputTypes, kinds } from 'Helpers/Props';
|
import { inputTypes, kinds } from 'Helpers/Props';
|
||||||
import { authenticationMethodOptions, authenticationRequiredOptions, authenticationRequiredWarning } from 'Settings/General/SecuritySettings';
|
import { authenticationMethodOptions, authenticationRequiredOptions, authenticationRequiredWarning } from 'Settings/General/SecuritySettings';
|
||||||
|
import translate from 'Utilities/String/translate';
|
||||||
import styles from './AuthenticationRequiredModalContent.css';
|
import styles from './AuthenticationRequiredModalContent.css';
|
||||||
|
|
||||||
function onModalClose() {
|
function onModalClose() {
|
||||||
@@ -54,7 +55,7 @@ function AuthenticationRequiredModalContent(props) {
|
|||||||
onModalClose={onModalClose}
|
onModalClose={onModalClose}
|
||||||
>
|
>
|
||||||
<ModalHeader>
|
<ModalHeader>
|
||||||
Authentication Required
|
{translate('AuthenticationRequired')}
|
||||||
</ModalHeader>
|
</ModalHeader>
|
||||||
|
|
||||||
<ModalBody>
|
<ModalBody>
|
||||||
@@ -69,13 +70,13 @@ function AuthenticationRequiredModalContent(props) {
|
|||||||
isPopulated && !error ?
|
isPopulated && !error ?
|
||||||
<div>
|
<div>
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<FormLabel>Authentication</FormLabel>
|
<FormLabel>{translate('Authentication')}</FormLabel>
|
||||||
|
|
||||||
<FormInputGroup
|
<FormInputGroup
|
||||||
type={inputTypes.SELECT}
|
type={inputTypes.SELECT}
|
||||||
name="authenticationMethod"
|
name="authenticationMethod"
|
||||||
values={authenticationMethodOptions}
|
values={authenticationMethodOptions}
|
||||||
helpText="Require Username and Password to access Sonarr"
|
helpText={translate('AuthenticationMethodHelpText')}
|
||||||
onChange={onInputChange}
|
onChange={onInputChange}
|
||||||
{...authenticationMethod}
|
{...authenticationMethod}
|
||||||
/>
|
/>
|
||||||
@@ -84,13 +85,13 @@ function AuthenticationRequiredModalContent(props) {
|
|||||||
{
|
{
|
||||||
authenticationEnabled ?
|
authenticationEnabled ?
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<FormLabel>Authentication Required</FormLabel>
|
<FormLabel>{translate('AuthenticationRequired')}</FormLabel>
|
||||||
|
|
||||||
<FormInputGroup
|
<FormInputGroup
|
||||||
type={inputTypes.SELECT}
|
type={inputTypes.SELECT}
|
||||||
name="authenticationRequired"
|
name="authenticationRequired"
|
||||||
values={authenticationRequiredOptions}
|
values={authenticationRequiredOptions}
|
||||||
helpText="Change which requests authentication is required for. Do not change unless you understand the risks."
|
helpText={translate('AuthenticationRequiredHelpText')}
|
||||||
onChange={onInputChange}
|
onChange={onInputChange}
|
||||||
{...authenticationRequired}
|
{...authenticationRequired}
|
||||||
/>
|
/>
|
||||||
@@ -101,7 +102,7 @@ function AuthenticationRequiredModalContent(props) {
|
|||||||
{
|
{
|
||||||
authenticationEnabled ?
|
authenticationEnabled ?
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<FormLabel>Username</FormLabel>
|
<FormLabel>{translate('Username')}</FormLabel>
|
||||||
|
|
||||||
<FormInputGroup
|
<FormInputGroup
|
||||||
type={inputTypes.TEXT}
|
type={inputTypes.TEXT}
|
||||||
@@ -116,7 +117,7 @@ function AuthenticationRequiredModalContent(props) {
|
|||||||
{
|
{
|
||||||
authenticationEnabled ?
|
authenticationEnabled ?
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<FormLabel>Password</FormLabel>
|
<FormLabel>{translate('Password')}</FormLabel>
|
||||||
|
|
||||||
<FormInputGroup
|
<FormInputGroup
|
||||||
type={inputTypes.PASSWORD}
|
type={inputTypes.PASSWORD}
|
||||||
@@ -143,7 +144,7 @@ function AuthenticationRequiredModalContent(props) {
|
|||||||
isDisabled={!authenticationEnabled}
|
isDisabled={!authenticationEnabled}
|
||||||
onPress={onSavePress}
|
onPress={onSavePress}
|
||||||
>
|
>
|
||||||
Save
|
{translate('Save')}
|
||||||
</SpinnerButton>
|
</SpinnerButton>
|
||||||
</ModalFooter>
|
</ModalFooter>
|
||||||
</ModalContent>
|
</ModalContent>
|
||||||
|
@@ -11,7 +11,7 @@ import ConfirmModal from 'Components/Modal/ConfirmModal';
|
|||||||
import { icons, inputTypes, kinds } from 'Helpers/Props';
|
import { icons, inputTypes, kinds } from 'Helpers/Props';
|
||||||
import translate from 'Utilities/String/translate';
|
import translate from 'Utilities/String/translate';
|
||||||
|
|
||||||
export const authenticationRequiredWarning = 'To prevent remote access without authentication, Sonarr now requires authentication to be enabled. You can optionally disable authentication from local addresses.';
|
export const authenticationRequiredWarning = translate('AuthenticationRequiredWarning');
|
||||||
|
|
||||||
export const authenticationMethodOptions = [
|
export const authenticationMethodOptions = [
|
||||||
{ key: 'none', value: 'None', isDisabled: true },
|
{ key: 'none', value: 'None', isDisabled: true },
|
||||||
@@ -104,13 +104,13 @@ class SecuritySettings extends Component {
|
|||||||
{
|
{
|
||||||
authenticationEnabled ?
|
authenticationEnabled ?
|
||||||
<FormGroup>
|
<FormGroup>
|
||||||
<FormLabel>Authentication Required</FormLabel>
|
<FormLabel>{translate('AuthenticationRequired')}</FormLabel>
|
||||||
|
|
||||||
<FormInputGroup
|
<FormInputGroup
|
||||||
type={inputTypes.SELECT}
|
type={inputTypes.SELECT}
|
||||||
name="authenticationRequired"
|
name="authenticationRequired"
|
||||||
values={authenticationRequiredOptions}
|
values={authenticationRequiredOptions}
|
||||||
helpText="Change which requests authentication is required for. Do not change unless you understand the risks."
|
helpText={translate('AuthenticationRequiredHelpText')}
|
||||||
onChange={onInputChange}
|
onChange={onInputChange}
|
||||||
{...authenticationRequired}
|
{...authenticationRequired}
|
||||||
/>
|
/>
|
||||||
|
@@ -45,6 +45,9 @@
|
|||||||
"Auth": "Auth",
|
"Auth": "Auth",
|
||||||
"Authentication": "Authentication",
|
"Authentication": "Authentication",
|
||||||
"AuthenticationMethodHelpText": "Require Username and Password to access Prowlarr",
|
"AuthenticationMethodHelpText": "Require Username and Password to access Prowlarr",
|
||||||
|
"AuthenticationRequired": "Authentication Required",
|
||||||
|
"AuthenticationRequiredHelpText": "Change which requests authentication is required for. Do not change unless you understand the risks.",
|
||||||
|
"AuthenticationRequiredWarning": "To prevent remote access without authentication, Prowlarr now requires authentication to be enabled. You can optionally disable authentication from local addresses.",
|
||||||
"Automatic": "Automatic",
|
"Automatic": "Automatic",
|
||||||
"AutomaticSearch": "Automatic Search",
|
"AutomaticSearch": "Automatic Search",
|
||||||
"Backup": "Backup",
|
"Backup": "Backup",
|
||||||
|
Reference in New Issue
Block a user