Skip to content
Snippets Groups Projects

feat: Translations for grid related menu items

Merged CICD requested to merge feature/gridv-52-grid-in-main-menu into develop

The new main menu items were added to the MAIN_MENU list in local_settings.py, like this:

MAIN_MENU = [
    {"url": "/forecasts", "label": "Forecasts"},
    {
        "label": _("Risk maps"),
        "child_items": [
            {
                "url": "/spatial",
                "label": _("About risk maps"),
            },
            {
                "url": "/spatial/gridmap/SEPTREFHUM/",
                "label": _("Septoria reference humidity model"),
            }
        ],
    },
    {"url": "/observations", "label": "Observations"},
    {"url": "/messages", "label": "Messages"},
]

The messages were generated and compiled as follows (starting from the root of the project):

cd VIPSWeb
../manage.py makemessages -a
(add Norwegian translations to po file)
../manage.py compilemessages

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
Please register or sign in to reply