Tweak wording on docs

This commit is contained in:
Fabien Potencier
2021-04-10 09:41:46 +02:00
parent 9266f505bc
commit 33729ab9a3
19 changed files with 132 additions and 37 deletions
+7 -2
View File
@@ -29,8 +29,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -32,8 +32,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -32,8 +32,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+6 -1
View File
@@ -32,7 +32,12 @@ The ``data_uri`` filter generates a URL using the data scheme as defined in
$ composer require twig/html-extra
On Symfony projects, install the ``twig/extra-bundle``: ``composer require twig/extra-bundle``
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Html\HtmlExtension;
+7 -2
View File
@@ -60,8 +60,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -17,8 +17,13 @@ the :doc:`format_datetime<format_datetime>` filter, but without the time.
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -53,8 +53,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -100,8 +100,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -17,8 +17,13 @@ the :doc:`format_datetime<format_datetime>` filter, but without the date.
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -32,8 +32,13 @@ You can also use the filter on an included file:
$ composer require twig/inky-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Inky\InkyExtension;
+7 -2
View File
@@ -56,8 +56,13 @@ Note that the CSS inliner works on an entire HTML document, not a fragment.
$ composer require twig/cssinliner-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\CssInliner\CssInlinerExtension;
+7 -2
View File
@@ -32,8 +32,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -32,8 +32,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -45,8 +45,13 @@ You can also use the filter on an included file or a variable:
$ composer require twig/markdown-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Markdown\MarkdownExtension;
+7 -2
View File
@@ -39,8 +39,13 @@ The ``slug`` filter uses the method by the same name in Symfony's
$ composer require twig/string-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\String\StringExtension;
+7 -2
View File
@@ -31,8 +31,13 @@ By default, the filter uses the current locale. You can pass it explicitly:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -77,8 +77,13 @@ For large strings manipulation, use the ``apply`` tag:
$ composer require twig/string-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\String\StringExtension;
+7 -2
View File
@@ -22,8 +22,13 @@ with a given country code:
$ composer require twig/intl-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Intl\IntlExtension;
+7 -2
View File
@@ -25,8 +25,13 @@ names together:
$ composer require twig/html-extra
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
explicitly on the Twig environment::
Then, on Symfony projects, install the ``twig/extra-bundle``:
.. code-block:: bash
$ composer require twig/extra-bundle
Otherwise, add the extension explicitly on the Twig environment::
use Twig\Extra\Html\HtmlExtension;