Skip to content

Translate strings in variable #3

@SanderVanKeer

Description

@SanderVanKeer

When generating the po-files, in some cases the string is not pushed to the po-files.

works fine:
{% set translation = "My string"|trans %}

Doesn't work:

{% set translation = "My string"|trans  `%}
{% set translation_2 = translation ~ "My second string"|trans %}

"My second string" will not be pushed to the po-files.
When the translated string is already in the po-files, the |trans filter works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions