0
두 번들 : AppBundle
및 AnotherBundle
이 있습니다.다른 번들에서 번역을로드하는 방법
나는 AppBundle
의 문자열을 번역 할 수 있습니다
{% trans from 'anotherbundle' %}anotherbundle.string{% endtrans %}
문제는 내가 JMSTranslationBundle로 번역 문자열을 추출 할 때, 파일 anotherbundle.en.xlf
이 AppBundle/Resources/translations
디렉토리 내에 생성 내가 만들려 동안이다 AnotherBundle/Resources/translations
디렉토리에 있습니다.
bin/console translation:extract en --config=app
와 내가 사용하는 구성은 이것이다 :
내가이 명령을 사용하여 번역을 추출하려면jms_translation:
configs:
app:
dirs: ["%kernel.root_dir%", "%kernel.root_dir%/../src/AppBundle/"]
output_dir: "%kernel.root_dir%/../src/AppBundle/Resources/translations"
ignored_domains: [routes, FOSUserBundle]
excluded_names: ["*TestCase.php", "*Test.php"]
excluded_dirs: [cache, data, logs, web]
어떻게 JMSTranslationBundle이 AnotherBundle
디렉토리로 번역 문자열을 추출 할 수 있습니까?