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

Commitbf8be76

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Minor Minor. refs#12949 [Translation] Added tip about the incompatibility of % character
2 parents92687fc +b568029 commitbf8be76

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

‎translation/message_format.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,13 @@ The basic usage of the MessageFormat allows you to use placeholders (called
6666
'say_hello' => "Hello {name}!",
6767
];
6868
69+
70+
..caution::
71+
72+
With the previous format, placeholders were often named between ``%``. This
73+
character is no longer valid with the ICU MessageFormat syntax. Be careful
74+
to rename your parameters.
75+
6976
Everything within the curly braces (``{...}``) is processed by the formatter
7077
and replaced by its placeholder::
7178

@@ -104,7 +111,7 @@ typical usage of this is gender:
104111
<body>
105112
<trans-unitid="invitation_title">
106113
<source>invitation_title</source>
107-
<target>{organizer_gender, select,
114+
<target>{organizer_gender, select,
108115
female {{organizer_name} has invited you for her party!}
109116
male {{organizer_name} has invited you for his party!}
110117
other {{organizer_name} have invited you for their party!}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp