From ac4a5f7e33768de7bae343445471302dd88ee9c9 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Thu, 13 Feb 2025 11:06:45 +0100 Subject: [PATCH] Explain how translation messages are merged among bundles --- translation.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/translation.rst b/translation.rst index 98b90949b6a..231969f9487 100644 --- a/translation.rst +++ b/translation.rst @@ -497,7 +497,9 @@ Symfony looks for message files (i.e. translations) in the following default loc ``Resources/translations/`` directory, which is no longer recommended for bundles). The locations are listed here with the highest priority first. That is, you can -override the translation messages of a bundle in the first directory. +override the translation messages of a bundle in the first directory. Bundles are processed +in the order they are given in the ``config/bundles.php`` file, so bundles listed first have +higher priority. The override mechanism works at a key level: only the overridden keys need to be listed in a higher priority message file. When a key is not found