i18n:collect-phrases: «Directory path is not needed when --magento flag is set»


(Dmitry Fedyuk) #1

You can get this error after 2015-11-23 update:

Now the following syntax is wrong:

bin/magento i18n:collect-phrases -o "C:/work/mage2.pro/store/app/i18n/df/ru_ru/dictionary-2.csv" -m "C:/work/mage2.pro/store" 

You shold write or

bin/magento i18n:collect-phrases -o "C:/work/mage2.pro/store/app/i18n/df/ru_ru/dictionary-2.csv" -m


bin/magento i18n:collect-phrases -o "C:/work/mage2.pro/store/app/i18n/df/ru_ru/dictionary-2.csv" "C:/work/mage2.pro/store" 

The -m case means that Magento 2 should parse all its files.
The second case (without -m) means that Magento 2 should parse only the directory specified.

How to create a language package for Magento 2?
(Chaluvadiswamy) #2

Hi Dmitry,

Use of Collect-phrases will copy all English text into out language csv file