Add a message in the map creation box when anonymous

This commit is contained in:
Yohan Boniface 2013-04-29 18:12:33 -04:00
parent 0a3097dd9e
commit 514ec073ae
2 changed files with 19 additions and 2 deletions

View file

@ -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 <yb@enix.org>\n"
"Language-Team: FR <LL@li.org>\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"

View file

@ -13,6 +13,9 @@
{{ form.zoom }}
{{ form.center }}
<input type="submit" class="button" />
{% if not map and not user.is_authenticated %}
<small class="helptext">{% 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.' %}</small>
{% endif %}
{% if delete_url and map and user == map.owner %}
<a href="{{ delete_url }}" id="delete_map_button" >{% trans "Delete" %}</a>
{% endif %}