Skip to content

specify context for translation block#1559

Merged
davidism merged 1 commit intomainfrom
i18n-context-block
Dec 26, 2021
Merged

specify context for translation block#1559
davidism merged 1 commit intomainfrom
i18n-context-block

Conversation

@davidism
Copy link
Copy Markdown
Member

A context string can be passed as the first token to a {% trans %} block to use pgettext and npgettext.

{% trans "title" trimmed count=count %}

fixes #1430

@davidism davidism added this to the 3.1.0 milestone Dec 26, 2021
@davidism davidism merged commit 4f5c79c into main Dec 26, 2021
@davidism davidism deleted the i18n-context-block branch December 26, 2021 18:55
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jan 10, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add block syntax for pgettext

1 participant