php-translation提供的无效资源TranslationBundle

时间:2018-09-17 11:56:54

标签: php symfony

Symfony 4.1(从3升级)

translation:
    locales: ["en","pt"]
    edit_in_place:
        enabled: false
#        activator: php_translation.edit_in_place.activator
#        config_name: app
    configs:
        app:
            dirs: ["%kernel.project_dir%/templates"]
            output_dir: "%kernel.project_dir%/translations"
            excluded_names: ["*TestCase.php", "*Test.php"]
            excluded_dirs: [cache, data, logs]

路由

_translation_webui:
    resource: "@TranslationBundle/Resources/config/routing_webui.yml"
    prefix:  /admin

在终端上的任何页面和任何命令上获取错误

   Invalid resource provided: "1.2"; Errors: [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 12, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 13, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 20, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 25, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 26, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 31, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 32, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 37, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 42, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 47, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 48, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 49, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 50, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 55, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 60, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 65, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 70, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 75, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 80, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 85, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 91, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 96, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 101, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 107, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 112, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 117, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 122, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 127, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 132, column 0) [ERROR 1845] Element '{urn:jms:translation}reference-file': No matching global element declaration available, but demanded by the strict wildcard. (in /application/public/ - line 137, column 0) [ERROR 1845] Element ...................

https://github.com/php-translation/symfony-bundle

0 个答案:

没有答案