File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,10 @@ Messages (i.e. strings) in applications are almost never completely static.
1212They contain variables or other complex logic like pluralization. In order to
1313handle this, the Translator component supports the `ICU MessageFormat `_ syntax.
1414
15+ .. tip ::
16+
17+ You can test out examples of the ICU MessageFormatter in this `online editor `_.
18+
1519Using the ICU Message Format
1620----------------------------
1721
@@ -433,6 +437,7 @@ The ``number`` formatter allows you to format numbers using Intl's :phpclass:`Nu
433437 // "9 988 776,65 €"
434438 echo $translator->trans('value_of_object', ['value' => 9988776.65]);
435439
440+ .. _`online editor` : http://format-message.github.io/icu-message-format-for-translators/
436441.. _`ICU MessageFormat` : http://userguide.icu-project.org/formatparse/messages
437442.. _`switch statement` : https://php.net/control-structures.switch
438443.. _`Language Plural Rules` : http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html
You can’t perform that action at this time.
0 commit comments