Skip to content

Commit 161a9e9

Browse files
committed
Made IPN format help placeholder translatable
1 parent 3649fff commit 161a9e9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/Settings/MiscSettings/IpnSuggestSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class IpnSuggestSettings
5353
label: new TM("settings.misc.ipn_suggest.regex_help"),
5454
description: new TM("settings.misc.ipn_suggest.regex_help_description"),
5555
options: ['type' => StringType::class],
56-
formOptions: ['attr' => ['placeholder' => 'Format: 3–4 alphanumeric segments (any number) separated by "-", followed by "-" and 4 digits, e.g., PCOM-RES-0001']],
56+
formOptions: ['attr' => ['placeholder' => new TM('settings.misc.ipn_suggest.regex.help.placeholder')]],
5757
envVar: "IPN_SUGGEST_REGEX_HELP", envVarMode: EnvVarMode::OVERWRITE,
5858
)]
5959
public ?string $regexHelp = null;

translations/messages.en.xlf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14472,5 +14472,11 @@ Please note that this system is currently experimental, and the synonyms defined
1447214472
<target>Show</target>
1447314473
</segment>
1447414474
</unit>
14475+
<unit id="PVw6Lx4" name="settings.misc.ipn_suggest.regex.help.placeholder">
14476+
<segment>
14477+
<source>settings.misc.ipn_suggest.regex.help.placeholder</source>
14478+
<target>e.g. Format: 3–4 alphanumeric segments (any number) separated by "-", followed by "-" and 4 digits, e.g., PCOM-RES-0001</target>
14479+
</segment>
14480+
</unit>
1447514481
</file>
1447614482
</xliff>

0 commit comments

Comments
 (0)