schmittjoh / JMSTranslationBundle

Puts the Symfony2 Translation Component on steroids
http://jmsyst.com/bundles/JMSTranslationBundle
426 stars 292 forks source link

Invalid reference-file path #451

Open bobalazek opened 7 years ago

bobalazek commented 7 years ago
Q A
Bundle version 1.3.2
Symfony version 3.3.4
PHP version 7.1.1

Expected behavior

In the web UI, when you click on one of the sources, you should be able to open it.

Actual behavior

When clicking on a source link, you will get a web profiler exception: The file "/../src/AppBundle/Resources/views/x/y/z.html.twig" cannot be opened.

Steps to reproduce

I'm not sure if that's an actual issue or if I just misconfigured something, but I can't seem to get it working. The source link is /../src/AppBundle/..., but it should be src/AppBundle/.....

My config:

jms_translation:
    configs:
        AppBundle:
            dirs:
                - "%kernel.root_dir%/../src/AppBundle"
            output_dir: "%kernel.root_dir%/../src/AppBundle/Resources/translations"
            default_output_format: xliff