Search code examples
drupaldrupal-8drush

File empty or not found with drush locale:import command


I have some issues with the command drush locale:import. I can export a file with locale:export but it's not working with import (with the same file modified). I must do something wrong but what ?

With this command line:

drush locale:import fr ./path/to/file/drupal.pot --type=customized --override=all

I always get this message:

File drupal.pot not found or empty.

I tried many different paths without success. And import file by BO works like a charm, the file isn't corrupt.

Edit: .pot display no errors but doesn't work, we have to use .po only.


Solution

  • Try using an absolute path example :

    drush locale:import fr /var/www/project/file/drupal.pot --type=customized --override=all