invenio-banners 3.0.0__py2.py3-none-any.whl → 3.0.2__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.
- invenio_banners/__init__.py +1 -1
- invenio_banners/administration/banners.py +3 -2
- invenio_banners/resources/errors.py +17 -1
- invenio_banners/services/schemas.py +11 -2
- invenio_banners/services/service.py +1 -1
- invenio_banners/translations/af/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/ar/LC_MESSAGES/messages.po +171 -0
- invenio_banners/translations/bg/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/ca/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/cs/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/da/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/de/LC_MESSAGES/messages.po +166 -0
- invenio_banners/translations/de_AT/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/de_DE/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/el/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/en_AT/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/en_HU/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/es/LC_MESSAGES/messages.po +190 -0
- invenio_banners/translations/es_CU/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/es_MX/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/et/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/et_EE/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/fa/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/fa_IR/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/fr/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/fr_CI/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/fr_FR/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/gl/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/hi_IN/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/hr/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/hu/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/hu_HU/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/it/LC_MESSAGES/messages.po +166 -0
- invenio_banners/translations/ja/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/ka/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/lt/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/messages.pot +161 -0
- invenio_banners/translations/ne/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/no/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/pl/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/pt/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/ro/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/ru/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/rw/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/sk/LC_MESSAGES/messages.po +165 -0
- invenio_banners/translations/sv/LC_MESSAGES/messages.po +185 -0
- invenio_banners/translations/sv_SE/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/tr/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/uk/LC_MESSAGES/messages.po +164 -0
- invenio_banners/translations/uk_UA/LC_MESSAGES/messages.po +160 -0
- invenio_banners/translations/zh_CN/LC_MESSAGES/messages.po +166 -0
- invenio_banners/translations/zh_TW/LC_MESSAGES/messages.po +164 -0
- {invenio_banners-3.0.0.dist-info → invenio_banners-3.0.2.dist-info}/METADATA +9 -1
- invenio_banners-3.0.2.dist-info/RECORD +78 -0
- invenio_banners-3.0.0.dist-info/RECORD +0 -31
- {invenio_banners-3.0.0.dist-info → invenio_banners-3.0.2.dist-info}/AUTHORS.rst +0 -0
- {invenio_banners-3.0.0.dist-info → invenio_banners-3.0.2.dist-info}/LICENSE +0 -0
- {invenio_banners-3.0.0.dist-info → invenio_banners-3.0.2.dist-info}/WHEEL +0 -0
- {invenio_banners-3.0.0.dist-info → invenio_banners-3.0.2.dist-info}/entry_points.txt +0 -0
- {invenio_banners-3.0.0.dist-info → invenio_banners-3.0.2.dist-info}/top_level.txt +0 -0
invenio_banners/__init__.py
CHANGED
|
@@ -24,7 +24,7 @@ class BannerListView(AdminResourceListView):
|
|
|
24
24
|
resource_config = "banners_resource"
|
|
25
25
|
title = "Banners"
|
|
26
26
|
menu_label = "Banners"
|
|
27
|
-
category = "
|
|
27
|
+
category = _("Site management")
|
|
28
28
|
pid_path = "id"
|
|
29
29
|
icon = "newspaper"
|
|
30
30
|
|
|
@@ -117,6 +117,7 @@ class BannerEditView(AdminResourceEditView):
|
|
|
117
117
|
{"title_l10n": "Warning", "id": "warning"},
|
|
118
118
|
{"title_l10n": "Other", "id": "other"},
|
|
119
119
|
],
|
|
120
|
+
"placeholder": "Select a category",
|
|
120
121
|
},
|
|
121
122
|
"active": {
|
|
122
123
|
"order": 6,
|
|
@@ -200,7 +201,7 @@ class BannerCreateView(AdminResourceCreateView):
|
|
|
200
201
|
{"title_l10n": "Warning", "id": "warning"},
|
|
201
202
|
{"title_l10n": "Other", "id": "other"},
|
|
202
203
|
],
|
|
203
|
-
"placeholder": "
|
|
204
|
+
"placeholder": "Select a category",
|
|
204
205
|
},
|
|
205
206
|
"active": {
|
|
206
207
|
"order": 6,
|
|
@@ -10,9 +10,22 @@
|
|
|
10
10
|
from flask_resources import HTTPJSONException, create_error_handler
|
|
11
11
|
|
|
12
12
|
from ..services.errors import BannerNotExistsError
|
|
13
|
+
import marshmallow as ma
|
|
14
|
+
from flask_resources import HTTPJSONException, create_error_handler
|
|
15
|
+
from invenio_records_resources.errors import validation_error_to_list_errors
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
class HTTPJSONValidationException(HTTPJSONException):
|
|
19
|
+
"""HTTP exception serializing to JSON and reflecting Marshmallow errors."""
|
|
13
20
|
|
|
21
|
+
description = "A validation error occurred."
|
|
14
22
|
|
|
15
|
-
|
|
23
|
+
def __init__(self, exception):
|
|
24
|
+
"""Constructor."""
|
|
25
|
+
super().__init__(code=400, errors=validation_error_to_list_errors(exception))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class ErrorHandlersMixin():
|
|
16
29
|
"""Mixin to define error handlers."""
|
|
17
30
|
|
|
18
31
|
error_handlers = {
|
|
@@ -22,4 +35,7 @@ class ErrorHandlersMixin:
|
|
|
22
35
|
description=e.description,
|
|
23
36
|
)
|
|
24
37
|
),
|
|
38
|
+
ma.ValidationError: create_error_handler(
|
|
39
|
+
lambda e: HTTPJSONValidationException(e)
|
|
40
|
+
),
|
|
25
41
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
from datetime import datetime, timezone
|
|
11
11
|
|
|
12
12
|
from invenio_records_resources.services.records.schema import BaseRecordSchema
|
|
13
|
-
from marshmallow import fields
|
|
13
|
+
from marshmallow import fields, pre_load
|
|
14
14
|
from marshmallow_utils.fields import TZDateTime
|
|
15
15
|
|
|
16
16
|
|
|
@@ -19,7 +19,7 @@ class BannerSchema(BaseRecordSchema):
|
|
|
19
19
|
|
|
20
20
|
message = fields.String(required=True)
|
|
21
21
|
url_path = fields.String(allow_none=True)
|
|
22
|
-
category = fields.String(required=True)
|
|
22
|
+
category = fields.String(required=True, metadata={"default": "info"})
|
|
23
23
|
start_datetime = fields.DateTime(
|
|
24
24
|
required=True,
|
|
25
25
|
metadata={"default": datetime.utcnow().strftime("%Y-%m-%d %H:%M:%S")},
|
|
@@ -28,3 +28,12 @@ class BannerSchema(BaseRecordSchema):
|
|
|
28
28
|
active = fields.Boolean(required=True, metadata={"default": True})
|
|
29
29
|
created = TZDateTime(timezone=timezone.utc, format="iso", dump_only=True)
|
|
30
30
|
updated = TZDateTime(timezone=timezone.utc, format="iso", dump_only=True)
|
|
31
|
+
|
|
32
|
+
@pre_load
|
|
33
|
+
def change_none_to_string(self, data, **kwargs):
|
|
34
|
+
"""Fix for empty strings not in line with allow_none=True."""
|
|
35
|
+
for field in data:
|
|
36
|
+
if field == "end_datetime" or field == "category":
|
|
37
|
+
if data[field] == "":
|
|
38
|
+
data[field] = None
|
|
39
|
+
return data
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
# Translations template for invenio-banners.
|
|
2
|
+
# Copyright (C) 2023 CERN
|
|
3
|
+
# This file is distributed under the same license as the invenio-banners
|
|
4
|
+
# project.
|
|
5
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
|
|
6
|
+
#
|
|
7
|
+
#, fuzzy
|
|
8
|
+
msgid ""
|
|
9
|
+
msgstr ""
|
|
10
|
+
"Project-Id-Version: invenio-banners 2.1.0\n"
|
|
11
|
+
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
|
|
12
|
+
"POT-Creation-Date: 2023-06-30 11:25+0200\n"
|
|
13
|
+
"PO-Revision-Date: 2023-06-30 09:38+0000\n"
|
|
14
|
+
"Language-Team: Afrikaans (https://app.transifex.com/inveniosoftware/teams/23537/af/)\n"
|
|
15
|
+
"MIME-Version: 1.0\n"
|
|
16
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
17
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
18
|
+
"Generated-By: Babel 2.12.1\n"
|
|
19
|
+
"Language: af\n"
|
|
20
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
21
|
+
|
|
22
|
+
#: invenio_banners/administration/banners.py:42
|
|
23
|
+
#: invenio_banners/administration/banners.py:96
|
|
24
|
+
#: invenio_banners/administration/banners.py:179
|
|
25
|
+
#: invenio_banners/administration/banners.py:236 invenio_banners/config.py:37
|
|
26
|
+
msgid "URL path"
|
|
27
|
+
msgstr ""
|
|
28
|
+
|
|
29
|
+
#: invenio_banners/config.py:41
|
|
30
|
+
msgid "Start DateTime"
|
|
31
|
+
msgstr ""
|
|
32
|
+
|
|
33
|
+
#: invenio_banners/config.py:45
|
|
34
|
+
msgid "End DateTime"
|
|
35
|
+
msgstr ""
|
|
36
|
+
|
|
37
|
+
#: invenio_banners/administration/banners.py:41
|
|
38
|
+
#: invenio_banners/administration/banners.py:123
|
|
39
|
+
#: invenio_banners/administration/banners.py:207
|
|
40
|
+
#: invenio_banners/administration/banners.py:238 invenio_banners/config.py:49
|
|
41
|
+
#: invenio_banners/services/config.py:60
|
|
42
|
+
msgid "Active"
|
|
43
|
+
msgstr ""
|
|
44
|
+
|
|
45
|
+
#: invenio_banners/administration/banners.py:37
|
|
46
|
+
msgid "Id"
|
|
47
|
+
msgstr ""
|
|
48
|
+
|
|
49
|
+
#: invenio_banners/administration/banners.py:38
|
|
50
|
+
msgid "Start time (UTC)"
|
|
51
|
+
msgstr ""
|
|
52
|
+
|
|
53
|
+
#: invenio_banners/administration/banners.py:39
|
|
54
|
+
msgid "End time (UTC)"
|
|
55
|
+
msgstr ""
|
|
56
|
+
|
|
57
|
+
#: invenio_banners/administration/banners.py:40
|
|
58
|
+
#: invenio_banners/administration/banners.py:88
|
|
59
|
+
#: invenio_banners/administration/banners.py:171
|
|
60
|
+
#: invenio_banners/administration/banners.py:235
|
|
61
|
+
msgid "Message"
|
|
62
|
+
msgstr ""
|
|
63
|
+
|
|
64
|
+
#: invenio_banners/administration/banners.py:43
|
|
65
|
+
#: invenio_banners/administration/banners.py:108
|
|
66
|
+
#: invenio_banners/administration/banners.py:191
|
|
67
|
+
#: invenio_banners/administration/banners.py:237
|
|
68
|
+
msgid "Category"
|
|
69
|
+
msgstr ""
|
|
70
|
+
|
|
71
|
+
#: invenio_banners/administration/banners.py:67
|
|
72
|
+
#: invenio_banners/administration/banners.py:150
|
|
73
|
+
#: invenio_banners/administration/banners.py:233
|
|
74
|
+
#: invenio_banners/services/config.py:52
|
|
75
|
+
msgid "Start time"
|
|
76
|
+
msgstr ""
|
|
77
|
+
|
|
78
|
+
#: invenio_banners/administration/banners.py:68
|
|
79
|
+
#: invenio_banners/administration/banners.py:151
|
|
80
|
+
msgid ""
|
|
81
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Set to current or future date/time to "
|
|
82
|
+
"delay the banner. Note: specify time in UTC time standard."
|
|
83
|
+
msgstr ""
|
|
84
|
+
|
|
85
|
+
#: invenio_banners/administration/banners.py:73
|
|
86
|
+
#: invenio_banners/administration/banners.py:84
|
|
87
|
+
#: invenio_banners/administration/banners.py:156
|
|
88
|
+
#: invenio_banners/administration/banners.py:167
|
|
89
|
+
msgid "YYYY-MM-DD hh:mm:ss"
|
|
90
|
+
msgstr ""
|
|
91
|
+
|
|
92
|
+
#: invenio_banners/administration/banners.py:77
|
|
93
|
+
#: invenio_banners/administration/banners.py:160
|
|
94
|
+
#: invenio_banners/administration/banners.py:234
|
|
95
|
+
#: invenio_banners/services/config.py:56
|
|
96
|
+
msgid "End time"
|
|
97
|
+
msgstr ""
|
|
98
|
+
|
|
99
|
+
#: invenio_banners/administration/banners.py:78
|
|
100
|
+
#: invenio_banners/administration/banners.py:161
|
|
101
|
+
msgid ""
|
|
102
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Date/time to make the banner inactive. "
|
|
103
|
+
"Empty value will make the banner active until manually disabled via the "
|
|
104
|
+
"active flag. Note: specify time in UTC time standard."
|
|
105
|
+
msgstr ""
|
|
106
|
+
|
|
107
|
+
#: invenio_banners/administration/banners.py:89
|
|
108
|
+
#: invenio_banners/administration/banners.py:172
|
|
109
|
+
msgid "Message to be displayed on the banner. HTML format is supported."
|
|
110
|
+
msgstr ""
|
|
111
|
+
|
|
112
|
+
#: invenio_banners/administration/banners.py:97
|
|
113
|
+
#: invenio_banners/administration/banners.py:180
|
|
114
|
+
msgid ""
|
|
115
|
+
"Enter the URL path (including the first /) to define in which part of the "
|
|
116
|
+
"site the message will be active. For example, if you enter `/records`, any "
|
|
117
|
+
"URL starting with `/records` will return an active banner (/records, "
|
|
118
|
+
"/records/1234, etc...). Empty value will make the banner active for any URL."
|
|
119
|
+
msgstr ""
|
|
120
|
+
|
|
121
|
+
#: invenio_banners/administration/banners.py:109
|
|
122
|
+
msgid ""
|
|
123
|
+
"Banner category. Info option displays the banner with information message in"
|
|
124
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
125
|
+
"all the rest types of massages in a gray color."
|
|
126
|
+
msgstr ""
|
|
127
|
+
|
|
128
|
+
#: invenio_banners/administration/banners.py:124
|
|
129
|
+
#: invenio_banners/administration/banners.py:208
|
|
130
|
+
msgid ""
|
|
131
|
+
"Tick it to activate the banner: banner will bedisplayed according to "
|
|
132
|
+
"start/end times. If not activated, start/end times will be ignored."
|
|
133
|
+
msgstr ""
|
|
134
|
+
|
|
135
|
+
#: invenio_banners/administration/banners.py:192
|
|
136
|
+
msgid ""
|
|
137
|
+
"Banner category. Info option displays the banner with information message in"
|
|
138
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
139
|
+
"all the rest types of messages in a gray color."
|
|
140
|
+
msgstr ""
|
|
141
|
+
|
|
142
|
+
#: invenio_banners/administration/banners.py:239
|
|
143
|
+
msgid "Created"
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
146
|
+
#: invenio_banners/administration/banners.py:240
|
|
147
|
+
msgid "Updated"
|
|
148
|
+
msgstr ""
|
|
149
|
+
|
|
150
|
+
#: invenio_banners/services/config.py:36
|
|
151
|
+
msgid "Ascending"
|
|
152
|
+
msgstr ""
|
|
153
|
+
|
|
154
|
+
#: invenio_banners/services/config.py:40
|
|
155
|
+
msgid "Descending"
|
|
156
|
+
msgstr ""
|
|
157
|
+
|
|
158
|
+
#: invenio_banners/services/config.py:48
|
|
159
|
+
msgid "Url path"
|
|
160
|
+
msgstr ""
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# Translations template for invenio-banners.
|
|
2
|
+
# Copyright (C) 2023 CERN
|
|
3
|
+
# This file is distributed under the same license as the invenio-banners
|
|
4
|
+
# project.
|
|
5
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
|
|
6
|
+
#
|
|
7
|
+
# Translators:
|
|
8
|
+
# Bessem Aamira <bessemamira@gmail.com>, 2023
|
|
9
|
+
# Salaheddine Ben Ali <salaheddine.benali@cnudst.tn>, 2023
|
|
10
|
+
#
|
|
11
|
+
#, fuzzy
|
|
12
|
+
msgid ""
|
|
13
|
+
msgstr ""
|
|
14
|
+
"Project-Id-Version: invenio-banners 2.1.0\n"
|
|
15
|
+
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
|
|
16
|
+
"POT-Creation-Date: 2023-06-30 11:25+0200\n"
|
|
17
|
+
"PO-Revision-Date: 2023-06-30 09:38+0000\n"
|
|
18
|
+
"Last-Translator: Salaheddine Ben Ali <salaheddine.benali@cnudst.tn>, 2023\n"
|
|
19
|
+
"Language-Team: Arabic (https://app.transifex.com/inveniosoftware/teams/23537/ar/)\n"
|
|
20
|
+
"MIME-Version: 1.0\n"
|
|
21
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
22
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
23
|
+
"Generated-By: Babel 2.12.1\n"
|
|
24
|
+
"Language: ar\n"
|
|
25
|
+
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"
|
|
26
|
+
|
|
27
|
+
#: invenio_banners/administration/banners.py:42
|
|
28
|
+
#: invenio_banners/administration/banners.py:96
|
|
29
|
+
#: invenio_banners/administration/banners.py:179
|
|
30
|
+
#: invenio_banners/administration/banners.py:236 invenio_banners/config.py:37
|
|
31
|
+
msgid "URL path"
|
|
32
|
+
msgstr "مسلك URL"
|
|
33
|
+
|
|
34
|
+
#: invenio_banners/config.py:41
|
|
35
|
+
msgid "Start DateTime"
|
|
36
|
+
msgstr "تاريخ و توقيت البدء"
|
|
37
|
+
|
|
38
|
+
#: invenio_banners/config.py:45
|
|
39
|
+
msgid "End DateTime"
|
|
40
|
+
msgstr "تاريخ و توقيت الإنتهاء"
|
|
41
|
+
|
|
42
|
+
#: invenio_banners/administration/banners.py:41
|
|
43
|
+
#: invenio_banners/administration/banners.py:123
|
|
44
|
+
#: invenio_banners/administration/banners.py:207
|
|
45
|
+
#: invenio_banners/administration/banners.py:238 invenio_banners/config.py:49
|
|
46
|
+
#: invenio_banners/services/config.py:60
|
|
47
|
+
msgid "Active"
|
|
48
|
+
msgstr "مفعٌل"
|
|
49
|
+
|
|
50
|
+
#: invenio_banners/administration/banners.py:37
|
|
51
|
+
msgid "Id"
|
|
52
|
+
msgstr "معرّف Id"
|
|
53
|
+
|
|
54
|
+
#: invenio_banners/administration/banners.py:38
|
|
55
|
+
msgid "Start time (UTC)"
|
|
56
|
+
msgstr "توقيت البدء (ت ع م)"
|
|
57
|
+
|
|
58
|
+
#: invenio_banners/administration/banners.py:39
|
|
59
|
+
msgid "End time (UTC)"
|
|
60
|
+
msgstr "توقيت الإنهاء (ت ع م)"
|
|
61
|
+
|
|
62
|
+
#: invenio_banners/administration/banners.py:40
|
|
63
|
+
#: invenio_banners/administration/banners.py:88
|
|
64
|
+
#: invenio_banners/administration/banners.py:171
|
|
65
|
+
#: invenio_banners/administration/banners.py:235
|
|
66
|
+
msgid "Message"
|
|
67
|
+
msgstr "رسالة"
|
|
68
|
+
|
|
69
|
+
#: invenio_banners/administration/banners.py:43
|
|
70
|
+
#: invenio_banners/administration/banners.py:108
|
|
71
|
+
#: invenio_banners/administration/banners.py:191
|
|
72
|
+
#: invenio_banners/administration/banners.py:237
|
|
73
|
+
msgid "Category"
|
|
74
|
+
msgstr "الفئة"
|
|
75
|
+
|
|
76
|
+
#: invenio_banners/administration/banners.py:67
|
|
77
|
+
#: invenio_banners/administration/banners.py:150
|
|
78
|
+
#: invenio_banners/administration/banners.py:233
|
|
79
|
+
#: invenio_banners/services/config.py:52
|
|
80
|
+
msgid "Start time"
|
|
81
|
+
msgstr "توقيت البدء"
|
|
82
|
+
|
|
83
|
+
#: invenio_banners/administration/banners.py:68
|
|
84
|
+
#: invenio_banners/administration/banners.py:151
|
|
85
|
+
msgid ""
|
|
86
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Set to current or future date/time to "
|
|
87
|
+
"delay the banner. Note: specify time in UTC time standard."
|
|
88
|
+
msgstr ""
|
|
89
|
+
"صيغة الرّقن : yyyy-mm-dd hh: mm: ss. إضبط على التاريخ / الوقت الحاليين أو "
|
|
90
|
+
"المستقبليين لتأخير الشعار. ملاحظة: حدد الوقت بمعيار التوقيت العالمي الموحّد "
|
|
91
|
+
"(UTC)."
|
|
92
|
+
|
|
93
|
+
#: invenio_banners/administration/banners.py:73
|
|
94
|
+
#: invenio_banners/administration/banners.py:84
|
|
95
|
+
#: invenio_banners/administration/banners.py:156
|
|
96
|
+
#: invenio_banners/administration/banners.py:167
|
|
97
|
+
msgid "YYYY-MM-DD hh:mm:ss"
|
|
98
|
+
msgstr "YYYY-MM-DD hh:mm:ss"
|
|
99
|
+
|
|
100
|
+
#: invenio_banners/administration/banners.py:77
|
|
101
|
+
#: invenio_banners/administration/banners.py:160
|
|
102
|
+
#: invenio_banners/administration/banners.py:234
|
|
103
|
+
#: invenio_banners/services/config.py:56
|
|
104
|
+
msgid "End time"
|
|
105
|
+
msgstr "توقيت الإنتهاء"
|
|
106
|
+
|
|
107
|
+
#: invenio_banners/administration/banners.py:78
|
|
108
|
+
#: invenio_banners/administration/banners.py:161
|
|
109
|
+
msgid ""
|
|
110
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Date/time to make the banner inactive. "
|
|
111
|
+
"Empty value will make the banner active until manually disabled via the "
|
|
112
|
+
"active flag. Note: specify time in UTC time standard."
|
|
113
|
+
msgstr ""
|
|
114
|
+
"صيغة الرّقن : yyyy-mm-dd hh: mm: ss. التاريخ / الوقت لجعل الشعار غير نشط. "
|
|
115
|
+
"القيمة الفارغة ستؤدي إلى تنشيط الشعار حتى يتم تعطيله يدويًا عبر العلامة "
|
|
116
|
+
"التّنشيط. ملاحظة: حدد الوقت بمعيار التوقيت العالمي الموحّد (UTC)."
|
|
117
|
+
|
|
118
|
+
#: invenio_banners/administration/banners.py:89
|
|
119
|
+
#: invenio_banners/administration/banners.py:172
|
|
120
|
+
msgid "Message to be displayed on the banner. HTML format is supported."
|
|
121
|
+
msgstr ""
|
|
122
|
+
|
|
123
|
+
#: invenio_banners/administration/banners.py:97
|
|
124
|
+
#: invenio_banners/administration/banners.py:180
|
|
125
|
+
msgid ""
|
|
126
|
+
"Enter the URL path (including the first /) to define in which part of the "
|
|
127
|
+
"site the message will be active. For example, if you enter `/records`, any "
|
|
128
|
+
"URL starting with `/records` will return an active banner (/records, "
|
|
129
|
+
"/records/1234, etc...). Empty value will make the banner active for any URL."
|
|
130
|
+
msgstr ""
|
|
131
|
+
|
|
132
|
+
#: invenio_banners/administration/banners.py:109
|
|
133
|
+
msgid ""
|
|
134
|
+
"Banner category. Info option displays the banner with information message in"
|
|
135
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
136
|
+
"all the rest types of massages in a gray color."
|
|
137
|
+
msgstr ""
|
|
138
|
+
|
|
139
|
+
#: invenio_banners/administration/banners.py:124
|
|
140
|
+
#: invenio_banners/administration/banners.py:208
|
|
141
|
+
msgid ""
|
|
142
|
+
"Tick it to activate the banner: banner will bedisplayed according to "
|
|
143
|
+
"start/end times. If not activated, start/end times will be ignored."
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
146
|
+
#: invenio_banners/administration/banners.py:192
|
|
147
|
+
msgid ""
|
|
148
|
+
"Banner category. Info option displays the banner with information message in"
|
|
149
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
150
|
+
"all the rest types of messages in a gray color."
|
|
151
|
+
msgstr ""
|
|
152
|
+
|
|
153
|
+
#: invenio_banners/administration/banners.py:239
|
|
154
|
+
msgid "Created"
|
|
155
|
+
msgstr "تمّ الإنشاء"
|
|
156
|
+
|
|
157
|
+
#: invenio_banners/administration/banners.py:240
|
|
158
|
+
msgid "Updated"
|
|
159
|
+
msgstr "محينة"
|
|
160
|
+
|
|
161
|
+
#: invenio_banners/services/config.py:36
|
|
162
|
+
msgid "Ascending"
|
|
163
|
+
msgstr "تصاعدي"
|
|
164
|
+
|
|
165
|
+
#: invenio_banners/services/config.py:40
|
|
166
|
+
msgid "Descending"
|
|
167
|
+
msgstr "تنازلي"
|
|
168
|
+
|
|
169
|
+
#: invenio_banners/services/config.py:48
|
|
170
|
+
msgid "Url path"
|
|
171
|
+
msgstr ""
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
# Translations template for invenio-banners.
|
|
2
|
+
# Copyright (C) 2023 CERN
|
|
3
|
+
# This file is distributed under the same license as the invenio-banners
|
|
4
|
+
# project.
|
|
5
|
+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2023.
|
|
6
|
+
#
|
|
7
|
+
# Translators:
|
|
8
|
+
# Tibor Simko <tibor.simko@cern.ch>, 2023
|
|
9
|
+
#
|
|
10
|
+
#, fuzzy
|
|
11
|
+
msgid ""
|
|
12
|
+
msgstr ""
|
|
13
|
+
"Project-Id-Version: invenio-banners 2.1.0\n"
|
|
14
|
+
"Report-Msgid-Bugs-To: info@inveniosoftware.org\n"
|
|
15
|
+
"POT-Creation-Date: 2023-06-30 11:25+0200\n"
|
|
16
|
+
"PO-Revision-Date: 2023-06-30 09:38+0000\n"
|
|
17
|
+
"Last-Translator: Tibor Simko <tibor.simko@cern.ch>, 2023\n"
|
|
18
|
+
"Language-Team: Bulgarian (https://app.transifex.com/inveniosoftware/teams/23537/bg/)\n"
|
|
19
|
+
"MIME-Version: 1.0\n"
|
|
20
|
+
"Content-Type: text/plain; charset=UTF-8\n"
|
|
21
|
+
"Content-Transfer-Encoding: 8bit\n"
|
|
22
|
+
"Generated-By: Babel 2.12.1\n"
|
|
23
|
+
"Language: bg\n"
|
|
24
|
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
|
25
|
+
|
|
26
|
+
#: invenio_banners/administration/banners.py:42
|
|
27
|
+
#: invenio_banners/administration/banners.py:96
|
|
28
|
+
#: invenio_banners/administration/banners.py:179
|
|
29
|
+
#: invenio_banners/administration/banners.py:236 invenio_banners/config.py:37
|
|
30
|
+
msgid "URL path"
|
|
31
|
+
msgstr ""
|
|
32
|
+
|
|
33
|
+
#: invenio_banners/config.py:41
|
|
34
|
+
msgid "Start DateTime"
|
|
35
|
+
msgstr ""
|
|
36
|
+
|
|
37
|
+
#: invenio_banners/config.py:45
|
|
38
|
+
msgid "End DateTime"
|
|
39
|
+
msgstr ""
|
|
40
|
+
|
|
41
|
+
#: invenio_banners/administration/banners.py:41
|
|
42
|
+
#: invenio_banners/administration/banners.py:123
|
|
43
|
+
#: invenio_banners/administration/banners.py:207
|
|
44
|
+
#: invenio_banners/administration/banners.py:238 invenio_banners/config.py:49
|
|
45
|
+
#: invenio_banners/services/config.py:60
|
|
46
|
+
msgid "Active"
|
|
47
|
+
msgstr ""
|
|
48
|
+
|
|
49
|
+
#: invenio_banners/administration/banners.py:37
|
|
50
|
+
msgid "Id"
|
|
51
|
+
msgstr "Id"
|
|
52
|
+
|
|
53
|
+
#: invenio_banners/administration/banners.py:38
|
|
54
|
+
msgid "Start time (UTC)"
|
|
55
|
+
msgstr ""
|
|
56
|
+
|
|
57
|
+
#: invenio_banners/administration/banners.py:39
|
|
58
|
+
msgid "End time (UTC)"
|
|
59
|
+
msgstr ""
|
|
60
|
+
|
|
61
|
+
#: invenio_banners/administration/banners.py:40
|
|
62
|
+
#: invenio_banners/administration/banners.py:88
|
|
63
|
+
#: invenio_banners/administration/banners.py:171
|
|
64
|
+
#: invenio_banners/administration/banners.py:235
|
|
65
|
+
msgid "Message"
|
|
66
|
+
msgstr ""
|
|
67
|
+
|
|
68
|
+
#: invenio_banners/administration/banners.py:43
|
|
69
|
+
#: invenio_banners/administration/banners.py:108
|
|
70
|
+
#: invenio_banners/administration/banners.py:191
|
|
71
|
+
#: invenio_banners/administration/banners.py:237
|
|
72
|
+
msgid "Category"
|
|
73
|
+
msgstr ""
|
|
74
|
+
|
|
75
|
+
#: invenio_banners/administration/banners.py:67
|
|
76
|
+
#: invenio_banners/administration/banners.py:150
|
|
77
|
+
#: invenio_banners/administration/banners.py:233
|
|
78
|
+
#: invenio_banners/services/config.py:52
|
|
79
|
+
msgid "Start time"
|
|
80
|
+
msgstr ""
|
|
81
|
+
|
|
82
|
+
#: invenio_banners/administration/banners.py:68
|
|
83
|
+
#: invenio_banners/administration/banners.py:151
|
|
84
|
+
msgid ""
|
|
85
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Set to current or future date/time to "
|
|
86
|
+
"delay the banner. Note: specify time in UTC time standard."
|
|
87
|
+
msgstr ""
|
|
88
|
+
|
|
89
|
+
#: invenio_banners/administration/banners.py:73
|
|
90
|
+
#: invenio_banners/administration/banners.py:84
|
|
91
|
+
#: invenio_banners/administration/banners.py:156
|
|
92
|
+
#: invenio_banners/administration/banners.py:167
|
|
93
|
+
msgid "YYYY-MM-DD hh:mm:ss"
|
|
94
|
+
msgstr ""
|
|
95
|
+
|
|
96
|
+
#: invenio_banners/administration/banners.py:77
|
|
97
|
+
#: invenio_banners/administration/banners.py:160
|
|
98
|
+
#: invenio_banners/administration/banners.py:234
|
|
99
|
+
#: invenio_banners/services/config.py:56
|
|
100
|
+
msgid "End time"
|
|
101
|
+
msgstr ""
|
|
102
|
+
|
|
103
|
+
#: invenio_banners/administration/banners.py:78
|
|
104
|
+
#: invenio_banners/administration/banners.py:161
|
|
105
|
+
msgid ""
|
|
106
|
+
"Input format: yyyy-mm-dd hh:mm:ss. Date/time to make the banner inactive. "
|
|
107
|
+
"Empty value will make the banner active until manually disabled via the "
|
|
108
|
+
"active flag. Note: specify time in UTC time standard."
|
|
109
|
+
msgstr ""
|
|
110
|
+
|
|
111
|
+
#: invenio_banners/administration/banners.py:89
|
|
112
|
+
#: invenio_banners/administration/banners.py:172
|
|
113
|
+
msgid "Message to be displayed on the banner. HTML format is supported."
|
|
114
|
+
msgstr ""
|
|
115
|
+
|
|
116
|
+
#: invenio_banners/administration/banners.py:97
|
|
117
|
+
#: invenio_banners/administration/banners.py:180
|
|
118
|
+
msgid ""
|
|
119
|
+
"Enter the URL path (including the first /) to define in which part of the "
|
|
120
|
+
"site the message will be active. For example, if you enter `/records`, any "
|
|
121
|
+
"URL starting with `/records` will return an active banner (/records, "
|
|
122
|
+
"/records/1234, etc...). Empty value will make the banner active for any URL."
|
|
123
|
+
msgstr ""
|
|
124
|
+
|
|
125
|
+
#: invenio_banners/administration/banners.py:109
|
|
126
|
+
msgid ""
|
|
127
|
+
"Banner category. Info option displays the banner with information message in"
|
|
128
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
129
|
+
"all the rest types of massages in a gray color."
|
|
130
|
+
msgstr ""
|
|
131
|
+
|
|
132
|
+
#: invenio_banners/administration/banners.py:124
|
|
133
|
+
#: invenio_banners/administration/banners.py:208
|
|
134
|
+
msgid ""
|
|
135
|
+
"Tick it to activate the banner: banner will bedisplayed according to "
|
|
136
|
+
"start/end times. If not activated, start/end times will be ignored."
|
|
137
|
+
msgstr ""
|
|
138
|
+
|
|
139
|
+
#: invenio_banners/administration/banners.py:192
|
|
140
|
+
msgid ""
|
|
141
|
+
"Banner category. Info option displays the banner with information message in"
|
|
142
|
+
" a blue color. Warning - a warning information in an orange color. Other - "
|
|
143
|
+
"all the rest types of messages in a gray color."
|
|
144
|
+
msgstr ""
|
|
145
|
+
|
|
146
|
+
#: invenio_banners/administration/banners.py:239
|
|
147
|
+
msgid "Created"
|
|
148
|
+
msgstr ""
|
|
149
|
+
|
|
150
|
+
#: invenio_banners/administration/banners.py:240
|
|
151
|
+
msgid "Updated"
|
|
152
|
+
msgstr ""
|
|
153
|
+
|
|
154
|
+
#: invenio_banners/services/config.py:36
|
|
155
|
+
msgid "Ascending"
|
|
156
|
+
msgstr ""
|
|
157
|
+
|
|
158
|
+
#: invenio_banners/services/config.py:40
|
|
159
|
+
msgid "Descending"
|
|
160
|
+
msgstr ""
|
|
161
|
+
|
|
162
|
+
#: invenio_banners/services/config.py:48
|
|
163
|
+
msgid "Url path"
|
|
164
|
+
msgstr ""
|