mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-19 21:44:30 -04:00
Add Regular Expression Custom Format translation
(cherry picked from commit 9f50166fa62a71d0a23e2c2d331651792285dc0e) Closes #3256
This commit is contained in:
+1
-1
@@ -49,7 +49,7 @@ function EditSpecificationModalContent(props) {
|
|||||||
{...otherProps}
|
{...otherProps}
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
fields && fields.some((x) => x.label === 'Regular Expression') &&
|
fields && fields.some((x) => x.label === translate('CustomFormatsSpecificationRegularExpression')) &&
|
||||||
<Alert kind={kinds.INFO}>
|
<Alert kind={kinds.INFO}>
|
||||||
<div>
|
<div>
|
||||||
<div dangerouslySetInnerHTML={{ __html: 'This condition matches using Regular Expressions. Note that the characters <code>\\^$.|?*+()[{</code> have special meanings and need escaping with a <code>\\</code>' }} />
|
<div dangerouslySetInnerHTML={{ __html: 'This condition matches using Regular Expressions. Note that the characters <code>\\^$.|?*+()[{</code> have special meanings and need escaping with a <code>\\</code>' }} />
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ namespace NzbDrone.Core.CustomFormats
|
|||||||
protected Regex _regex;
|
protected Regex _regex;
|
||||||
protected string _raw;
|
protected string _raw;
|
||||||
|
|
||||||
[FieldDefinition(1, Label = "Regular Expression", HelpText = "Custom Format RegEx is Case Insensitive")]
|
[FieldDefinition(1, Label = "CustomFormatsSpecificationRegularExpression", HelpText = "CustomFormatsSpecificationRegularExpressionHelpText")]
|
||||||
public string Value
|
public string Value
|
||||||
{
|
{
|
||||||
get => _raw;
|
get => _raw;
|
||||||
|
|||||||
@@ -151,7 +151,7 @@
|
|||||||
"Columns": "Columns",
|
"Columns": "Columns",
|
||||||
"CompletedDownloadHandling": "Completed Download Handling",
|
"CompletedDownloadHandling": "Completed Download Handling",
|
||||||
"Component": "Component",
|
"Component": "Component",
|
||||||
"Conditions": "'Conditions'",
|
"Conditions": "Conditions",
|
||||||
"Connect": "Connect",
|
"Connect": "Connect",
|
||||||
"ConnectSettings": "Connect Settings",
|
"ConnectSettings": "Connect Settings",
|
||||||
"ConnectSettingsSummary": "Notifications, connections to media servers/players and custom scripts",
|
"ConnectSettingsSummary": "Notifications, connections to media servers/players and custom scripts",
|
||||||
@@ -181,6 +181,8 @@
|
|||||||
"CustomFormatScore": "Custom Format Score",
|
"CustomFormatScore": "Custom Format Score",
|
||||||
"CustomFormatSettings": "Custom Format Settings",
|
"CustomFormatSettings": "Custom Format Settings",
|
||||||
"CustomFormats": "Custom Formats",
|
"CustomFormats": "Custom Formats",
|
||||||
|
"CustomFormatsSpecificationRegularExpression": "Regular Expression",
|
||||||
|
"CustomFormatsSpecificationRegularExpressionHelpText": "Custom Format RegEx is Case Insensitive",
|
||||||
"CutoffFormatScoreHelpText": "Once this custom format score is reached Readarr will no longer grab book releases",
|
"CutoffFormatScoreHelpText": "Once this custom format score is reached Readarr will no longer grab book releases",
|
||||||
"CutoffHelpText": "Once this quality is reached Readarr will no longer download books",
|
"CutoffHelpText": "Once this quality is reached Readarr will no longer download books",
|
||||||
"CutoffUnmet": "Cutoff Unmet",
|
"CutoffUnmet": "Cutoff Unmet",
|
||||||
|
|||||||
Reference in New Issue
Block a user