[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Maposmatic-dev] [PATCH] Don't try to give the reason when the rendering
From: |
Gaël UTARD |
Subject: |
[Maposmatic-dev] [PATCH] Don't try to give the reason when the rendering fails. Just tell to ask address@hidden This fixes bug #27413. |
Date: |
Sun, 20 Dec 2009 15:54:24 +0100 |
---
www/locale/de/LC_MESSAGES/django.po | 5 -----
www/locale/fr/LC_MESSAGES/django.po | 10 ++++++++--
www/maposmatic/templatetags/extratags.py | 7 ++++---
3 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/www/locale/de/LC_MESSAGES/django.po
b/www/locale/de/LC_MESSAGES/django.po
index d234d64..285cdff 100644
--- a/www/locale/de/LC_MESSAGES/django.po
+++ b/www/locale/de/LC_MESSAGES/django.po
@@ -95,11 +95,6 @@ msgstr "Plan wird gerendert"
msgid "Rendering successful"
msgstr "Rendern erfolgreich"
-#: maposmatic/templatetags/extratags.py:47
-#, python-format
-msgid "Rendering failed, reason: <i>%(errmsg)s</i>"
-msgstr "Rendern aus folgendem Grund fehlgeschlagen : <i>%(errmsg)s</i>"
-
#: templates/404.html:3 templates/500.html:3 templates/maposmatic/base.html:51
#, fuzzy
msgid "Home"
diff --git a/www/locale/fr/LC_MESSAGES/django.po
b/www/locale/fr/LC_MESSAGES/django.po
index 0d3c22e..c0dac55 100644
--- a/www/locale/fr/LC_MESSAGES/django.po
+++ b/www/locale/fr/LC_MESSAGES/django.po
@@ -88,8 +88,14 @@ msgstr "Rendu terminé avec succès"
#: maposmatic/templatetags/extratags.py:47
#, python-format
-msgid "Rendering failed, reason: <i>%(errmsg)s</i>"
-msgstr "Rendu échoué, raison : <i>%(errmsg)s</i>"
+msgid ""
+"Rendering failed, please contact "
+"<a href=\"mailto:address@hidden">"
+"address@hidden</a>"
+msgstr ""
+ "Le rendu a échoué, merci de contacter "
+"<a href=\"mailto:address@hidden">"
+"address@hidden</a>"
#: templates/404.html:3
#: templates/500.html:3
diff --git a/www/maposmatic/templatetags/extratags.py
b/www/maposmatic/templatetags/extratags.py
index 5830a5f..1914145 100644
--- a/www/maposmatic/templatetags/extratags.py
+++ b/www/maposmatic/templatetags/extratags.py
@@ -41,11 +41,12 @@ def job_status_to_str(value, arg, autoescape=None):
elif value == 1:
result = _("Rendering in progress")
elif value == 2:
- if arg == "ok":
+ if arg == "okx":
result = _("Rendering successful")
else:
- result = _("Rendering failed, reason: <i>%(errmsg)s</i>") \
- % dict(errmsg=esc(arg))
+ result = _("Rendering failed, please contact " \
+ "<a href=\"mailto:address@hidden">" \
+ "address@hidden</a>")
else:
result = ""
--
1.6.5.7
- [Maposmatic-dev] [PATCH] Don't try to give the reason when the rendering fails. Just tell to ask address@hidden This fixes bug #27413.,
Gaël UTARD <=