Skip to content

Commit

Permalink
i18n: mark missing strings for translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Samk13 authored and utnapischtim committed Feb 20, 2025
1 parent e638527 commit c985ffa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
11 changes: 6 additions & 5 deletions invenio_banners/administration/banners.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2023 CERN.
# Copyright (C) 2024 KTH Royal Institute of Technology.
#
# Invenio-Banners is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -22,8 +23,8 @@ class BannerListView(AdminResourceListView):
api_endpoint = "/banners"
name = "banners"
resource_config = "banners_resource"
title = "Banners"
menu_label = "Banners"
title = _("Banners")
menu_label = _("Banners")
category = _("Site management")
pid_path = "id"
icon = "newspaper"
Expand Down Expand Up @@ -127,7 +128,7 @@ class BannerEditView(AdminResourceEditView):
resource_config = "banners_resource"
pid_path = "id"
api_endpoint = "/banners"
title = "Edit Banner"
title = _("Edit Banner")

list_view_name = "banners"

Expand All @@ -146,7 +147,7 @@ class BannerCreateView(AdminResourceCreateView):
resource_config = "banners_resource"
pid_path = "id"
api_endpoint = "/banners"
title = "Create Banner"
title = _("Create Banner")

list_view_name = "banners"

Expand All @@ -162,7 +163,7 @@ class BannerDetailView(AdminResourceDetailView):
api_endpoint = "/banners"
name = "banner-details"
resource_config = "banners_resource"
title = "Banner Details"
title = _("Banner Details")

display_delete = True
display_edit = True
Expand Down
7 changes: 4 additions & 3 deletions invenio_banners/config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
#
# Copyright (C) 2020-2023 CERN.
# Copyright (C) 2024 KTH Royal Institute of Technology.
#
# Invenio-Banners is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
Expand All @@ -12,9 +13,9 @@
from invenio_banners.utils import style_category

BANNERS_CATEGORIES = [
("info", "Info"),
("warning", "Warning"),
("other", "Other"),
("info", _("Info")),
("warning", _("Warning")),
("other", _("Other")),
]
"""Categories to define different types of messages. List of (id, label)."""

Expand Down

0 comments on commit c985ffa

Please sign in to comment.