8000 minor #12861 Removed Translation component documentation (wouterj) · symfony/symfony-docs@8b12dde · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b12dde

Browse files
committed
minor #12861 Removed Translation component documentation (wouterj)
This PR was squashed before being merged into the 3.4 branch (closes #12861). Discussion ---------- Removed Translation component documentation While translation is one of the components that is used by other applications quite a lot, most of the components docs was about general translator usage (that also applies to usage in the framework). Setting up the translation component isn't that difficult. This PR moves all relevant docs from the components doc to the main guide. Much of this was duplicated in both, so that proves that this move is a usefull thing to do. 2 articles have been completely removed: Creating your custom message formatter and format. A custom message formatter seems really advanced usage. The Translation component provides so many formats that I think creating a custom format is also quite advanced. If it turns out this is not true, we can rest assured that they still exist in GIT history so we can quickly add them back. Please note that the main translator guide is a really ugly structured document. However, let's only do the rewriting in Symfony 4.3+, as lots has changed (flex, ICU message format, etc) between 3.x and 4.x. Commits ------- eb7158b Promote usage of a single translation domain e3f4646 Move sidebar into a real section 2683376 Removed Translation component documentation
2 parents 673e8e9 + eb7158b commit 8b12dde

File tree

13 files changed

+387
-963
lines changed

13 files changed

+387
-963
lines changed

_build/redirection_map

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,3 +369,5 @@
369369
/contributing/community/other /contributing/community
370370
/setup/composer /setup
371371
/components/debug https://github.com/symfony/debug
372+
/components/translation https://github.com/symfony/translation
373+
/components/translation/usage /translation

bundles/override.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,6 @@ Translations
135135

136136
Translations are not related to bundles, but to domains. That means that you
137137
can override the translations from any translation file, as long as it is in
138-
:ref:`the correct domain <using-message-domains>`.
138+
:ref:`the correct domain <translation-resource-locations>`.
139139

140140
.. _`the Doctrine documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/inheritance-mapping.html#overrides

components/form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ support for very important features:
5454
The Symfony Form component relies on other libraries to solve these problems.
5555
Most of the time you will use Twig and the Symfony
5656
:doc:`HttpFoundation </components/http_foundation>`,
57-
:doc:`Translation </components/translation>` and :doc:`Validator </components/validator>`
57+
:doc:`Translation </translation>` and :doc:`Validator </components/validator>`
5858
components, but you can replace any of these with a different library of your choice.
5959

6060
The following sections explain how to plug these libraries into the form

components/translation.rst

Lines changed: 0 additions & 231 deletions
This file was deleted.

components/translation/custom_formats.rst

Lines changed: 0 additions & 125 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0