diff --git a/umap/locale/fr/LC_MESSAGES/django.mo b/umap/locale/fr/LC_MESSAGES/django.mo index 451de9fc..39f74c58 100644 Binary files a/umap/locale/fr/LC_MESSAGES/django.mo and b/umap/locale/fr/LC_MESSAGES/django.mo differ diff --git a/umap/locale/fr/LC_MESSAGES/django.po b/umap/locale/fr/LC_MESSAGES/django.po index 9cb04579..a7fc062e 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-04-27 20:44-0400\n" +"POT-Creation-Date: 2013-05-01 18:49-0400\n" "PO-Revision-Date: 2012-12-27 11:09+0100\n" "Last-Translator: YOHAN BONIFACE \n" "Language-Team: FR \n" @@ -41,11 +41,11 @@ msgid "" "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 authentifié. 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." +"Vous créez une carte sans être authentifié. 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" @@ -111,50 +111,61 @@ msgstr "uMap, c'est quoi" #, python-format msgid "" "uMap let you create maps with OpenStreetMap " -"layers in a minute and embed them in your site.
This is a demo " -"instance, you can host your own, it's open source!" +"layers in a minute and embed them in your site." msgstr "" "uMap permet de créer des cartes personnalisées sur des fonds OpenStreetMap en un instant et les afficher dans votre " -"site
Ceci est une instance de démonstration, vous pouvez héberger la " +"site." + +#: templates/umap/about_summary.html:7 +#, python-format +msgid "" +"This is a demo instance, you can host your own, it's open source!" +msgstr "" +"Ceci est une instance de démonstration, vous pouvez héberger la " "vôtre, c'est open source" #: templates/umap/about_summary.html:9 +#, python-format +msgid "And it's open source!" +msgstr "Et c'est open source!" + +#: templates/umap/about_summary.html:14 msgid "What can you do?" msgstr "Que pouvez-vous faire?" -#: templates/umap/about_summary.html:11 +#: templates/umap/about_summary.html:16 msgid "Choose the layers of your map" msgstr "Choisir les fonds de carte" -#: templates/umap/about_summary.html:12 +#: templates/umap/about_summary.html:17 msgid "Add POIs: markers, lines, polygons..." msgstr "Ajouter des POI: marqueurs, lignes, polygones..." -#: templates/umap/about_summary.html:13 +#: templates/umap/about_summary.html:18 msgid "Manage POIs colours and icons" msgstr "Choisir la couleur et les icônes" -#: templates/umap/about_summary.html:14 +#: templates/umap/about_summary.html:19 msgid "Manage map options: display a minimap, locate user on load…" msgstr "" "Gérer les options de la carte: afficher une minicarte, géolocaliser " "l'utilisateur..." -#: templates/umap/about_summary.html:15 +#: templates/umap/about_summary.html:20 msgid "Batch import geostructured data (GEOJson...)" msgstr "Import des données géographiques en masse (GeoJSON...)" -#: templates/umap/about_summary.html:16 +#: templates/umap/about_summary.html:21 msgid "Choose the licence for your data" msgstr "Choisir la licence de vos données" -#: templates/umap/about_summary.html:17 +#: templates/umap/about_summary.html:22 msgid "Embed and share your map" msgstr "Exporter et partager votre carte" -#: templates/umap/about_summary.html:23 +#: templates/umap/about_summary.html:28 msgid "Play with the demo" msgstr "Tester la démo" diff --git a/umap/settings/base.py b/umap/settings/base.py index c413e932..5c85470b 100644 --- a/umap/settings/base.py +++ b/umap/settings/base.py @@ -136,6 +136,7 @@ AUTHENTICATION_BACKENDS += ( #============================================================================== LEAFLET_STORAGE_ALLOW_ANONYMOUS = False SITE_URL = "http://umap.org" +UMAP_DEMO_SITE = False #============================================================================== # Third party app settings diff --git a/umap/templates/umap/about_summary.html b/umap/templates/umap/about_summary.html index 8c794d42..2c683131 100644 --- a/umap/templates/umap/about_summary.html +++ b/umap/templates/umap/about_summary.html @@ -2,7 +2,12 @@
{% trans "What is uMap" %}
-

{% blocktrans with osm_url="http://osm.org" repo_url="https://bitbucket.org/yohanboniface/umap" %}uMap let you create maps with OpenStreetMap layers in a minute and embed them in your site.
This is a demo instance, you can host your own, it's open source!{% endblocktrans %} +

{% blocktrans with osm_url="http://osm.org" %}uMap let you create maps with OpenStreetMap layers in a minute and embed them in your site.{% endblocktrans %} + {% if DEMO_SITE %} +
{% blocktrans with repo_url="https://bitbucket.org/yohanboniface/umap" %}This is a demo instance, you can host your own, it's open source!{% endblocktrans %} + {% else %} +
{% blocktrans with repo_url="https://bitbucket.org/yohanboniface/umap" %}And it's open source!{% endblocktrans %} + {% endif %}

diff --git a/umap/views.py b/umap/views.py index 50e40f3c..4f0c79b9 100644 --- a/umap/views.py +++ b/umap/views.py @@ -48,7 +48,8 @@ class Home(TemplateView, PaginatorMixin): return { "maps": maps, - "demo_map": demo_map + "demo_map": demo_map, + "DEMO_SITE": settings.UMAP_DEMO_SITE } def get_template_names(self):