Skip to content

Commit 3e74eb1

Browse files
committed
minor #21286 [Translation] Mention that you need to install the PHP extension (javiereguiluz)
This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [Translation] Mention that you need to install the PHP extension Related to #21285, I propose to mention that you must have the `intl` PHP extension for proper translation and localization. Commits ------- 0683d25 [Translation] Mention that you need to install the PHP extension
2 parents 319da2a + 0683d25 commit 3e74eb1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

translation.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@ First, run this command to install the translator before using it:
5252
5353
$ composer require symfony/translation
5454
55+
Symfony includes several internationalization polyfills (``symfony/polyfill-intl-icu``,
56+
``symfony/polyfill-intl-messageformatter``, etc.) that allow you to use translation
57+
features even without the `PHP intl extension`_. However, these polyfills only
58+
support English translations, so you must install the PHP ``intl`` extension
59+
when translating into other languages.
60+
5561
.. _translation-configuration:
5662

5763
Configuration
@@ -1595,6 +1601,7 @@ Learn more
15951601
.. _`ICU MessageFormat`: https://unicode-org.github.io/icu/userguide/format_parse/messages/
15961602
.. _`ISO 3166-1 alpha-2`: https://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
15971603
.. _`ISO 639-1`: https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
1604+
.. _`PHP intl extension`: https://php.net/book.intl
15981605
.. _`Translatable Extension`: https://github.com/doctrine-extensions/DoctrineExtensions/blob/main/doc/translatable.md
15991606
.. _`Translatable Behavior`: https://github.com/KnpLabs/DoctrineBehaviors
16001607
.. _`Custom Language Name setting`: https://docs.lokalise.com/en/articles/1400492-uploading-files#custom-language-codes

0 commit comments

Comments
 (0)