Activate multilingual route extraction and translation #1794
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Globally ignore @type annotation. Necessary to be able to use the extended array documentation syntax (which is used in the Core):
Moved Doctrine service alias from Zikula Event (core preinit) to CompilerPass. This is necessary to have the alias available even if the Zikula Core is not booted (e.g. if a Symfony console command is used).
Made the multilingual routing working. I needed to introduce two global variables in the process, to be able to filter the routes by module.
To translate routes, make sure the module is correctly installed, then run:
e.g.
This creates a
translations
folder in the bundle'sResources
folder with a.po
file in it. Translate it as usual.Note:
You can also use other formats, however xliff is the suggested one.
Note 2:
If you receive PHP notices / warnings while running the command, it might probably be this bug and can be ignored.