You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m creating my personal website with Cecil, which will be available in French (main language) and English.
I use the Twig tag ({% trans %}{% endtrans %}) and filter (|trans) to handle translations for strings/variables. It’s working well when I generate .mo files from a manually created .pot file for testing.
But here’s the problem: there’s no Cecil CLI to extract translations.
So I’m using some custom PHP code to extract them, but it’s not working very well (for example, I can’t extract translation keys from variables). I haven’t found any script or library that can extract ALL translations (tags and filters) from Twig templates.
Do you know of any tool that can do this well?
Is an integrated extract command planned, since Cecil is based on Symfony?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
I’m creating my personal website with Cecil, which will be available in French (main language) and English.
I use the Twig tag ({% trans %}{% endtrans %}) and filter (|trans) to handle translations for strings/variables. It’s working well when I generate .mo files from a manually created .pot file for testing.
But here’s the problem: there’s no Cecil CLI to extract translations.
So I’m using some custom PHP code to extract them, but it’s not working very well (for example, I can’t extract translation keys from variables). I haven’t found any script or library that can extract ALL translations (tags and filters) from Twig templates.
Do you know of any tool that can do this well?
Is an integrated extract command planned, since Cecil is based on Symfony?
Thank you, and well done on this great app!
Beta Was this translation helpful? Give feedback.
All reactions