Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #34797 [Translation] Fix FileDumper behavior (yceruto)
This PR was merged into the 4.4 branch. Discussion ---------- [Translation] Fix FileDumper behavior | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #34713 | License | MIT | Doc PR | - Execute `bin/console translation:update --force en` command: ## Before See related issue for details #34713 ## After The default translation file name will depend on whether the intl (or polyfill) extension is installed or not. For exmaple: | Intl extension (or polyfill) installed | translation file created | | --- | --- | | no | messages.en.xlf | | yes | messages+intl-icu.en.xlf | However, if you are currently updating a single file, that file name will be used regardless of whether the Intl extension is installed, i.e. if you have this translation file: `messages.en.xlf`, new translation keys will be stored in it, even if you have installed the intl extension. Last, if both translation files (`messages.es.xlf` and `messages+intl-icu.en.xlf`) coexist in the same path, rare but possible, we will use the default filename guessed earlier to store all current messages and the another file will be emptied. Commits ------- 1c41ae7 Fixed translations file dumper behavior
- Loading branch information
Showing
2 changed files
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters