Skip to content

Commit

Permalink
Fixes #17884: Fix translation support for certain tab headings
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Oct 30, 2024
1 parent f00a93c commit 1e5f79a
Show file tree
Hide file tree
Showing 6 changed files with 5,065 additions and 5,765 deletions.
2 changes: 1 addition & 1 deletion netbox/dcim/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from django.urls import reverse
from django.utils.html import escape
from django.utils.safestring import mark_safe
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _
from django.views.generic import View
from jinja2.exceptions import TemplateError

Expand Down
2 changes: 1 addition & 1 deletion netbox/ipam/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.db.models.expressions import RawSQL
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _

from circuits.models import Provider
from dcim.filtersets import InterfaceFilterSet
Expand Down
2 changes: 1 addition & 1 deletion netbox/netbox/views/generic/feature_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.db import transaction
from django.db.models import Q
from django.shortcuts import get_object_or_404, redirect, render
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _
from django.views.generic import View

from core.models import Job, ObjectChange
Expand Down
2 changes: 1 addition & 1 deletion netbox/tenancy/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from django.contrib.contenttypes.models import ContentType
from django.shortcuts import get_object_or_404
from django.utils.translation import gettext as _
from django.utils.translation import gettext_lazy as _

from netbox.views import generic
from utilities.query import count_related
Expand Down
Loading

0 comments on commit 1e5f79a

Please sign in to comment.