jms翻译包:格式" yml~"不存在。

时间:2015-06-17 22:23:52

标签: php symfony translation locale yaml

在symfony2中,使用JMSTranslationBundle,运行时

php app/console translation:extract fr --config=app

我遇到了问题

  [JMS\TranslationBundle\Exception\InvalidArgumentException]  
  The format "yml~" does not exist.    

我的配置

jms_translation:
    configs:
        app:
            dirs: [%kernel.root_dir%, %kernel.root_dir%/../src]
            output_dir: %kernel.root_dir%/Resources/translations
            ignored_domains: [routes]
            excluded_names: ["*TestCase.php", "*Test.php"]
            excluded_dirs: [cache, data, logs]
#            extractors: [jms_i18n_routing]

任何想法如何解决这个问题?

1 个答案:

答案 0 :(得分:2)

解决方案是从项目中删除所有*.yml~个文件。

相关问题