Implement a script to automatically download translation files from Transifex #9135

Closed
opened 2025-12-29 20:46:05 +01:00 by adam · 3 comments
Owner

Originally created by @jeremystretch on GitHub (Jan 23, 2024).

Proposed Changes

Part of the translation process entails downloading translated string maps from Transifex locally and generating their respective machine object (.mo) files. A separate file must be downloaded for each translated language. This is currently a manual process.

To make this process faster and less error-prone, we should implement a script to automatically download and compile the translation files for commitment to the code base. The Django project utilizes a script that we can probably borrow.

Justification

Automating this process will greatly simplify it and greatly reduce the likelihood of errors.

Originally created by @jeremystretch on GitHub (Jan 23, 2024). ### Proposed Changes Part of the [translation process](https://docs.netbox.dev/en/stable/development/release-checklist/#update-compile-translations) entails downloading translated string maps from [Transifex](https://app.transifex.com/netbox-community/netbox/dashboard/) locally and generating their respective machine object (.mo) files. A separate file must be downloaded for each translated language. This is currently a manual process. To make this process faster and less error-prone, we should implement a script to automatically download and compile the translation files for commitment to the code base. The Django project utilizes a [script](https://github.com/django/django/blob/main/scripts/manage_translations.py) that we can probably borrow. ### Justification Automating this process will greatly simplify it and greatly reduce the likelihood of errors.
adam added the type: housekeeping label 2025-12-29 20:46:05 +01:00
adam closed this issue 2025-12-29 20:46:05 +01:00
Author
Owner

@KongNan commented on GitHub (Jan 24, 2024):

Maybe the transifex and github solutions will help.

BTW: It's great to see that you are adding more languages to transifex, and we Chinese speakers are looking forward to it and want to contribute !

@KongNan commented on GitHub (Jan 24, 2024): Maybe the [transifex ](https://help.transifex.com/en/articles/6265125-github-installation-and-configuration)and [github ](https://github.com/apps/transifex-integration)solutions will help. BTW: It's great to see that you are adding more languages to transifex, and we Chinese speakers are [looking forward to it](https://github.com/netbox-community/netbox/discussions/14815) and [want to contribute](https://github.com/netbox-community/netbox/issues/14855) !
Author
Owner

@jeremystretch commented on GitHub (Jan 24, 2024):

Maybe the transifex and github solutions will help.

I had passed on the GitHub integration initially because I'm worried about the amount of noise it may generate. We generally need to merge translations only as part of the release process, as opposed to automatically in response to changes or at a set interval. But maybe it's worth experimenting with to see if we can come up with a workable configuration.

@jeremystretch commented on GitHub (Jan 24, 2024): > Maybe the [transifex ](https://help.transifex.com/en/articles/6265125-github-installation-and-configuration)and [github ](https://github.com/apps/transifex-integration)solutions will help. I had passed on the GitHub integration initially because I'm worried about the amount of noise it may generate. We generally need to merge translations only as part of the release process, as opposed to automatically in response to changes or at a set interval. But maybe it's worth experimenting with to see if we can come up with a workable configuration.
Author
Owner

@jeremystretch commented on GitHub (May 14, 2024):

I think we have this integration working now.

@jeremystretch commented on GitHub (May 14, 2024): I think we have this integration [working](https://github.com/netbox-community/netbox/pull/15974) now.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9135