From 514ec073ae7fcdcd2efbc189e349963baef24fe4 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 29 Apr 2013 18:12:33 -0400 Subject: [PATCH] Add a message in the map creation box when anonymous --- umap/locale/fr/LC_MESSAGES/django.po | 18 ++++++++++++++++-- umap/templates/leaflet_storage/map_form.html | 3 +++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/umap/locale/fr/LC_MESSAGES/django.po b/umap/locale/fr/LC_MESSAGES/django.po index c782be25..717ab97d 100644 --- a/umap/locale/fr/LC_MESSAGES/django.po +++ b/umap/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.0.8\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-02-12 18:43+0100\n" +"POT-Creation-Date: 2013-04-27 20:44-0400\n" "PO-Revision-Date: 2012-12-27 11:09+0100\n" "Last-Translator: YOHAN BONIFACE \n" "Language-Team: FR \n" @@ -25,7 +25,7 @@ msgstr "Consulter les cartes de %(current_user)s" #: templates/leaflet_storage/category_form.html:18 #: templates/leaflet_storage/feature_form.html:12 -#: templates/leaflet_storage/map_form.html:17 +#: templates/leaflet_storage/map_form.html:20 msgid "Delete" msgstr "Supprimer" @@ -33,6 +33,20 @@ msgstr "Supprimer" msgid "Create your map now!" msgstr "Créer une carte" +#: templates/leaflet_storage/map_form.html:17 +msgid "" +"You are creating a map without being authenticated. A cookie will be set on " +"this browser to make possible for you to edit the map in the future. If you " +"want to edit the map from another computer, use the \"edit url\" displayed " +"in the \"permissions\" window. If you log in and load the map, it will be " +"attached to your account." +msgstr "" +"Vous créez une carte sans être authentifier. Un cookie sera enregistré sur " +"ce navigateur, vous permettant d'éditer la map plus tard. Si vous voulez éditer " +"la carte depuis un autre ordinateur, utilisez l'url d'édition, visible dans la " +"fenêtre de gestion des permissions. Si vous vous identifiez par la suite et chargez " +"la carte, celle-ci sera automatiquement associée à votre compte." + #: templates/leaflet_storage/map_list.html:6 msgid "Cured by" msgstr "Maintenu par" diff --git a/umap/templates/leaflet_storage/map_form.html b/umap/templates/leaflet_storage/map_form.html index 3500d17b..0dd78731 100644 --- a/umap/templates/leaflet_storage/map_form.html +++ b/umap/templates/leaflet_storage/map_form.html @@ -13,6 +13,9 @@ {{ form.zoom }} {{ form.center }} + {% if not map and not user.is_authenticated %} + {% trans 'You are creating a map without being authenticated. A cookie will be set on this browser to make possible for you to edit the map in the future. If you want to edit the map from another computer, use the "edit url" displayed in the "permissions" window. If you log in and load the map, it will be attached to your account.' %} + {% endif %} {% if delete_url and map and user == map.owner %} {% trans "Delete" %} {% endif %}