Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hub
ViralHostRangeDB
Commits
90f89c0b
Commit
90f89c0b
authored
Sep 30, 2019
by
Bryan BRANCOTTE
Browse files
Reworking message when successfully imported a data source
parent
6042d547
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/viralhostrange/locale/en/LC_MESSAGES/django.po
View file @
90f89c0b
...
...
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-
26 23:35
+0200\n"
"POT-Creation-Date: 2019-09-
30 17:21
+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
...
...
@@ -845,11 +845,11 @@ msgid "%(value)s must only contains hex char, error with char %(char_pb)s"
msgstr ""
#, python-format
msgid ""
"Successfully imported data source <a href=\"%(url_data_source_name)s\" "
"target=\"_blank\"><b>%(data_source_name)s</b></a>.Redirecting to <a href="
"\"%(url)s\">%(url)s</a> to map the responses to the global scheme."
msgid "success_import%(url_data_source_name)s%(data_source_name)s"
msgstr ""
"Successfully imported data source <a href=\"%(url_data_source_name)s\" "
"target=\"_blank\"><b>%(data_source_name)s</b></a>. You can now map responses "
"to the global scheme."
msgid "Import a file in the databases"
msgstr ""
...
...
src/viralhostrange/viralhostrangedb/views.py
View file @
90f89c0b
...
...
@@ -66,14 +66,9 @@ def file_import(request):
url
=
reverse
(
"viralhostrangedb:data-source-mapping-edit"
,
args
=
[
data_source
.
pk
])
messages
.
success
(
request
=
request
,
message
=
mark_safe
(
_
(
"""Successfully imported data source """
"""<a href="%(url_data_source_name)s" target="_blank"><b>%(data_source_name)s</b></a>."""
"""Redirecting to <a href="%(url)s">%(url)s</a> to map the responses to the global scheme."""
)
%
dict
(
message
=
mark_safe
(
_
(
"success_import%(url_data_source_name)s%(data_source_name)s"
)
%
dict
(
data_source_name
=
data_source
.
name
,
url_data_source_name
=
data_source
.
get_absolute_url
(),
url
=
url
,
)),
)
return
HttpResponseRedirect
(
url
)
...
...
@@ -109,14 +104,9 @@ def data_source_data_update(request, pk):
url
=
reverse
(
"viralhostrangedb:data-source-mapping-edit"
,
args
=
[
data_source
.
pk
])
messages
.
success
(
request
=
request
,
message
=
mark_safe
(
_
(
"""Successfully imported data source """
"""<a href="%(url_data_source_name)s" target="_blank"><b>%(data_source_name)s</b></a>."""
"""Redirecting to <a href="%(url)s">%(url)s</a> to map the responses to the global scheme."""
)
%
dict
(
message
=
mark_safe
(
_
(
"success_import%(url_data_source_name)s%(data_source_name)s"
)
%
dict
(
data_source_name
=
data_source
.
name
,
url_data_source_name
=
data_source
.
get_absolute_url
(),
url
=
url
,
)),
)
return
HttpResponseRedirect
(
url
)
...
...
@@ -1027,14 +1017,9 @@ class DataSourceWizard(wizard_views.NamedUrlSessionWizardView):
url
=
reverse
(
"viralhostrangedb:data-source-mapping-edit"
,
args
=
[
self
.
instance
.
pk
])
messages
.
success
(
request
=
self
.
request
,
message
=
mark_safe
(
_
(
"""Successfully imported data source """
"""<a href="%(url_data_source_name)s" target="_blank"><b>%(data_source_name)s</b></a>."""
"""Redirecting to <a href="%(url)s">%(url)s</a> to map the responses to the global scheme."""
)
%
dict
(
message
=
mark_safe
(
_
(
"success_import%(url_data_source_name)s%(data_source_name)s"
)
%
dict
(
data_source_name
=
self
.
instance
.
name
,
url_data_source_name
=
self
.
instance
.
get_absolute_url
(),
url
=
url
,
)),
)
return
HttpResponseRedirect
(
url
)
...
...
Bryan BRANCOTTE
@bbrancot
mentioned in issue
#104 (closed)
·
Sep 30, 2019
mentioned in issue
#104 (closed)
mentioned in issue #104
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment