Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit58d3c57

Browse files
gagarineweaverryan
authored andcommitted
Use the passed variable in the translated text.
1 parent1b417c5 commit58d3c57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎book/translation.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ You can also specify the message domain and pass some additional variables:
746746
{% trans with {'%name%': 'Fabien'} from "app" into "fr" %}Hello %name%{% endtrans %}
747747
748748
{% transchoice count with {'%name%': 'Fabien'} from "app" %}
749-
{0}Thereis no apples|{1}Thereis one apple|]1,Inf]There are %count% apples
749+
{0}%name%, thereis no apples|{1}%name%, thereis one apple|]1,Inf]%name%, there are %count% apples
750750
{% endtranschoice %}
751751
752752
The ``trans`` and ``transchoice`` filters can be used to translate *variable

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp