Skip to content

[BUGFIX] f:translate: argument keys start at 0 - #336

Open
karlisrikmanis wants to merge 1 commit into
TYPO3-Documentation:mainfrom
karlisrikmanis:bugfix/translate-positional-arguments
Open

karlisrikmanis wants to merge 1 commit into
TYPO3-Documentation:mainfrom
karlisrikmanis:bugfix/translate-positional-arguments

Conversation

@karlisrikmanis

Copy link
Copy Markdown

The example arguments="{1: '{myVariable}', 2: 'Some String'}" does not fill %1$s and %2$s: keys
that are not a list make TYPO3 format the label as an ICU message, and the placeholders stay in the output. The
example now uses the keys 0 and 1, and the text explains how the keys map to %1$s, %2$s.

Releases: main, 14.3
Assisted-by: Claude Opus 5.5 noreply@anthropic.com
Signed-off-by: Karlis Rikmanis kr@mandarin.digital

The example `arguments="{1: '{myVariable}', 2: 'Some String'}"` does not fill `%1$s` and `%2$s`: keys
that are not a list make TYPO3 format the label as an ICU message, and the placeholders stay in the output. The
example now uses the keys 0 and 1, and the text explains how the keys map to `%1$s`, `%2$s`.

Releases: main, 14.3
Assisted-by: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Karlis Rikmanis <kr@mandarin.digital>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant