mirror of
https://github.com/lidarr/Lidarr
synced 2025-01-03 05:25:10 +00:00
Add Regular Expression Custom Format translation
(cherry picked from commit 9f50166fa62a71d0a23e2c2d331651792285dc0e) Closes #4506
This commit is contained in:
parent
7ff23ccadb
commit
4a5cd2098b
3 changed files with 4 additions and 2 deletions
|
@ -49,7 +49,7 @@ function EditSpecificationModalContent(props) {
|
|||
{...otherProps}
|
||||
>
|
||||
{
|
||||
fields && fields.some((x) => x.label === 'Regular Expression') &&
|
||||
fields && fields.some((x) => x.label === translate('CustomFormatsSpecificationRegularExpression')) &&
|
||||
<Alert kind={kinds.INFO}>
|
||||
<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>' }} />
|
||||
|
|
|
@ -21,7 +21,7 @@ public abstract class RegexSpecificationBase : CustomFormatSpecificationBase
|
|||
protected Regex _regex;
|
||||
protected string _raw;
|
||||
|
||||
[FieldDefinition(1, Label = "Regular Expression", HelpText = "Custom Format RegEx is Case Insensitive")]
|
||||
[FieldDefinition(1, Label = "CustomFormatsSpecificationRegularExpression", HelpText = "CustomFormatsSpecificationRegularExpressionHelpText")]
|
||||
public string Value
|
||||
{
|
||||
get => _raw;
|
||||
|
|
|
@ -239,6 +239,8 @@
|
|||
"CustomFormatScore": "Custom Format Score",
|
||||
"CustomFormatSettings": "Custom Format Settings",
|
||||
"CustomFormats": "Custom Formats",
|
||||
"CustomFormatsSpecificationRegularExpression": "Regular Expression",
|
||||
"CustomFormatsSpecificationRegularExpressionHelpText": "Custom Format RegEx is Case Insensitive",
|
||||
"Customformat": "Custom Format",
|
||||
"CutoffFormatScoreHelpText": "Once this custom format score is reached {appName} will no longer grab album releases",
|
||||
"CutoffHelpText": "Once this quality is reached {appName} will no longer download albums",
|
||||
|
|
Loading…
Reference in a new issue