Other languages #853

Closed
opened 2025-12-29 16:26:21 +01:00 by adam · 7 comments
Owner

Originally created by @arraisfilho on GitHub (Apr 11, 2017).

Is there any way to translate Netbox or how it was developed does not fit this upgrade?

I am willing to help with the translation process, especially for Portuguese (Brazil).

Originally created by @arraisfilho on GitHub (Apr 11, 2017). Is there any way to translate Netbox or how it was developed does not fit this upgrade? I am willing to help with the translation process, especially for Portuguese (Brazil).
adam closed this issue 2025-12-29 16:26:21 +01:00
Author
Owner

@eliezerlp commented on GitHub (Apr 12, 2017):

Willing to contribute a Spanish translation

@eliezerlp commented on GitHub (Apr 12, 2017): Willing to contribute a Spanish translation
Author
Owner

@jeremystretch commented on GitHub (Apr 12, 2017):

While the Django framework does support translations, NetBox is not currently set up to use them. The first part of this would be to iterate over the entire code base and insert a translation wrapper around virtually every string. This wouldn't be difficult, but it would obviously take a good bit of time.

The second part of this is establishing the actual translation databases. These are essentially static mappings of natives (English) string to their equivalents in a different language, which means that every time a string is modified (even slightly), every translation has to be updated as well, or the translation for that string breaks. Considering the size of the NetBox code base, you can imagine how much maintenance this would require.

At this relatively early stage of development, I don't think it makes sense to support translations yet. It would introduce a lot of development overhead, and translators would constantly be playing catch-up.

@jeremystretch commented on GitHub (Apr 12, 2017): While the Django framework [does support translations](https://docs.djangoproject.com/en/1.10/topics/i18n/translation/), NetBox is not currently set up to use them. The first part of this would be to iterate over the entire code base and insert a translation wrapper around virtually every string. This wouldn't be difficult, but it would obviously take a good bit of time. The second part of this is establishing the actual translation databases. These are essentially static mappings of natives (English) string to their equivalents in a different language, which means that every time a string is modified (even slightly), every translation has to be updated as well, or the translation for that string breaks. Considering the size of the NetBox code base, you can imagine how much maintenance this would require. At this relatively early stage of development, I don't think it makes sense to support translations yet. It would introduce a _lot_ of development overhead, and translators would constantly be playing catch-up.
Author
Owner

@arraisfilho commented on GitHub (Apr 12, 2017):

Thank you for your clarification. When a translation is possible, I will be willing to contribute.

@arraisfilho commented on GitHub (Apr 12, 2017): Thank you for your clarification. When a translation is possible, I will be willing to contribute.
Author
Owner

@jeremystretch commented on GitHub (Apr 12, 2017):

Thanks for understanding. We'll get there one day, once the pace of development slows down a bit.

@jeremystretch commented on GitHub (Apr 12, 2017): Thanks for understanding. We'll get there one day, once the pace of development slows down a bit.
Author
Owner

@cimnine commented on GitHub (Dec 26, 2017):

There are nice tools to make translating a community effort, at least once the groundwork was done. Two such services that I know off and which are free for opensource projects are POEditor and LingoHub, but there are lots of other tools as well.

@cimnine commented on GitHub (Dec 26, 2017): There are nice tools to make translating a community effort, at least once the groundwork was done. Two such services that I know off and which are free for opensource projects are [POEditor](https://poeditor.com/features/) and [LingoHub](https://lingohub.com/features/), but there are lots of other tools as well.
Author
Owner

@lae commented on GitHub (Dec 4, 2018):

It's been a year and a half since NetBox released 2.0. Do you think we're at a point where this would be feasible to implement now? I'd be willing to assist (and have implemented i18n for another Django project before).

@lae commented on GitHub (Dec 4, 2018): It's been a year and a half since NetBox released 2.0. Do you think we're at a point where this would be feasible to implement now? I'd be willing to assist (and have implemented i18n for another Django project before).
Author
Owner

@rsepulvedacl commented on GitHub (Jan 16, 2019):

I released a script that helps to translate NetBox, replacing strings into the language that you wish, but it doesn't use Django i18n yet.

I'm not keen using Django yet, so I'd like to recieve some help to improve this script to finally wrap these strings to meet the Django i18n support.

You can download this script here: https://github.com/burbuja/bbl.

Some examples:

bbl.py  digitalocean/netbox # This extracts the strings
bbl.py  digitalocean/netbox your_local_file.po # This merges a local PO file with NetBox
bbl.py  digitalocean/netbox https://burbuja.cl/glotpress/projects/netbox/es-cl/default/ # This merges a remote PO file (from GlotPress) with NetBox

WARNING: Don't use it in a production environment!

@rsepulvedacl commented on GitHub (Jan 16, 2019): I released a script that helps to translate NetBox, replacing strings into the language that you wish, but it doesn't use Django i18n yet. I'm not keen using Django yet, so I'd like to recieve some help to improve this script to finally wrap these strings to meet the Django i18n support. You can download this script here: https://github.com/burbuja/bbl. Some examples: ```bash bbl.py digitalocean/netbox # This extracts the strings bbl.py digitalocean/netbox your_local_file.po # This merges a local PO file with NetBox bbl.py digitalocean/netbox https://burbuja.cl/glotpress/projects/netbox/es-cl/default/ # This merges a remote PO file (from GlotPress) with NetBox ``` **WARNING: Don't use it in a production environment!**
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#853