LexikTranslationBundle icon indicating copy to clipboard operation
LexikTranslationBundle copied to clipboard

Wrong path saved to database

Open alsar opened this issue 8 years ago • 0 comments

When I import the translations from yml files to the database with a custom import path, the path isn't saved correctly. It strips all slashes from the path and adds ../../../in front.

Example: The command lexik:translations:import --import-path=resources/translations results in ../../../resourcestranslations in the lexik_translation_file table.

When running lexik:translations:export an error is shown "Warning: file_put_contents(/vagrant/app/../../../resourcestranslations/messages.en.yml): failed to open stream: No such file or directory"

I'm using PHP 7.1 on Linux with version 4.0.1 of the bundle. Tried also with master.

alsar avatar Nov 15 '16 15:11 alsar