From dbe887df5fdea564336ffc4f34a496f9468e9d69 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Thu, 27 Dec 2012 14:16:53 +0100 Subject: [PATCH] i18n and fr translation --- youmap/locale/fr/LC_MESSAGES/django.mo | Bin 0 -> 2308 bytes youmap/locale/fr/LC_MESSAGES/django.po | 121 ++++++++++++++++++ .../leaflet_storage/category_form.html | 4 +- .../leaflet_storage/feature_form.html | 4 +- .../templates/leaflet_storage/map_form.html | 6 +- .../templates/leaflet_storage/map_list.html | 4 +- .../map_update_tilelayers.html | 4 +- youmap/templates/youmap/home.html | 26 ++-- youmap/templates/youmap/navigation.html | 9 +- youmap/templates/youmap/search.html | 6 +- 10 files changed, 154 insertions(+), 30 deletions(-) create mode 100644 youmap/locale/fr/LC_MESSAGES/django.mo create mode 100644 youmap/locale/fr/LC_MESSAGES/django.po diff --git a/youmap/locale/fr/LC_MESSAGES/django.mo b/youmap/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..e6d8eb68700108fb1d4be3a4c957c7a946c0c343 GIT binary patch literal 2308 zcmaKsO>Y}T7{>=%-pqS>DMEmrfU2fy*0m!L!A(PxG%2a#I5cSs5(mb+ll8Rr%ywor zi9y`>00^l!E)}N;2`()cZuOy@-~)g_LgLm77Y=aY|LodHT2+j^{_X5MGxNOvcIe5<)?ZI+h2PZJU1U?Ra4!#P00TTEv_yYJd_&oS0_$c@f_%L|j zKzT<6d<641K>mJwIG+UhyvA_;0r(W=AA_uq1^M1<;FI8WkahkJJOus-J_G&&eh=OO zKY|Tk9~2_OoG+UKs^HUL3cd_(fv;?WflGYPBlnWQaSYdzp2CQe}N`c^q=55=vx{G=6rWbv&m9RA8-nht;tVnGlniS3 z7&3NiOw1SBwENZ+i`Laz<&q)Etkq}!7gi`HEs9mKLtNt*&T527iJOjY3viftDv z`eL_^;RDg^m-ejKz%NiUH%V2jDe2%CR+`PlMiZnq+N5;rnfp}_jl49hf zSK-u!^~GpvPmXokP%c_9u}zRg4Vr4}P+9HfPIeh{Hm7>HiT3y}|OBYm8=5V`1E_xJ$NpPM*o??wlxLlHGEM<*jZPV^uxhs;JV)MSe z4k|gy&FHWuoClBQlu0Mn@+@<@r<_>W=EQ*{N&zbY(Q>!~xj$5bYaVilhf&)|4{>I& zgIXO<_Nf@#ysOZia1h&~{k_>iwXs^M^fT&DhD-, 2012. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: 0.0.8\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2012-12-27 14:08+0100\n" +"PO-Revision-Date: 2012-12-27 11:09+0100\n" +"Last-Translator: YOHAN BONIFACE \n" +"Language-Team: FR \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1)\n" + +#: templates/leaflet_storage/category_form.html:26 +#: templates/leaflet_storage/feature_form.html:14 +#: templates/leaflet_storage/map_form.html:17 +msgid "Delete" +msgstr "Supprimer" + +#: templates/leaflet_storage/map_form.html:3 +msgid "Create your map now!" +msgstr "Créer une carte" + +#: templates/leaflet_storage/map_list.html:8 +msgid "Cured by" +msgstr "Maintenu par" + +#: templates/leaflet_storage/map_list.html:8 +msgid "See this map!" +msgstr "Voir cette carte!" + +#: templates/leaflet_storage/map_update_tilelayers.html:2 +msgid "Choose your tilelayer" +msgstr "Choisir un fond de carte" + +#: templates/youmap/home.html:39 +msgid "" +"u{Map} 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!" +msgstr "" +"u{Map} 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 vôtre, c'est open source!" + +#: templates/youmap/home.html:43 +msgid "What you can do?" +msgstr "Que pouvez-vous faire?" + +#: templates/youmap/home.html:45 +msgid "Choose the layers of your map" +msgstr "Choisir les fonds de carte" + +#: templates/youmap/home.html:46 +msgid "Add POIs: markers, lines, polygons..." +msgstr "Ajouter des POI: markes, lignes, polygones..." + +#: templates/youmap/home.html:47 +msgid "Manage POIs colours and icons" +msgstr "Choisir la couleur et les icônes" + +#: templates/youmap/home.html:48 +msgid "Batch import geostructured data (GEOJson...)" +msgstr "Import des données géographiques en masse (GeoJSON...)" + +#: templates/youmap/home.html:49 +msgid "Choose the licence for your data" +msgstr "Choisir la licence de vos données" + +#: templates/youmap/home.html:50 +msgid "Embed and share your map" +msgstr "Exporter et partager votre carte" + +#: templates/youmap/home.html:62 +msgid "Test it and create a map" +msgstr "Tester et créer une carte" + +#: templates/youmap/home.html:68 +msgid "Fork it" +msgstr "Forker" + +#: templates/youmap/home.html:73 +msgid "Users to play with" +msgstr "Utilisateurs pour tester" + +#: templates/youmap/home.html:87 +msgid "Browse maps" +msgstr "Voir des cartes" + +#: templates/youmap/navigation.html:11 +msgid "My maps" +msgstr "Mes cartes" + +#: templates/youmap/navigation.html:12 +msgid "Log out" +msgstr "Déconnexion" + +#: templates/youmap/navigation.html:14 +msgid "Log in" +msgstr "Connexion" + +#: templates/youmap/navigation.html:21 +msgid "Search maps" +msgstr "Chercher des cartes" + +#: templates/youmap/search.html:19 +#, python-format +msgid "Search for maps containing «%(q)s» " +msgstr "Chercher des cartes contenant «%(q)s»" + +#: templates/youmap/search.html:29 +msgid "Not map found." +msgstr "Aucune carte trouvée." diff --git a/youmap/templates/leaflet_storage/category_form.html b/youmap/templates/leaflet_storage/category_form.html index f0b3cf6d..b5eaf08b 100644 --- a/youmap/templates/leaflet_storage/category_form.html +++ b/youmap/templates/leaflet_storage/category_form.html @@ -1,4 +1,4 @@ -{% load youmap_tags %} +{% load youmap_tags i18n %}
{% csrf_token %} {% for error in form.errors %} @@ -23,6 +23,6 @@ {{ form.map }} {% if delete_url %} - Delete + {% trans "Delete" %} {% endif %}
\ No newline at end of file diff --git a/youmap/templates/leaflet_storage/feature_form.html b/youmap/templates/leaflet_storage/feature_form.html index a08a71a3..323cc567 100644 --- a/youmap/templates/leaflet_storage/feature_form.html +++ b/youmap/templates/leaflet_storage/feature_form.html @@ -1,4 +1,4 @@ -{% load youmap_tags %} +{% load youmap_tags i18n %}
{% csrf_token %} {{ form.no_field_errors }} @@ -11,6 +11,6 @@ {{ form.latlng }} {% if delete_url %} - Delete + {% trans "Delete" %} {% endif %}
diff --git a/youmap/templates/leaflet_storage/map_form.html b/youmap/templates/leaflet_storage/map_form.html index b44f425f..4bcff5c3 100644 --- a/youmap/templates/leaflet_storage/map_form.html +++ b/youmap/templates/leaflet_storage/map_form.html @@ -1,6 +1,6 @@ -{% load youmap_tags %} +{% load youmap_tags i18n %} {% if not map %} -

Create your map now!

+

{% trans "Create your map now!" %}

{% endif %}
{% for error in form.non_field_errors %} @@ -14,6 +14,6 @@ {{ form.center }} {% if delete_url and map and user == map.owner %} - Delete + {% trans "Delete" %} {% endif %}
\ No newline at end of file diff --git a/youmap/templates/leaflet_storage/map_list.html b/youmap/templates/leaflet_storage/map_list.html index 1d742f65..b20a9b7a 100644 --- a/youmap/templates/leaflet_storage/map_list.html +++ b/youmap/templates/leaflet_storage/map_list.html @@ -1,11 +1,11 @@ -{% load leaflet_storage_tags endless %} +{% load leaflet_storage_tags endless i18n %} {% paginate 5 maps %} {% for map_inst in maps %}
{% map_fragment map_inst %} -
{{ map_inst.name }} — «{{ map_inst.description }}» Cured by {{ map_inst.owner }}See this map!
+
{{ map_inst.name }} — «{{ map_inst.description }}» {% trans "Cured by" %} {{ map_inst.owner }}{% trans "See this map!" %}
{% endfor %} diff --git a/youmap/templates/leaflet_storage/map_update_tilelayers.html b/youmap/templates/leaflet_storage/map_update_tilelayers.html index 823380b5..a1a6c776 100644 --- a/youmap/templates/leaflet_storage/map_update_tilelayers.html +++ b/youmap/templates/leaflet_storage/map_update_tilelayers.html @@ -1,5 +1,5 @@ -{% load leaflet_storage_tags %} -

Choose your tilelayer

+{% load leaflet_storage_tags i18n %} +

{% trans "Choose your tilelayer" %}

{% csrf_token %}
    diff --git a/youmap/templates/youmap/home.html b/youmap/templates/youmap/home.html index 480102a4..e9147db6 100644 --- a/youmap/templates/youmap/home.html +++ b/youmap/templates/youmap/home.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% load leaflet_storage_tags compress %} +{% load leaflet_storage_tags compress i18n %} {% block extra_head %} {% compress css %} @@ -36,18 +36,18 @@

    u{Map} alpha


    -
    u{Map} 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! +
    {% blocktrans %}u{Map} 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 %}
    -
    What you can do?
    +
    {% trans "What you can do?" %}
      -
    1. Choose the layers of your map
    2. -
    3. Add POIs: markers, lines, polygons...
    4. -
    5. Manage POIs colours and icons
    6. -
    7. Batch import geostructured data (GEOJson...)
    8. -
    9. Choose your licence
    10. -
    11. Embed and share your map
    12. +
    13. {% trans "Choose the layers of your map" %}
    14. +
    15. {% trans "Add POIs: markers, lines, polygons..." %}
    16. +
    17. {% trans "Manage POIs colours and icons" %}
    18. +
    19. {% trans "Batch import geostructured data (GEOJson...)" %}
    20. +
    21. {% trans "Choose the licence for your data" %}
    22. +
    23. {% trans "Embed and share your map" %}
    @@ -59,18 +59,18 @@
    - Test it and create a map + {% trans "Test it and create a map" %}
    - Fork it + {% trans "Fork it" %}

    - Users to play with (password: 123123): {% for u in users %}{{ u }}{% if not forloop.last %}, {% endif %}{% endfor %} + {% trans "Users to play with" %} (password: 123123): {% for u in users %}{{ u }}{% if not forloop.last %}, {% endif %}{% endfor %}

    @@ -84,7 +84,7 @@

    -

    Browse maps

    +

    {% trans "Browse maps" %}

    diff --git a/youmap/templates/youmap/navigation.html b/youmap/templates/youmap/navigation.html index 9c1017a2..22062bcc 100644 --- a/youmap/templates/youmap/navigation.html +++ b/youmap/templates/youmap/navigation.html @@ -1,3 +1,4 @@ +{% load i18n %}