php - jms翻译包: The format "yml~" does not exist.

标签 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]

知道如何解决这个问题吗?

最佳答案

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

关于php - jms翻译包: The format "yml~" does not exist.,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30903476/

相关文章:

php - Laravel 内连接说变量未定义

php - 关于 zend 框架的提交问题

php - 文件上传时,重复的空行输入到 mysql 中

symfony - 在 Twig 中本地化日期间隔

ios - UINavigationController 的后退按钮已翻译为某些语言,但没有翻译为其他语言?

internationalization - 如何从 yii2 中的核心消息覆盖所需的消息

Javascript .load() 函数未执行

php - Symfony2 表单生成器 - 删除标签,使其成为占位符

php - Doctrine2 从特征中复制属性和方法

jquery - 如何在谷歌翻译脚本中设置默认语言