
On Fri, Apr 10, 2020, at 3:29 AM, Daniele Pizzolli wrote:
Right now, we have a fairly automated way to do the translation for all our Mailman components. We use hosted Weblate (https://hosted.weblate.org/projects/gnu-mailman/) for all components including Core, Postorius, Django-mailman3 and Hyperkitty.
Weblate internally keeps the git repo in sync and any new translations are converted to git commits, one per author, per 24hrs. Then, Webalate is configured to send merge requests to Mailman's Gitlab repos, which can be merged like regular MRs. There are push events configured to notify Weblate to pull on each commit from Gitlab, so both repos are fairly in sync and we almost never have to deal with merge conflicts since after this setup. It is really convenient to do this.
Finally, during release, there is a script in the Mailman Core's root, generate-mo.sh, which basically compiles all the .po files to .mo files and requires GNU gettext. I did it for the first time in this release, but I am hoping to see if I can automate this so I don't forget, maybe hooking it up with setuptools somehow. Ideas & MRs are welcome, I am still not up to date with possibilities of Python packaging tools.
Rest of the projects are Django based and Django has commands to compile the translations at install time, so we don't do that yet at release time. I am again not up-to-date on what should be done here, so if I am doing it wrong, please let me know!
Well, when I wrote the above docs, what I was really aiming for was something along the lines of, "Please use Weblate for translations always but if you didn't see this doc and already have a .po file lying around from perhaps earlier efforts, I'll take the .po file and do the manual work of merging it saving our translators from re-doing the same efforts on Weblate".
I don't know if the current language actually conveys that message, but if not, I'll gladly accept fixes to the docs.
I didn't know this until literally just right now, but Weblate does allow you to upload translations into the web interface1 from where it can just send us a Merge Request. I am going to update our documentation to reflect that instead of sending email here.
Daniele, Do you think you'll be able to do that? The process is fairly straight forward, but you'd have to do that for each component. I can do it on your behalf if you aren't able to, but I want the author information to reflect your name (which it won't if I upload to Weblate), so it would be nice that you get credits for your awesome work!
-- thanks, Abhilash Raj (maxking)
participants (1)
-
Abhilash Raj