Skip to content

Commit 483b670

Browse files
committed
Recommending real message id for shared bundles
1 parent 8f1ea12 commit 483b670

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

components/translation/usage.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ recommended format. These files are parsed by one of the loader classes.
164164
read "Symfony is really great" in the default locale.
165165

166166
The choice of which method to use is entirely up to you, but the "keyword"
167-
format is often recommended.
167+
format is often recommended for multi-language applications, whereas for
168+
shared bundles that contain translation resources we recommended the real
169+
message, so you application can choose to disable the translator layer
170+
and you will see a readable message.
168171

169172
Additionally, the ``php`` and ``yaml`` file formats support nested ids to
170173
avoid repeating yourself if you use keywords instead of real text for your
@@ -351,7 +354,7 @@ effect after removing the explicit rules:
351354
'{0} There are no apples|[20,Inf[ There are many apples|There is one apple|a_few: There are %count% apples'
352355
353356
For example, for ``1`` apple, the standard rule ``There is one apple`` will
354-
be used. For ``2-19`` apples, the second standard rule
357+
be used. For ``2-19`` apples, the second standard rule
355358
``There are %count% apples`` will be selected.
356359

357360
An :class:`Symfony\\Component\\Translation\\Interval` can represent a finite set

0 commit comments

Comments
 (0)