Skip to content

The empty_text in BaseTable is not translatable because it does not utilize gettext_lazy #16051

Closed
@grncbg

Description

@grncbg

Deployment Type

Self-hosted

NetBox Version

v4.0.0

Python Version

3.10

Steps to Reproduce

The empty_text in BaseTable is not translatable because it does not utilize gettext_lazy.

if self.empty_text is None:
self.empty_text = f"No {self._meta.model._meta.verbose_name_plural} found"

English
English

Japanese
Japanese

Expected Behavior

empty_text can be translated

Observed Behavior

empty_text cannot be translated

Metadata

Metadata

Assignees

Labels

severity: lowDoes not significantly disrupt application functionality, or a workaround is availablestatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions