Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate strings in variable #3

Open
SanderVanKeer opened this issue Jan 14, 2021 · 0 comments
Open

Translate strings in variable #3

SanderVanKeer opened this issue Jan 14, 2021 · 0 comments

Comments

@SanderVanKeer
Copy link

SanderVanKeer commented Jan 14, 2021

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.

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

No branches or pull requests

1 participant