Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/drupal/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Drupal 文件为空或未使用drush locale:import命令找到_Drupal_Drupal 8_Drush - Fatal编程技术网

Drupal 文件为空或未使用drush locale:import命令找到

Drupal 文件为空或未使用drush locale:import命令找到,drupal,drupal-8,drush,Drupal,Drupal 8,Drush,我对命令drush locale:import有一些问题。我可以使用locale:export导出文件,但不能使用import(修改了相同的文件)。我一定是做错了什么 使用此命令行: drush locale:import fr ./path/to/file/drupal.pot --type=customized --override=all 我总是收到这样的信息: File drupal.pot not found or empty. 我尝试了许多不同的途径,但都没有成功。而导入BO的文

我对命令drush locale:import有一些问题。我可以使用locale:export导出文件,但不能使用import(修改了相同的文件)。我一定是做错了什么

使用此命令行:

drush locale:import fr ./path/to/file/drupal.pot --type=customized --override=all
我总是收到这样的信息:

File drupal.pot not found or empty.
我尝试了许多不同的途径,但都没有成功。而导入BO的文件就像一个符咒,文件没有损坏

编辑:.pot显示无错误但不起作用,我们只能使用.po。

尝试使用绝对路径 例如:

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

就这么简单!这显然是一个pebkac问题!Thx人。