Skip to content

Commit eed64a8

Browse files
committed
Add link to usefull online editor
1 parent 6ec443f commit eed64a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

translation/message_format.rst

+5
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Messages (i.e. strings) in applications are almost never completely static.
1212
They contain variables or other complex logic like pluralization. In order to
1313
handle 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+
1519
Using 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

0 commit comments

Comments
 (0)