Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new translation with Symfony4 #345

Open
victor-paumier opened this issue Mar 7, 2019 · 0 comments
Open

Add a new translation with Symfony4 #345

victor-paumier opened this issue Mar 7, 2019 · 0 comments

Comments

@victor-paumier
Copy link

Hi !
I am using the bundle with Symfony4 and my translations folder is at the root folder of my project, default location of the version 4.

Thanks to the PR (#331), I am able to import and export translations correctly.
The path store in the lexik_translation_file table is ../translations, well no problem.
But everytime I add a new translation, a new line is added to the lexik_translation_file table with the path value equals to /Resources/translations instead of adding it to the existing lexik_translation_file line matching with same domain and locale. And so my new translation line is never export to the right file.

I am not completely sure that is the best solution, but replacing this line by
(Kernel::MAJOR_VERSION >= 4)?$this->rootDir.'/../translations':$this->rootDir.'/Resources/translations' do the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant