From dbafcf9f472ad277d1b2803d03fdadd7266cc1fb Mon Sep 17 00:00:00 2001 From: Epskampie Date: Wed, 7 Aug 2013 14:54:49 +0200 Subject: [PATCH 1/4] Clarified how to load translations from db Added link the the translation loader tag documentation. --- book/translation.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/book/translation.rst b/book/translation.rst index 58add6ec2c8..e3bf00079be 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -332,7 +332,8 @@ taste. You can also store translations in a database, or any other storage by providing a custom class implementing the - :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface. + :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface. + See the `translation loader tag`_ for more information. .. index:: single: Translations; Creating translation resources @@ -1013,3 +1014,4 @@ steps: .. _`Translatable Extension`: https://github.com/l3pp4rd/DoctrineExtensions .. _`ISO3166 Alpha-2`: http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes .. _`ISO639-1`: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes +.. _`translation loader tag`: http://symfony.com/doc/current/reference/dic_tags.html#translation-loader From 420c5e272e978778f81166e9d5d8a625d48aaf59 Mon Sep 17 00:00:00 2001 From: Epskampie Date: Wed, 7 Aug 2013 14:58:44 +0200 Subject: [PATCH 2/4] Removed trailing whitespace. --- book/translation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/translation.rst b/book/translation.rst index e3bf00079be..2e7233dad70 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -332,7 +332,7 @@ taste. You can also store translations in a database, or any other storage by providing a custom class implementing the - :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface. + :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface. See the `translation loader tag`_ for more information. .. index:: From 2684524849bca1fe81c9985d158cfabf9234f3b4 Mon Sep 17 00:00:00 2001 From: Epskampie Date: Wed, 7 Aug 2013 15:04:17 +0200 Subject: [PATCH 3/4] Change 'translation loader tag' to 'translation.loader tag' --- book/translation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/translation.rst b/book/translation.rst index 2e7233dad70..a1ba22249c4 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -333,7 +333,7 @@ taste. You can also store translations in a database, or any other storage by providing a custom class implementing the :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface. - See the `translation loader tag`_ for more information. + See the `translation.loader tag`_ for more information. .. index:: single: Translations; Creating translation resources @@ -1014,4 +1014,4 @@ steps: .. _`Translatable Extension`: https://github.com/l3pp4rd/DoctrineExtensions .. _`ISO3166 Alpha-2`: http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes .. _`ISO639-1`: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes -.. _`translation loader tag`: http://symfony.com/doc/current/reference/dic_tags.html#translation-loader +.. _`translation.loader tag`: http://symfony.com/doc/current/reference/dic_tags.html#translation-loader From 862da3c5e788fa82b14ba9621120d163264cba74 Mon Sep 17 00:00:00 2001 From: Epskampie Date: Wed, 7 Aug 2013 16:00:46 +0200 Subject: [PATCH 4/4] Switched regular link to doc reference --- book/translation.rst | 3 +-- reference/dic_tags.rst | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/book/translation.rst b/book/translation.rst index a1ba22249c4..883062f50a1 100644 --- a/book/translation.rst +++ b/book/translation.rst @@ -333,7 +333,7 @@ taste. You can also store translations in a database, or any other storage by providing a custom class implementing the :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface` interface. - See the `translation.loader tag`_ for more information. + See the :ref:`dic-tags-translation-loader` tag for more information. .. index:: single: Translations; Creating translation resources @@ -1014,4 +1014,3 @@ steps: .. _`Translatable Extension`: https://github.com/l3pp4rd/DoctrineExtensions .. _`ISO3166 Alpha-2`: http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes .. _`ISO639-1`: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes -.. _`translation.loader tag`: http://symfony.com/doc/current/reference/dic_tags.html#translation-loader diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 78e2792e544..1e5a8f3e7ac 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -861,6 +861,8 @@ templates): ->addTag('templating.helper', array('alias' => 'alias_name')) ; +.. _dic-tags-translation-loader: + translation.loader ------------------