Commit 90f89c0b authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Reworking message when successfully imported a data source

parent 6042d547
......@@ -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 ""
......
......@@ -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)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment