Translate menu items.

This commit is contained in:
Santiago Lamora 2019-12-18 10:56:48 +01:00
parent bec5d1bb92
commit ce7de306e3
1 changed files with 6 additions and 5 deletions

View File

@ -1,4 +1,5 @@
from django.contrib.auth.mixins import UserPassesTestMixin
from django.utils.translation import gettext_lazy as _
from django.views.generic.base import ContextMixin
from . import api, get_version
@ -10,11 +11,11 @@ class CustomContextMixin(ContextMixin):
context = super().get_context_data(**kwargs)
# generate services menu items
services_menu = [
{'icon': 'globe-europe', 'pattern_name': 'musician:dashboard', 'title': 'Domains & websites'},
{'icon': 'envelope', 'pattern_name': 'musician:mails', 'title': 'Mails'},
{'icon': 'mail-bulk', 'pattern_name': 'musician:mailing-lists', 'title': 'Mailing lists'},
{'icon': 'database', 'pattern_name': 'musician:databases', 'title': 'Databases'},
{'icon': 'fire', 'pattern_name': 'musician:saas', 'title': 'SaaS'},
{'icon': 'globe-europe', 'pattern_name': 'musician:dashboard', 'title': _('Domains & websites')},
{'icon': 'envelope', 'pattern_name': 'musician:mails', 'title': _('Mails')},
{'icon': 'mail-bulk', 'pattern_name': 'musician:mailing-lists', 'title': _('Mailing lists')},
{'icon': 'database', 'pattern_name': 'musician:databases', 'title': _('Databases')},
{'icon': 'fire', 'pattern_name': 'musician:saas', 'title': _('SaaS')},
]
context.update({
'services_menu': services_menu,