Skip to content

Commit bf8be76

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 parents 92687fc + b568029 commit bf8be76

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
@@ -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-unit id="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)