Sir
i try to translations export
bin/magento i18n:collect-phrases -o “/usr/share/nginx/html/123.csv” -m
but get error
[DomainException]
** Missed phrase**
Sir
i try to translations export
bin/magento i18n:collect-phrases -o “/usr/share/nginx/html/123.csv” -m
but get error
[DomainException]
** Missed phrase**
It looks like a bug in Magento 2 core.
It is reproduced when the core tries to translate an empty string (in a way like this: __('')
) from a third-party extension (or a design theme).
It is not reproduced if a system contains only the core Magento 2 modules.
It is not reproduced if a system contains only the core Magento 2 modules and Mage2.PRO extensions:
So it is a bug in the core, but in is caused by a third-party extension.
I recommend to look the installed third-part extensions (and design themes) source code for the empty translation expressions like __('')
.
I disable all third-part extensions still not work
But before is work
can you help me?
You can find the problem expressions by running the following command from your Magento 2 root folder:
grep -rnw . -e "__('')" -e '__("")'
The output for your store:
./app/code/Magestore/Affiliateplus/view/frontend/templates/account/program.phtml:84: $commissionText = $block->formatPrice($commission) . ’ ’ . __(‘’);
./app/code/Magestore/Affiliateplus/view/frontend/templates/account/program.phtml:91: $secText = $block->formatPrice($secCommission) . ’ ’ . __(‘’);
./app/code/Magestore/Affiliateplus/view/frontend/templates/payment/moneybooker.phtml:69: <?php echo __('') ?>
./app/code/Magestore/Affiliateplus/view/frontend/templates/payment/paypal.phtml:65: <?php echo __('') ?>
As you can see, the problem is because of the «Magestore Affiliateplus» extension.
Report the bug to the extension’s developer.
Thanks @dmitrii_fediuk … it did helped me to find which file was causing the problem, but solving it was not possible by just replacing the qouts from ‘’ to “”, after adding a single space " " it worked