@@ -20,7 +20,7 @@ Using the ICU Message Format
20
20
----------------------------
21
21
22
22
In order to use the ICU Message Format, the :ref: `message domain
23
- <using-message-domains>` has to be suffixed with ``intl-icu ``:
23
+ <using-message-domains>` has to be suffixed with ``+ intl-icu ``:
24
24
25
25
====================== ===============================
26
26
Normal file name ICU Message Format filename
@@ -45,12 +45,12 @@ The basic usage of the MessageFormat allows you to use placeholders (called
45
45
46
46
.. code-block :: yaml
47
47
48
- # translations/messages.en.yaml
48
+ # translations/messages+intl-icu .en.yaml
49
49
say_hello : ' Hello {name}!'
50
50
51
51
.. code-block :: xml
52
52
53
- <!-- translations/messages.en.xlf -->
53
+ <!-- translations/messages+intl-icu .en.xlf -->
54
54
<?xml version =" 1.0" ?>
55
55
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
56
56
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
@@ -65,7 +65,7 @@ The basic usage of the MessageFormat allows you to use placeholders (called
65
65
66
66
.. code-block :: php
67
67
68
- // translations/messages.en.php
68
+ // translations/messages+intl-icu .en.php
69
69
return [
70
70
'say_hello' => "Hello {name}!",
71
71
];
@@ -91,7 +91,7 @@ typical usage of this is gender:
91
91
92
92
.. code-block :: yaml
93
93
94
- # translations/messages.en.yaml
94
+ # translations/messages+intl-icu .en.yaml
95
95
invitation_title : >
96
96
{organizer_gender, select,
97
97
female {{organizer_name} has invited you for her party!}
@@ -101,7 +101,7 @@ typical usage of this is gender:
101
101
102
102
.. code-block :: xml
103
103
104
- <!-- translations/messages.en.xlf -->
104
+ <!-- translations/messages+intl-icu .en.xlf -->
105
105
<?xml version =" 1.0" ?>
106
106
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
107
107
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
@@ -116,7 +116,7 @@ typical usage of this is gender:
116
116
117
117
.. code-block :: php
118
118
119
- // translations/messages.en.php
119
+ // translations/messages+intl-icu .en.php
120
120
return [
121
121
'invitation_title' => '{organizer_gender, select,
122
122
female {{organizer_name} has invited you for her party!}
@@ -172,7 +172,7 @@ handle pluralization in your messages (e.g. ``There are 3 apples`` vs
172
172
173
173
.. code-block :: yaml
174
174
175
- # translations/messages.en.yaml
175
+ # translations/messages+intl-icu .en.yaml
176
176
num_of_apples : >
177
177
{apples, plural,
178
178
=0 {There are no apples}
@@ -182,7 +182,7 @@ handle pluralization in your messages (e.g. ``There are 3 apples`` vs
182
182
183
183
.. code-block :: xml
184
184
185
- <!-- translations/messages.en.xlf -->
185
+ <!-- translations/messages+intl-icu .en.xlf -->
186
186
<?xml version =" 1.0" ?>
187
187
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
188
188
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
@@ -197,7 +197,7 @@ handle pluralization in your messages (e.g. ``There are 3 apples`` vs
197
197
198
198
.. code-block :: php
199
199
200
- // translations/messages.en.php
200
+ // translations/messages+intl-icu .en.php
201
201
return [
202
202
'num_of_apples' => '{apples, plural,
203
203
=0 {There are no apples}
@@ -277,7 +277,7 @@ Similar to ``plural``, ``selectordinal`` allows you to use numbers as ordinal sc
277
277
278
278
.. code-block :: yaml
279
279
280
- # translations/messages.en.yaml
280
+ # translations/messages+intl-icu .en.yaml
281
281
finish_place : >
282
282
You finished {place, selectordinal,
283
283
one {#st}
@@ -292,7 +292,7 @@ Similar to ``plural``, ``selectordinal`` allows you to use numbers as ordinal sc
292
292
293
293
.. code-block :: xml
294
294
295
- <!-- translations/messages.en.xlf -->
295
+ <!-- translations/messages+intl-icu .en.xlf -->
296
296
<?xml version =" 1.0" ?>
297
297
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
298
298
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
@@ -314,7 +314,7 @@ Similar to ``plural``, ``selectordinal`` allows you to use numbers as ordinal sc
314
314
315
315
.. code-block :: php
316
316
317
- // translations/messages.en.php
317
+ // translations/messages+intl-icu .en.php
318
318
return [
319
319
'finish_place' => 'You finished {place, selectordinal,
320
320
one {#st}
@@ -351,12 +351,12 @@ using the :phpclass:`IntlDateFormatter`:
351
351
352
352
.. code-block :: yaml
353
353
354
- # translations/messages.en.yaml
354
+ # translations/messages+intl-icu .en.yaml
355
355
published_at : ' Published at {publication_date, date} - {publication_date, time, short}'
356
356
357
357
.. code-block :: xml
358
358
359
- <!-- translations/messages.en.xlf -->
359
+ <!-- translations/messages+intl-icu .en.xlf -->
360
360
<?xml version =" 1.0" ?>
361
361
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
362
362
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
@@ -371,7 +371,7 @@ using the :phpclass:`IntlDateFormatter`:
371
371
372
372
.. code-block :: php
373
373
374
- // translations/messages.en.php
374
+ // translations/messages+intl-icu .en.php
375
375
return [
376
376
'published_at' => 'Published at {publication_date, date} - {publication_date, time, short}',
377
377
];
@@ -393,13 +393,13 @@ The ``number`` formatter allows you to format numbers using Intl's :phpclass:`Nu
393
393
394
394
.. code-block :: yaml
395
395
396
- # translations/messages.en.yaml
396
+ # translations/messages+intl-icu .en.yaml
397
397
progress : ' {progress, number, percent} of the work is done'
398
398
value_of_object : ' This artifact is worth {value, number, currency}'
399
399
400
400
.. code-block :: xml
401
401
402
- <!-- translations/messages.en.xlf -->
402
+ <!-- translations/messages+intl-icu .en.xlf -->
403
403
<?xml version =" 1.0" ?>
404
404
<xliff version =" 1.2" xmlns =" urn:oasis:names:tc:xliff:document:1.2" >
405
405
<file source-language =" en" datatype =" plaintext" original =" file.ext" >
@@ -419,7 +419,7 @@ The ``number`` formatter allows you to format numbers using Intl's :phpclass:`Nu
419
419
420
420
.. code-block :: php
421
421
422
- // translations/messages.en.php
422
+ // translations/messages+intl-icu .en.php
423
423
return [
424
424
'progress' => '{progress, number, percent} of the work is done',
425
425
'value_of_object' => 'This artifact is worth {value, number, currency}',
0 commit comments