diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-18 11:23:04 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-04-18 11:23:04 +0200 |
commit | 57a43595d7ddb1e1581653eb8d2a71f3d2f192ab (patch) | |
tree | 1733633c379700d62fd223b9fe9bcab64af6fe1b | |
parent | cf015e8af131655e48d0728827f45218cafb8d33 (diff) | |
download | Chimère-57a43595d7ddb1e1581653eb8d2a71f3d2f192ab.tar.bz2 Chimère-57a43595d7ddb1e1581653eb8d2a71f3d2f192ab.zip |
Minor: more precise error message on shapefile import
-rw-r--r-- | chimere/locale/fr/LC_MESSAGES/django.po | 4 | ||||
-rw-r--r-- | chimere/utils.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chimere/locale/fr/LC_MESSAGES/django.po b/chimere/locale/fr/LC_MESSAGES/django.po index 9e61857..b2fc81c 100644 --- a/chimere/locale/fr/LC_MESSAGES/django.po +++ b/chimere/locale/fr/LC_MESSAGES/django.po @@ -811,9 +811,9 @@ msgid "SRID cannot be guessed. The default SRID (%s) has been used." msgstr "Le SRID n'a pu être trouvé. Le SRID par défaut (%s) a été utilisé." #: utils.py:364 -msgid "Type of geographic item of this shapefile is not managed by Chimère." +msgid "Type of geographic item (%s) of this shapefile is not managed by Chimère." msgstr "" -"Les types des éléments géographiques de ce fichier Shapefile ne sont pas " +"Les types des éléments géographiques (%s) de ce fichier Shapefile ne sont pas " "gérés par Chimère." #: utils.py:384 diff --git a/chimere/utils.py b/chimere/utils.py index a82d88b..722a960 100644 --- a/chimere/utils.py +++ b/chimere/utils.py @@ -363,8 +363,8 @@ class ShapefileManager(ImportManager): elif id_name: lbl_name = id_name if lyr.geom_type not in ('Point', 'LineString'): - return (0, 0, _(u"Type of geographic item of this shapefile " - u"is not managed by Chimère.")) + return (0, 0, _(u"Type of geographic item (%s) of this shapefile " + u"is not managed by Chimère.") % lyr.geom_type) geom_key = 'point' if lyr.geom_type == 'Point' else 'route' geom_cls = Marker if lyr.geom_type == 'Point' else Route indexes = [] |