Hi Bernardo and community, daily generation of .po files works great. However, we did run into one limitation. If we manage to break some translation and thus the interface, we would need a hot fix option. Would there be any way to arrange on-demand .po generation of a specific Koha version and language? For example, some button in Pootle that only the Language Manager would have the right to use? It would help us a lot in crisis moments, especially before a new release. Thank you Michal po 9. 5. 2022 v 21:46 odesílatel Mike D. <black23@gmail.com> napsal:
Hi Bernardo, Thank you very much for this enhancement. It will save us time and simplify our translation work. I believe it will work great. If I run into any problems, I'll let you know.
Thanks again.
Have a good day
Michal KohaCZ
po 9. 5. 2022 v 21:41 odesílatel Bernardo Gonzalez Kriegel < bgkriegel@gmail.com> napsal:
Hi Michal, there was no specific moment for the update of the exported files, normally when we need to *sync* the files before adding a new project, or every time a release maintainer needs to update the translation files before a release.
I have added a cron job to sync the files once a day at 00:00 UTC.
Bernardo
-- Bernardo Gonzalez Kriegel bgkriegel@gmail.com
On Mon, May 9, 2022 at 2:46 PM Mike D. <black23@gmail.com> wrote:
Hi Bernardo, you've described exactly the procedure we use. Today I was chatting on IRC with Cait and we were unable to find out how often the .po files are generated. For Koha 21.11, which I am now actively translating, the generation occurred on Friday 6/5 and today 9/5. Does this mean that the script does this every day? Or is the frequency different? We have a script that downloads .po files from Pootle (for example https://translate.koha-community.org/export/21.11/cs/) and replaces the files on our Koha server disk. For this to work well though, we need to know how often the files in /export/version/cs change. Ideally this would be once a day. That would be perfect. Thank you
Michal
po 9. 5. 2022 v 19:07 odesílatel Bernardo Gonzalez Kriegel < bgkriegel@gmail.com> napsal:
Hi Michal,
we are working on how to efficiently fix (hotfix) translations on
production servers with Koha. Generating .po files on package release seems slow to us. For active languages, would it be possible to generate .po files more frequently, e.g. daily? This would help us a lot.
one possible workflow would be to translate on the translation server, and then download the updated translation files to replace the ones that come in the packages.
For example, for version 20.05 and CS language, the files can be downloaded from https://translate.koha-community.org/export/20.05/cs/ and used to replace the ones at /usr/share/koha/misc/translator/po/
Is that possible?
Bernardo