mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-05 23:17:26 +00:00
Fix typos
This commit is contained in:
committed by
Fabien Potencier
parent
e3ff236877
commit
0273057622
@@ -29,7 +29,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ The ``data_uri`` filter generates a URL using the data scheme as defined in RFC
|
||||
$ composer req twig/html-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Html\HtmlExtension;
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ the ``format_datetime`` filter, but without the time.
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -103,7 +103,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ the ``format_datetime`` filter, but without the date.
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ You can also use the filter on an included file:
|
||||
$ composer req twig/markdown-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Markdown\MarkdownExtension;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ You can also use the filter on an included file:
|
||||
$ composer req twig/inky-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Inky\InkyExtension;
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ Note that the CSS inliner works on an entire HTML document, not a fragment.
|
||||
$ composer req twig/cssinliner-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\CssInliner\CssInlinerExtension;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -43,7 +43,7 @@ You can also use the filter on an included file:
|
||||
$ composer req twig/markdown-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Markdown\MarkdownExtension;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ By default, the filter uses the current locale. You can pass it explicitly:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ with a given country code:
|
||||
$ composer req twig/intl-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Intl\IntlExtension;
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ names together:
|
||||
$ composer req twig/html-extra
|
||||
|
||||
Then, use the ``twig/extra-bundle`` on Symfony projects or add the extension
|
||||
explictly on the Twig environment::
|
||||
explicitly on the Twig environment::
|
||||
|
||||
use Twig\Extra\Html\HtmlExtension;
|
||||
|
||||
|
||||
+1
-1
@@ -128,7 +128,7 @@ The scoping rules are the same whether you imported macros via ``import`` or
|
||||
Imported macros are always **local** to the current template. It means that
|
||||
macros are available in all blocks and other macros defined in the current
|
||||
template, but they are not available in included templates or child templates;
|
||||
you need to explicitely re-import macros in each template.
|
||||
you need to explicitly re-import macros in each template.
|
||||
|
||||
When calling ``import`` or ``from`` from a ``block`` tag, the imported macros
|
||||
are only defined in the current block and they override macros defined at the
|
||||
|
||||
@@ -41,7 +41,7 @@ final class HtmlExtension extends AbstractExtension
|
||||
/**
|
||||
* Creates a data URI (RFC 2397).
|
||||
*
|
||||
* Length validation is not perfomed on purpose, validation should
|
||||
* Length validation is not performed on purpose, validation should
|
||||
* be done before calling this filter.
|
||||
*
|
||||
* @return string The generated data URI
|
||||
|
||||
@@ -265,7 +265,7 @@ function twig_escape_filter(Environment $env, $string, $strategy = 'html', $char
|
||||
|
||||
/*
|
||||
* A few characters have short escape sequences in JSON and JavaScript.
|
||||
* Escape sequences supported only by JavaScript, not JSON, are ommitted.
|
||||
* Escape sequences supported only by JavaScript, not JSON, are omitted.
|
||||
* \" is also supported but omitted, because the resulting string is not HTML safe.
|
||||
*/
|
||||
static $shortMap = [
|
||||
|
||||
Reference in New Issue
Block a user