Skip to content

Commit 8e1af9d

Browse files
author
Matthew Smeets
committed
Adding more information about default translation domain 'messages'
1 parent e6c1aa1 commit 8e1af9d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

translation.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,12 @@ priority message files.
655655
The filename of the translation files is also important: each message file
656656
must be named according to the following path: ``domain.locale.loader``:
657657

658-
* **domain**: An optional way to organize messages into groups. Unless
658+
* **domain**: Domains are a way to organize messages into groups. Unless
659659
parts of the application are explicitly separated from each other, it is
660-
recommended to only use default ``messages`` domain;
660+
recommended to only use default ``messages`` domain.
661+
662+
If no domains are explicitly defined while using the translator, Symfony
663+
will default to the ``messages`` domain (e.g. ``messages.en.yaml``)
661664

662665
* **locale**: The locale that the translations are for (e.g. ``en_GB``, ``en``, etc);
663666

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy