Skip to content

[Translator] First occurence in yml not read #14297

@rvanlaak

Description

@rvanlaak

Over the last few months occasionally a quite weird bug occurs. Seems to be occurring since the 2.6 branch, but don't tested that yet. Will make a reproducible test case later on.

{{ 'step'|trans({'%step%': stepNo}) }}

Not working

step: Schritt %step%
to_step: Zu Schritt %step% »

Working

stub: - empty -
step: Schritt %step%
to_step: Zu Schritt %step% »

The first translation occurrence in the yml file is not read, so the fallback message is shown. Clearing the cache does not solve it, putting a "stub" translation on top of the file does solve it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions