i18n generator generates dictionary with duplicated phrases #896
Labels
bug report
Issue: Ready for Work
Gate 4. Acknowledged. Issue is added to backlog and ready for development
i18n generator generates dictionary with duplicated phrases if escaped and non escaped forms are present in codebase eg.:
It results in having two "What's this?" entries in generated dictionary file.
Steps to reproduce are:
Generate dictionary file on the whole codebase
php -f dev/tools/Magento/Tools/I18n/generator.php -- -d ./ -o dictionary.csv -m yes
Try to run
pack.php
to find duplicated phrases:php -f dev/tools/Magento/Tools/I18n/pack.php -- -s dictionary.csv -l pl_PL -p app/i18n/
It outputs following on beta2 and installing translation fails:
It's possible to install such dictionary by providing
-d
option to allow duplicates, however it makes sense to fix that either by unifying phrases or fixing tool.The text was updated successfully, but these errors were encountered: