mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
16281 internationalize dashboard headers
This commit is contained in:
parent
103c08c2d2
commit
b77acb64f4
@ -1,3 +1,5 @@
|
|||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
# Events
|
# Events
|
||||||
EVENT_CREATE = 'create'
|
EVENT_CREATE = 'create'
|
||||||
EVENT_UPDATE = 'update'
|
EVENT_UPDATE = 'update'
|
||||||
@ -23,14 +25,14 @@ DEFAULT_DASHBOARD = [
|
|||||||
'widget': 'extras.BookmarksWidget',
|
'widget': 'extras.BookmarksWidget',
|
||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 5,
|
'height': 5,
|
||||||
'title': 'Bookmarks',
|
'title': _('Bookmarks'),
|
||||||
'color': 'orange',
|
'color': 'orange',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'widget': 'extras.ObjectCountsWidget',
|
'widget': 'extras.ObjectCountsWidget',
|
||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 2,
|
'height': 2,
|
||||||
'title': 'Organization',
|
'title': _('Organization'),
|
||||||
'config': {
|
'config': {
|
||||||
'models': [
|
'models': [
|
||||||
'dcim.site',
|
'dcim.site',
|
||||||
@ -43,10 +45,10 @@ DEFAULT_DASHBOARD = [
|
|||||||
'widget': 'extras.NoteWidget',
|
'widget': 'extras.NoteWidget',
|
||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 2,
|
'height': 2,
|
||||||
'title': 'Welcome!',
|
'title': _('Welcome!'),
|
||||||
'color': 'green',
|
'color': 'green',
|
||||||
'config': {
|
'config': {
|
||||||
'content': (
|
'content': _(
|
||||||
'This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing '
|
'This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing '
|
||||||
'widgets. You can also add new widgets using the "add widget" button below. Any changes affect only '
|
'widgets. You can also add new widgets using the "add widget" button below. Any changes affect only '
|
||||||
'_your_ dashboard, so feel free to experiment!'
|
'_your_ dashboard, so feel free to experiment!'
|
||||||
@ -57,7 +59,7 @@ DEFAULT_DASHBOARD = [
|
|||||||
'widget': 'extras.ObjectCountsWidget',
|
'widget': 'extras.ObjectCountsWidget',
|
||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 3,
|
'height': 3,
|
||||||
'title': 'IPAM',
|
'title': _('IPAM'),
|
||||||
'config': {
|
'config': {
|
||||||
'models': [
|
'models': [
|
||||||
'ipam.vrf',
|
'ipam.vrf',
|
||||||
@ -73,7 +75,7 @@ DEFAULT_DASHBOARD = [
|
|||||||
'widget': 'extras.RSSFeedWidget',
|
'widget': 'extras.RSSFeedWidget',
|
||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 4,
|
'height': 4,
|
||||||
'title': 'NetBox News',
|
'title': _('NetBox News'),
|
||||||
'config': {
|
'config': {
|
||||||
'feed_url': 'http://netbox.dev/rss/',
|
'feed_url': 'http://netbox.dev/rss/',
|
||||||
'max_entries': 10,
|
'max_entries': 10,
|
||||||
@ -84,7 +86,7 @@ DEFAULT_DASHBOARD = [
|
|||||||
'widget': 'extras.ObjectCountsWidget',
|
'widget': 'extras.ObjectCountsWidget',
|
||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 3,
|
'height': 3,
|
||||||
'title': 'Circuits',
|
'title': _('Circuits'),
|
||||||
'config': {
|
'config': {
|
||||||
'models': [
|
'models': [
|
||||||
'circuits.provider',
|
'circuits.provider',
|
||||||
@ -98,7 +100,7 @@ DEFAULT_DASHBOARD = [
|
|||||||
'widget': 'extras.ObjectCountsWidget',
|
'widget': 'extras.ObjectCountsWidget',
|
||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 3,
|
'height': 3,
|
||||||
'title': 'DCIM',
|
'title': _('DCIM'),
|
||||||
'config': {
|
'config': {
|
||||||
'models': [
|
'models': [
|
||||||
'dcim.site',
|
'dcim.site',
|
||||||
@ -113,7 +115,7 @@ DEFAULT_DASHBOARD = [
|
|||||||
'widget': 'extras.ObjectCountsWidget',
|
'widget': 'extras.ObjectCountsWidget',
|
||||||
'width': 4,
|
'width': 4,
|
||||||
'height': 2,
|
'height': 2,
|
||||||
'title': 'Virtualization',
|
'title': _('Virtualization'),
|
||||||
'config': {
|
'config': {
|
||||||
'models': [
|
'models': [
|
||||||
'virtualization.cluster',
|
'virtualization.cluster',
|
||||||
@ -125,7 +127,7 @@ DEFAULT_DASHBOARD = [
|
|||||||
'widget': 'extras.ObjectListWidget',
|
'widget': 'extras.ObjectListWidget',
|
||||||
'width': 12,
|
'width': 12,
|
||||||
'height': 5,
|
'height': 5,
|
||||||
'title': 'Change Log',
|
'title': _('Change Log'),
|
||||||
'color': 'blue',
|
'color': 'blue',
|
||||||
'config': {
|
'config': {
|
||||||
'model': 'extras.objectchange',
|
'model': 'extras.objectchange',
|
||||||
|
Loading…
Reference in New Issue
Block a user