Preparation for translation support #6954

Closed
opened 2025-12-29 19:47:09 +01:00 by adam · 0 comments
Owner

Originally created by @jeremystretch on GitHub (Sep 8, 2022).

Originally assigned to: @arthanson on GitHub.

Proposed Changes

Identify all human-facing strings in NetBox and wrap them with gettext() to support translation. This should be done by aliasing gettext() as _ per convention. For example:

from django.utils.translation import gettext as _

message = _("Some line of text")

This issue will serve to track progress on these efforts long-term, and record any problems encountered throughout this process.

Justification

This work is necessary to support future internationalization efforts.

Originally created by @jeremystretch on GitHub (Sep 8, 2022). Originally assigned to: @arthanson on GitHub. ### Proposed Changes Identify all human-facing strings in NetBox and wrap them with `gettext()` to support [translation](https://docs.djangoproject.com/en/4.1/topics/i18n/translation/). This should be done by aliasing `gettext()` as `_` per convention. For example: ```python from django.utils.translation import gettext as _ message = _("Some line of text") ``` This issue will serve to track progress on these efforts long-term, and record any problems encountered throughout this process. ### Justification This work is necessary to support future internationalization efforts.
adam added the status: acceptedtype: housekeeping labels 2025-12-29 19:47:09 +01:00
adam closed this issue 2025-12-29 19:47:09 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6954