Commit 8b2d3a2b authored by Fabien Potencier's avatar Fabien Potencier

merged branch neurolit/master (PR #339)

Commits
-------

c8592e78 Translation doc: added Twig bridge explanation
87e2872d Removed SymfonyBridgesServiceProvider from the translation documentation, as it doesn't exist anymore

Discussion
----------

Removed SymfonyBridgesServiceProvider from the translation documentation

Hi!

As you removed SymfonyBridgesServiceProvider (commit 75556d7e), I removed it from the translation documentation too.

---------------------------------------------------------------------------

by stof at 2012-05-30T22:35:37Z

You should say that this will work when you have the bridge in your project, not always

---------------------------------------------------------------------------

by neurolit at 2012-05-30T22:54:25Z

Thanks for your advice, stof. I added a link to the bridge documentation (not sure this is the right syntax, though).
parents 16c5acd8 c8592e78
......@@ -179,9 +179,9 @@ templates:
{{ app.translator.trans('translation_key') }}
Even better: register the :doc:`SymfonyBridgesServiceProvider
</providers/symfony_bridges>` and you will get the TranslationExtension of the
bridge allowing you to translate strings in the Twig way:
Moreover, when using the Twig bridge provided by Symfony (see
:doc:`TwigServiceProvider <twig>`), you will be allowed to translate
strings in the Twig way:
.. code-block:: jinja
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment