Skip to content

Commit b568029

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Minor Minor. refs #12949 [Translation] Added tip about the incompatibility of % character
2 parents f54418c + 1111c0b commit b568029

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

translation/message_format.rst

+8-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ The basic usage of the MessageFormat allows you to use placeholders (called
7070
'say_hello' => "Hello {name}!",
7171
];
7272
73+
74+
.. caution::
75+
76+
With the previous format, placeholders were often named between ``%``. This
77+
character is no longer valid with the ICU MessageFormat syntax. Be careful
78+
to rename your parameters.
79+
7380
Everything within the curly braces (``{...}``) is processed by the formatter
7481
and replaced by its placeholder::
7582

@@ -108,7 +115,7 @@ typical usage of this is gender:
108115
<body>
109116
<trans-unit id="invitation_title">
110117
<source>invitation_title</source>
111-
<target>{organizer_gender, select,
118+
<target>{organizer_gender, select,
112119
female {{organizer_name} has invited you for her party!}
113120
male {{organizer_name} has invited you for his party!}
114121
other {{organizer_name} have invited you for their party!}

0 commit comments

Comments
 (0)