Question

After reading the complete translation documentation (here), I still have some questions / problems. The end goal is to create translations for my magento2 installation.

I run the following command to create a translation dictionary:

php bin/magento i18n:collect-phrases -o "translations.csv" -m c:\xampp\htdocs\magento2\

Where magento2 is the root path of my magento installation. Please note the -m that is required to build a translation pack. If I ommit this parameter, the generated output is 400kb+ (but it contains only 2 columns). If I add the parameter, I only get a 4kb file (it contains the correct 3 columns format). Am I missing something here?

Pastebin (with -m): http://pastebin.com/ssCMaKGw

Pastebin (without -m): http://pastebin.com/cfJGT2tS

Then for a theme translation, I can ommit the -m parameter and after I made the translations for the default luma theme, it's not replacing anything. I've changed my locale in administration to the correct one and also flush cache, rebuilt indexes.

php bin/magento i18n:collect-phrases -o "app/design/frontend/Magento/luma/i18n/nl_NL.csv" app/design/frontend/Magento/luma

Was it helpful?

Solution

I can confirm the -m command is working now with the updates that were committed on the development branch. Thanks for this @steve-johnson & @maddy.

Generated a 762Kb file.

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top