Skip to content

[Feature]: Add internationalization (i18n) support to AccessList models #264

Open
@pheus

Description

@pheus

NetBox version

v4.2.9

Feature type

Change to existing model

Proposed functionality

Introduce internationalization (i18n) support to the AccessList plugin models by utilizing Django's gettext_lazy for translatable strings. This includes updating field verbose_name and help_text attributes, as well as model meta options, to support localization.

Additional improvements:

  • Ensure consistency in model field definitions.
  • Apply minor corrections to existing docstrings and comments for better clarity and maintainability.

These changes would prepare the plugin for broader language support and improve its accessibility to non-English-speaking users.

Use case

NetBox is used in global environments where English may not be the primary language. Adding i18n support enables organizations to provide localized interfaces and documentation, improving usability and inclusivity.

This change aligns the plugin with Django and NetBox best practices, especially as NetBox itself supports i18n. Preparing the models now helps future-proof the plugin and avoids larger refactors later.

External dependencies

No new external dependencies are introduced. This implementation leverages Django’s built-in gettext_lazy module for internationalization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions