Skip to content

No %s substitution in variants #61

@tgriessbach

Description

@tgriessbach

Hello all,
my system is
TYPO3 11.5
PHP 8.1
form_element_linked_checkbox 4.0.0

I have the following yaml configuration:

renderables:
  - identifier: gdpr
	type: LinkedCheckbox
	label: 'Ich stimme zu... Ich habe die %s zur Kenntnis genommen...'
	properties:
	  pageUid: 236
	  linkText: 'Datenschutzerklärung'
	  fluidAdditionalAttributes:
		required: required
	variants:
	  - identifier: gdpr-en
		condition: 'siteLanguage("locale") == "en_US.UTF-8"'
		label: 'I agree that my data... I have taken note of the %s, in particular...'
		properties:
		  pageUid: 236
		  linkText: 'privacy policy'

In the default Language (here german) the %s is substituted correctly.
But in the translation variant the label is shown unchanged:

I agree that my data... I have taken note of the %s, in particular...

So translation works but not the substitution.
Is my configuration wrong?
The target page has an active translation, so the link building shoud not be the issue.

I tested form_element_linked_checkbox v3.0.0 and it has the same problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions