diff --git a/biscuit/apps/schild_nrw/locale/de_DE/LC_MESSAGES/django.po b/biscuit/apps/schild_nrw/locale/de_DE/LC_MESSAGES/django.po index 5049259f56b31d29f8e2d8a028c6631bea923cc8..ae677504d90925cb54c831d2bd69aec5ce79bbca 100644 --- a/biscuit/apps/schild_nrw/locale/de_DE/LC_MESSAGES/django.po +++ b/biscuit/apps/schild_nrw/locale/de_DE/LC_MESSAGES/django.po @@ -7,8 +7,8 @@ msgid "" msgstr "" "Project-Id-Version: \n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2019-08-17 13:39+0200\n" -"PO-Revision-Date: 2019-08-17 13:43+0200\n" +"POT-Creation-Date: 2019-08-18 21:43+0200\n" +"PO-Revision-Date: 2019-08-18 21:43+0200\n" "Last-Translator: Tom Teichler <tom.teichler@teckids.org>\n" "Language-Team: \n" "Language: de_DE\n" @@ -45,14 +45,14 @@ msgstr "Pfad zur CSV-Datei mit den exportierten Schülern" msgid "Path to CSV file with exported guardians" msgstr "Pfad zur CSV-Datei mit den exportierten Erziehungsberechtigten" -#: menus.py:8 -msgid "Import of data" -msgstr "Datenimport" - -#: menus.py:17 +#: menus.py:6 msgid "Interfaces" msgstr "Schnittstellen" +#: menus.py:12 +msgid "SchILD-NRW import" +msgstr "SchILD-NRW-Import" + #: templates/schild_nrw/schild_import.html:10 msgid "" "\n" @@ -72,14 +72,13 @@ msgstr "" #: templates/schild_nrw/schild_import.html:18 msgid "" "\n" -" To generate CSV files in the correct format, please use the " -"following\n" +" To generate CSV files in the correct format, please use the following\n" " templates:\n" " " msgstr "" "\n" -" Um die CSV-Dateien im richtigen Format zu generieren, nutzen Sie " -"bitte die folgenden\n" +" Um die CSV-Dateien im richtigen Format zu generieren, nutzen Sie bitte " +"die folgenden\n" " Vorlagen:\n" " " @@ -107,3 +106,6 @@ msgstr "Alle Personen wurden erfolgreich importiert." #: util.py:33 msgid "Some persons failed to be imported." msgstr "Einige Personen konnten nicht importiert werden." + +#~ msgid "Import of data" +#~ msgstr "Datenimport" diff --git a/biscuit/apps/schild_nrw/menus.py b/biscuit/apps/schild_nrw/menus.py index c53790c357035282ffc04c3279c760ded9872394..51e25b499337878cee94d65dd2c650ceb9904711 100644 --- a/biscuit/apps/schild_nrw/menus.py +++ b/biscuit/apps/schild_nrw/menus.py @@ -1,17 +1,19 @@ -from django.urls import reverse -from django.utils.translation import gettext_lazy as _ +from django.utils.translation import gettext as _ -from menu import Menu, MenuItem - - -menu_items = [ - MenuItem(_('Import of data'), - reverse('schild_import'), - check=lambda request: request.user.is_authenticated and request.user.is_superuser), -] - -app_menu = MenuItem('SchILD-NRW', - '#', - children=menu_items) - -Menu.add_item(_('Interfaces'), app_menu) +MENUS = { + 'NAV_MENU_CORE': [ + { + 'name': _('Interfaces'), + 'url': '#', + 'root': True, + 'validators': ['menu_generator.validators.is_authenticated', 'menu_generator.validators.is_superuser'], + 'submenu': [ + { + 'name': _('SchILD-NRW import'), + 'url': 'schild_import', + 'validators': ['menu_generator.validators.is_authenticated', 'menu_generator.validators.is_superuser'] + } + ] + } + ] +}