invenio-banners 4.1.0__py2.py3-none-any.whl → 4.1.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of invenio-banners might be problematic. Click here for more details.

@@ -10,6 +10,6 @@
10
10
 
11
11
  from .ext import InvenioBanners
12
12
 
13
- __version__ = "4.1.0"
13
+ __version__ = "4.1.1"
14
14
 
15
15
  __all__ = ("__version__", "InvenioBanners")
@@ -1,6 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
3
  # Copyright (C) 2023 CERN.
4
+ # Copyright (C) 2024 KTH Royal Institute of Technology.
4
5
  #
5
6
  # Invenio-Banners is free software; you can redistribute it and/or modify it
6
7
  # under the terms of the MIT License; see LICENSE file for more details.
@@ -22,8 +23,8 @@ class BannerListView(AdminResourceListView):
22
23
  api_endpoint = "/banners"
23
24
  name = "banners"
24
25
  resource_config = "banners_resource"
25
- title = "Banners"
26
- menu_label = "Banners"
26
+ title = _("Banners")
27
+ menu_label = _("Banners")
27
28
  category = _("Site management")
28
29
  pid_path = "id"
29
30
  icon = "newspaper"
@@ -127,7 +128,7 @@ class BannerEditView(AdminResourceEditView):
127
128
  resource_config = "banners_resource"
128
129
  pid_path = "id"
129
130
  api_endpoint = "/banners"
130
- title = "Edit Banner"
131
+ title = _("Edit Banner")
131
132
 
132
133
  list_view_name = "banners"
133
134
 
@@ -146,7 +147,7 @@ class BannerCreateView(AdminResourceCreateView):
146
147
  resource_config = "banners_resource"
147
148
  pid_path = "id"
148
149
  api_endpoint = "/banners"
149
- title = "Create Banner"
150
+ title = _("Create Banner")
150
151
 
151
152
  list_view_name = "banners"
152
153
 
@@ -162,7 +163,7 @@ class BannerDetailView(AdminResourceDetailView):
162
163
  api_endpoint = "/banners"
163
164
  name = "banner-details"
164
165
  resource_config = "banners_resource"
165
- title = "Banner Details"
166
+ title = _("Banner Details")
166
167
 
167
168
  display_delete = True
168
169
  display_edit = True
invenio_banners/config.py CHANGED
@@ -1,6 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  #
3
3
  # Copyright (C) 2020-2023 CERN.
4
+ # Copyright (C) 2024 KTH Royal Institute of Technology.
4
5
  #
5
6
  # Invenio-Banners is free software; you can redistribute it and/or modify it
6
7
  # under the terms of the MIT License; see LICENSE file for more details.
@@ -12,9 +13,9 @@ from invenio_i18n import lazy_gettext as _
12
13
  from invenio_banners.utils import style_category
13
14
 
14
15
  BANNERS_CATEGORIES = [
15
- ("info", "Info"),
16
- ("warning", "Warning"),
17
- ("other", "Other"),
16
+ ("info", _("Info")),
17
+ ("warning", _("Warning")),
18
+ ("other", _("Other")),
18
19
  ]
19
20
  """Categories to define different types of messages. List of (id, label)."""
20
21
 
@@ -1,153 +1,162 @@
1
1
  # Translations template for invenio-banners.
2
- # Copyright (C) 2024 CERN
2
+ # Copyright (C) 2025 CERN
3
3
  # This file is distributed under the same license as the invenio-banners
4
4
  # project.
5
- # FIRST AUTHOR <EMAIL@ADDRESS>, 2024.
5
+ # FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
6
6
  #
7
7
  #, fuzzy
8
8
  msgid ""
9
9
  msgstr ""
10
- "Project-Id-Version: invenio-banners 3.0.2\n"
10
+ "Project-Id-Version: invenio-banners 4.1.0\n"
11
11
  "Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
12
- "POT-Creation-Date: 2024-08-06 08:46+0000\n"
12
+ "POT-Creation-Date: 2025-02-20 13:53+0000\n"
13
13
  "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14
14
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15
15
  "Language-Team: LANGUAGE <LL@li.org>\n"
16
16
  "MIME-Version: 1.0\n"
17
17
  "Content-Type: text/plain; charset=utf-8\n"
18
18
  "Content-Transfer-Encoding: 8bit\n"
19
- "Generated-By: Babel 2.15.0\n"
19
+ "Generated-By: Babel 2.17.0\n"
20
20
 
21
- #: invenio_banners/administration/banners.py:42
22
- #: invenio_banners/administration/banners.py:96
23
- #: invenio_banners/administration/banners.py:180
24
- #: invenio_banners/administration/banners.py:237 invenio_banners/config.py:37
21
+ #: invenio_banners/config.py:16
22
+ msgid "Info"
23
+ msgstr ""
24
+
25
+ #: invenio_banners/config.py:17
26
+ msgid "Warning"
27
+ msgstr ""
28
+
29
+ #: invenio_banners/config.py:18
30
+ msgid "Other"
31
+ msgstr ""
32
+
33
+ #: invenio_banners/administration/banners.py:43
34
+ #: invenio_banners/administration/banners.py:86
35
+ #: invenio_banners/administration/banners.py:178 invenio_banners/config.py:38
25
36
  msgid "URL path"
26
37
  msgstr ""
27
38
 
28
- #: invenio_banners/config.py:41
39
+ #: invenio_banners/config.py:42
29
40
  msgid "Start DateTime"
30
41
  msgstr ""
31
42
 
32
- #: invenio_banners/config.py:45
43
+ #: invenio_banners/config.py:46
33
44
  msgid "End DateTime"
34
45
  msgstr ""
35
46
 
36
- #: invenio_banners/administration/banners.py:41
37
- #: invenio_banners/administration/banners.py:124
38
- #: invenio_banners/administration/banners.py:208
39
- #: invenio_banners/administration/banners.py:239 invenio_banners/config.py:49
47
+ #: invenio_banners/administration/banners.py:42
48
+ #: invenio_banners/administration/banners.py:113
49
+ #: invenio_banners/administration/banners.py:180 invenio_banners/config.py:50
40
50
  #: invenio_banners/services/config.py:60
41
51
  msgid "Active"
42
52
  msgstr ""
43
53
 
54
+ #: invenio_banners/administration/banners.py:26
44
55
  #: invenio_banners/administration/banners.py:27
56
+ msgid "Banners"
57
+ msgstr ""
58
+
59
+ #: invenio_banners/administration/banners.py:28
45
60
  msgid "Site management"
46
61
  msgstr ""
47
62
 
48
- #: invenio_banners/administration/banners.py:37
63
+ #: invenio_banners/administration/banners.py:38
49
64
  msgid "Id"
50
65
  msgstr ""
51
66
 
52
- #: invenio_banners/administration/banners.py:38
67
+ #: invenio_banners/administration/banners.py:39
53
68
  msgid "Start time (UTC)"
54
69
  msgstr ""
55
70
 
56
- #: invenio_banners/administration/banners.py:39
71
+ #: invenio_banners/administration/banners.py:40
57
72
  msgid "End time (UTC)"
58
73
  msgstr ""
59
74
 
60
- #: invenio_banners/administration/banners.py:40
61
- #: invenio_banners/administration/banners.py:88
62
- #: invenio_banners/administration/banners.py:172
63
- #: invenio_banners/administration/banners.py:236
75
+ #: invenio_banners/administration/banners.py:41
76
+ #: invenio_banners/administration/banners.py:78
77
+ #: invenio_banners/administration/banners.py:177
64
78
  msgid "Message"
65
79
  msgstr ""
66
80
 
67
- #: invenio_banners/administration/banners.py:43
68
- #: invenio_banners/administration/banners.py:108
69
- #: invenio_banners/administration/banners.py:192
70
- #: invenio_banners/administration/banners.py:238
81
+ #: invenio_banners/administration/banners.py:44
82
+ #: invenio_banners/administration/banners.py:98
83
+ #: invenio_banners/administration/banners.py:179
71
84
  msgid "Category"
72
85
  msgstr ""
73
86
 
74
- #: invenio_banners/administration/banners.py:67
75
- #: invenio_banners/administration/banners.py:151
76
- #: invenio_banners/administration/banners.py:234
87
+ #: invenio_banners/administration/banners.py:56
88
+ #: invenio_banners/administration/banners.py:175
77
89
  #: invenio_banners/services/config.py:52
78
90
  msgid "Start time"
79
91
  msgstr ""
80
92
 
81
- #: invenio_banners/administration/banners.py:68
82
- #: invenio_banners/administration/banners.py:152
93
+ #: invenio_banners/administration/banners.py:58
83
94
  msgid ""
84
- "Input format: yyyy-mm-dd hh:mm:ss. Set to current or future date/time to "
85
- "delay the banner. Note: specify time in UTC time standard."
95
+ "Date/time to make the banner active. Input format: yyyy-mm-dd hh:mm:ss. "
96
+ "Set to future date/time to delay the banner. Note: specify time in UTC "
97
+ "time standard."
86
98
  msgstr ""
87
99
 
88
- #: invenio_banners/administration/banners.py:73
89
- #: invenio_banners/administration/banners.py:84
90
- #: invenio_banners/administration/banners.py:157
91
- #: invenio_banners/administration/banners.py:168
100
+ #: invenio_banners/administration/banners.py:63
101
+ #: invenio_banners/administration/banners.py:74
92
102
  msgid "YYYY-MM-DD hh:mm:ss"
93
103
  msgstr ""
94
104
 
95
- #: invenio_banners/administration/banners.py:77
96
- #: invenio_banners/administration/banners.py:161
97
- #: invenio_banners/administration/banners.py:235
105
+ #: invenio_banners/administration/banners.py:67
106
+ #: invenio_banners/administration/banners.py:176
98
107
  #: invenio_banners/services/config.py:56
99
108
  msgid "End time"
100
109
  msgstr ""
101
110
 
102
- #: invenio_banners/administration/banners.py:78
103
- #: invenio_banners/administration/banners.py:162
111
+ #: invenio_banners/administration/banners.py:69
104
112
  msgid ""
105
- "Input format: yyyy-mm-dd hh:mm:ss. Date/time to make the banner inactive."
106
- " Empty value will make the banner active until manually disabled via the "
113
+ "Date/time to make the banner inactive. Input format: yyyy-mm-dd hh:mm:ss."
114
+ " An empty value makes the banner active until manually disabled via the "
107
115
  "active flag. Note: specify time in UTC time standard."
108
116
  msgstr ""
109
117
 
110
- #: invenio_banners/administration/banners.py:89
111
- #: invenio_banners/administration/banners.py:173
118
+ #: invenio_banners/administration/banners.py:80
112
119
  msgid "Message to be displayed on the banner. HTML format is supported."
113
120
  msgstr ""
114
121
 
115
- #: invenio_banners/administration/banners.py:97
116
- #: invenio_banners/administration/banners.py:181
122
+ #: invenio_banners/administration/banners.py:88
117
123
  msgid ""
118
- "Enter the URL path (including the first /) to define in which part of the"
119
- " site the message will be active. For example, if you enter `/records`, "
120
- "any URL starting with `/records` will return an active banner (/records, "
121
- "/records/1234, etc...). Empty value will make the banner active for any "
124
+ "URL path prefix (including the first /) to define where the message will "
125
+ "be active on the site. For example, if you enter `/records`, any URL "
126
+ "starting with `/records` will return an active banner (`/records`, "
127
+ "`/records/1234`, etc.). An empty value makes the banner active for any "
122
128
  "URL."
123
129
  msgstr ""
124
130
 
125
- #: invenio_banners/administration/banners.py:109
131
+ #: invenio_banners/administration/banners.py:100
126
132
  msgid ""
127
- "Banner category. Info option displays the banner with information message"
128
- " in a blue color. Warning - a warning information in an orange color. "
129
- "Other - all the rest types of massages in a gray color."
133
+ "Banner category. `Info` option displays a blue banner. `Warning` option "
134
+ "displays an orange banner. `Other` option displays a gray banner."
130
135
  msgstr ""
131
136
 
132
- #: invenio_banners/administration/banners.py:125
133
- #: invenio_banners/administration/banners.py:209
137
+ #: invenio_banners/administration/banners.py:115
134
138
  msgid ""
135
- "Tick it to activate the banner: banner will bedisplayed according to "
139
+ "Tick it to activate the banner: banner will be displayed according to "
136
140
  "start/end times. If not activated, start/end times will be ignored."
137
141
  msgstr ""
138
142
 
139
- #: invenio_banners/administration/banners.py:193
140
- msgid ""
141
- "Banner category. Info option displays the banner with information message"
142
- " in a blue color. Warning - a warning information in an orange color. "
143
- "Other - all the rest types of messages in a gray color."
143
+ #: invenio_banners/administration/banners.py:131
144
+ msgid "Edit Banner"
145
+ msgstr ""
146
+
147
+ #: invenio_banners/administration/banners.py:150
148
+ msgid "Create Banner"
149
+ msgstr ""
150
+
151
+ #: invenio_banners/administration/banners.py:166
152
+ msgid "Banner Details"
144
153
  msgstr ""
145
154
 
146
- #: invenio_banners/administration/banners.py:240
155
+ #: invenio_banners/administration/banners.py:181
147
156
  msgid "Created"
148
157
  msgstr ""
149
158
 
150
- #: invenio_banners/administration/banners.py:241
159
+ #: invenio_banners/administration/banners.py:182
151
160
  msgid "Updated"
152
161
  msgstr ""
153
162
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.2
1
+ Metadata-Version: 2.4
2
2
  Name: invenio-banners
3
- Version: 4.1.0
3
+ Version: 4.1.1
4
4
  Summary: Invenio-Banners is a module used to create and show banners with useful messages to users.
5
5
  Home-page: https://github.com/inveniosoftware/invenio-banners
6
6
  Author: CERN
@@ -24,6 +24,7 @@ Provides-Extra: opensearch1
24
24
  Requires-Dist: invenio-search[opensearch1]<4.0.0,>=3.0.0; extra == "opensearch1"
25
25
  Provides-Extra: opensearch2
26
26
  Requires-Dist: invenio-search[opensearch2]<4.0.0,>=3.0.0; extra == "opensearch2"
27
+ Dynamic: license-file
27
28
 
28
29
  ..
29
30
  Copyright (C) 2020 CERN.
@@ -65,6 +66,10 @@ https://invenio-banners.readthedocs.io/
65
66
  Changes
66
67
  =======
67
68
 
69
+ Version v4.1.1 (released 2025-03-26)
70
+
71
+ - i18n: mark missing strings for translation and push translations
72
+
68
73
  Version v4.1.0 (released 2025-01-22)
69
74
 
70
75
  - templates: pass ui classes through macro parameters
@@ -1,11 +1,11 @@
1
- invenio_banners/__init__.py,sha256=YVdP_EScqfYBsWnJktuxq3WyIELzgCHDAxei2-kHT88,425
2
- invenio_banners/config.py,sha256=xGHNLvXoJyQsJo7yKeOh-lDySTaX0bVH1mk7BMrE1NA,1299
1
+ invenio_banners/__init__.py,sha256=K89M96RW9tMc1oAFQjOIhBMERgzl7GG_bziL0C-qEGc,425
2
+ invenio_banners/config.py,sha256=csFr0XWaYh05hAjvY44pA6taQFDUmocQ08mX4e5jiEY,1364
3
3
  invenio_banners/ext.py,sha256=rRIgDgZIyGhm2M8WHWApMPRcBVe3eHkaHzTOt-YH6aw,1836
4
4
  invenio_banners/proxies.py,sha256=nfACfpSgfCHiixSy2cO4G9y_lHFQj6onOeBLifYY6IQ,638
5
5
  invenio_banners/utils.py,sha256=PmSJY-S5CQ58HSAUnNWJJqwYO206GqLLLVGCO6YzL10,854
6
6
  invenio_banners/views.py,sha256=sya476lHzXnFERPK7LAgn21wzUVBywjhs5y56Lh7NtY,449
7
7
  invenio_banners/administration/__init__.py,sha256=QtT7HabGpMsOlT6xlFp4RNalseEH7ugsdn532bkR4Tk,243
8
- invenio_banners/administration/banners.py,sha256=ZlJgxiWxteQvhQa5_1_iq1FHWSG0bTm72fvTFcsQydg,5507
8
+ invenio_banners/administration/banners.py,sha256=N-7iBxyp6LRuDXSlktXqncmPnISGHTmWNXtcybKUYPc,5578
9
9
  invenio_banners/alembic/5e02314da32e_create_invenio_banners_db_table.py,sha256=FZ5Z8RsrbrlN8vr43LW0ukVRFTj2DV7B7JgVjnk0zp8,1446
10
10
  invenio_banners/alembic/e40d93d99040_create_invenio_banners_branch.py,sha256=KoEbAzpNneVNBwegW3FfMIW_XTH6im0GXz2DvIF6DwA,562
11
11
  invenio_banners/records/__init__.py,sha256=-A_Q-oZyJuV2lcgLfqXWeMuTlmv6IrEbcMqs_58PHuE,298
@@ -22,7 +22,7 @@ invenio_banners/services/results.py,sha256=sg2z1zPKD8mWgUigwqdFWJqdnA7wOtmf6yKfa
22
22
  invenio_banners/services/schemas.py,sha256=rWh1WSQR4ps_Ii7RWd82FUMk4_aHbdwd5kYh5gCxlJU,1442
