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
Drush - Import multiple custom translation po files #4251
base: 10.x
Are you sure you want to change the base?
Drush - Import multiple custom translation po files #4251
Conversation
ba3d5d8
to
c2d5761
Compare
c2d5761
to
5b52a55
Compare
We are lacking a locale maintainer at the moment so I apologize that nobody from Drush core team is reviewing this. We need a review from outside the team, as next step. |
Reviewed and tested on real project, all works fine. |
@weitzman what need to do to speed up merge of this changes? thx. |
Thanks for the review. I'm hesitant to add more locale functionality while we have no maintainer for it. Ideally someone maintains these commands outside of Drush core for now. |
I'd say it needs tests and then it could be a locale console command patch in core |
FYI we have been using this patch in production for years now without any issue |
Maybe we can consider making the directory argument an option? That way, you could set a sitewide default directory through a Drush config file. If you guys are on board with this idea I wouldn't mind implementing it. |
Hi @DieterHolvoet , WDYT ? |
Or we could add an extra check in code to make sure the option is present? I would probably use |
Just made a bit of research and discovered that "option" may not necessarily be "optional" (https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap12.html#tag_12_02)
++ as long the helper reflects it
I agree that this would be a welcome addition |
The the decision about merging and maintaining this falls to the locale maintainer, @Sutharsan. This PR would need tests and needs to target 11.x branch. |
Okay, before I continue work on this PR I'll wait for their go ahead. |
…5569) * Add locale:import:all - imports multiple custom translation po files Supersedes #4251 * Fix feedbacks * Fix feedbacks * Apply suggestions from code review Co-authored-by: Erik Stielstra <info@erikstielstra.nl> --------- Co-authored-by: Sergey-Orlov <sergey.kam.orlov@gmail.com> Co-authored-by: Erik Stielstra <info@erikstielstra.nl>
This adds new drush command to import multiple custom translation po files from directory, as described in #4235