23
23
  invenio_banners/services/service.py,sha256=7KdwwrmqvtBsmEschL-i_ydPsijH7RjzLzMFogrKYeQ,4770
24
24
  invenio_banners/templates/semantic-ui/invenio_banners/banner.html,sha256=mOPfWsxRMIftoCyU82WeHlEhHFvy56BTF4wDJHpzX-o,811
25
- invenio_banners/translations/messages.pot,sha256=SQpSVoZDsRHTihUdvEkq7HoNRwffdwhYPm2qITPRPYk,5090
25
+ invenio_banners/translations/messages.pot,sha256=KYbVAPHKUvYhHzhJbIZCQjnyYpY3SmPKmlbCynvgU_g,4672
26
26
  invenio_banners/translations/af/LC_MESSAGES/messages.po,sha256=kS4YofCdd6b6NCX5QXXKBZ1tpnu8dFWEdgQWsYPrYAk,5070
27
27
  invenio_banners/translations/ar/LC_MESSAGES/messages.po,sha256=qnp42420rDMGeqnxztFgBT-79vlRE39BHvuHdsxp4xI,6308
28
28
  invenio_banners/translations/bg/LC_MESSAGES/messages.po,sha256=GBTk25P43GIjtclcTPw1Em_GY4SYgCjvkn4KO6rGujI,5193
@@ -69,10 +69,10 @@ invenio_banners/translations/uk/LC_MESSAGES/messages.po,sha256=Z1ZM6O0bb8if1a82K
69
69
  invenio_banners/translations/uk_UA/LC_MESSAGES/messages.po,sha256=4KNAaMpzBYXmTLcH4NtmLKWpCZKEI9CbjfEH9tfa52c,5308
70
70
  invenio_banners/translations/zh_CN/LC_MESSAGES/messages.po,sha256=rBoibkyrfoi5WwZwI-C67fk_Gce7aGVg2595rJrrDi0,5265
71
71
  invenio_banners/translations/zh_TW/LC_MESSAGES/messages.po,sha256=2rOl1mvYBlJhThTyyQphuCVPl2apcJMew-tGl6WBO8I,5199
72
- invenio_banners-4.1.0.dist-info/AUTHORS.rst,sha256=fQsy2e1bLnwt_a89-kO6CwBwN7o58Ix9F9195b2iTJo,295
73
- invenio_banners-4.1.0.dist-info/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
74
- invenio_banners-4.1.0.dist-info/METADATA,sha256=uSvk_iZ0DyM8aLVvXFPKY_hhJLr4umEL6vwEiDPIAoA,3875
75
- invenio_banners-4.1.0.dist-info/WHEEL,sha256=9Hm2OB-j1QcCUq9Jguht7ayGIIZBRTdOXD1qg9cCgPM,109
76
- invenio_banners-4.1.0.dist-info/entry_points.txt,sha256=3p4FMVuj9AZ1QGm6YdcdhzP9k4xsPfsUG10Ykc3CpxI,719
77
- invenio_banners-4.1.0.dist-info/top_level.txt,sha256=ENJP1dEZ93e4ImCi7AHaVooTUV-6fQnRJ106wHitg5g,16
78
- invenio_banners-4.1.0.dist-info/RECORD,,
72
+ invenio_banners-4.1.1.dist-info/licenses/AUTHORS.rst,sha256=fQsy2e1bLnwt_a89-kO6CwBwN7o58Ix9F9195b2iTJo,295
73
+ invenio_banners-4.1.1.dist-info/licenses/LICENSE,sha256=UvI8pR8jGWqe0sTkb_hRG6eIrozzWwWzyCGEpuXX4KE,1062
74
+ invenio_banners-4.1.1.dist-info/METADATA,sha256=kqHaMrwmPBvhJcr-_76BpqptdKPx-SBENVqSJPyNvKk,4003
75
+ invenio_banners-4.1.1.dist-info/WHEEL,sha256=MAQBAzGbXNI3bUmkDsiV_duv8i-gcdnLzw7cfUFwqhU,109
76
+ invenio_banners-4.1.1.dist-info/entry_points.txt,sha256=3p4FMVuj9AZ1QGm6YdcdhzP9k4xsPfsUG10Ykc3CpxI,719
77
+ invenio_banners-4.1.1.dist-info/top_level.txt,sha256=ENJP1dEZ93e4ImCi7AHaVooTUV-6fQnRJ106wHitg5g,16
78
+ invenio_banners-4.1.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.0)
2
+ Generator: setuptools (78.1.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any