From 0e572128737cfc0214ccdf111650f178d3ae1359 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 4 Oct 2012 22:52:24 +0200 Subject: Import: add error messages --- chimere/locale/fr/LC_MESSAGES/django.po | 249 ++++++++++++++++++-------------- 1 file changed, 138 insertions(+), 111 deletions(-) (limited to 'chimere/locale') diff --git a/chimere/locale/fr/LC_MESSAGES/django.po b/chimere/locale/fr/LC_MESSAGES/django.po index b54a53b..ddb0302 100644 --- a/chimere/locale/fr/LC_MESSAGES/django.po +++ b/chimere/locale/fr/LC_MESSAGES/django.po @@ -7,18 +7,18 @@ msgid "" msgstr "" "Project-Id-Version: 0.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-01 16:32+0200\n" +"POT-Creation-Date: 2012-10-04 22:49+0200\n" "PO-Revision-Date: 2010-03-20 20:00+0100\n" "Last-Translator: Étienne Loks \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: __init__.py:8 models.py:574 +#: __init__.py:8 models.py:576 msgid "Multimedia files" msgstr "Fichiers multimedias" -#: __init__.py:9 models.py:631 +#: __init__.py:9 models.py:633 msgid "Picture files" msgstr "Fichiers d'image" @@ -111,39 +111,54 @@ msgstr "Courriel (optionnel) " msgid "Object" msgstr "Objet" -#: forms.py:163 +#: forms.py:115 +msgid "Shapefiles must be provided in a zipped archive." +msgstr "" +"Les fichiers Shapefiles doivent être fournis regroupés dans une archive zip." + +#: forms.py:119 +msgid "You have to set \"source\" or \"source file\" but not both." +msgstr "" +"Vous devez spécifier le champ « Source » ou « Fichier source » mais pas les " +"deux." + +#: forms.py:123 +msgid "You have to set \"source\" or \"source file\"." +msgstr "Vous devez spécifier le champ « Source » ou « Fichier source »." + +#: forms.py:182 msgid "End date has been set with no start date" msgstr "Une date de fin a été donnée sans date de début" -#: forms.py:174 +#: forms.py:193 msgid "This field is mandatory for the selected categories" msgstr "Ce champ est obligatoire pour les catégories sélectionnées" -#: forms.py:379 +#: forms.py:398 msgid "File" msgstr "Fichier" -#: forms.py:385 +#: forms.py:404 msgid "Bad file format: this must be a GPX or KML file" msgstr "Mauvais format de fichier : KML et GPX sont supportés" -#: forms.py:390 models.py:49 models.py:102 models.py:123 models.py:136 -#: models.py:150 models.py:246 models.py:521 models.py:564 models.py:608 -#: models.py:725 models.py:1018 models.py:1030 models.py:1115 utils.py:444 +#: forms.py:409 models.py:49 models.py:102 models.py:123 models.py:136 +#: models.py:150 models.py:248 models.py:523 models.py:566 models.py:610 +#: models.py:727 models.py:1021 models.py:1033 models.py:1118 utils.py:444 #: templates/chimere/edit.html:39 templates/chimere/edit_route.html:36 msgid "Name" msgstr "Nom" -#: forms.py:399 models.py:1067 +#: forms.py:418 models.py:1070 msgid "Area" msgstr "Zone" -#: models.py:50 models.py:124 models.py:151 models.py:257 models.py:525 -#: models.py:1036 models.py:1117 +#: models.py:50 models.py:124 models.py:151 models.py:259 models.py:527 +#: models.py:1039 models.py:1120 msgid "Available" msgstr "Disponible" -#: models.py:51 models.py:1126 +#: models.py:51 models.py:1129 msgid "Date" msgstr "Date" @@ -167,8 +182,8 @@ msgstr "Thème de couleur" msgid "Code" msgstr "Code" -#: models.py:112 models.py:125 models.py:157 models.py:566 models.py:623 -#: models.py:1035 models.py:1104 models.py:1116 +#: models.py:112 models.py:125 models.py:157 models.py:568 models.py:625 +#: models.py:1038 models.py:1107 models.py:1119 msgid "Order" msgstr "Ordre" @@ -180,15 +195,15 @@ msgstr "Couleur" msgid "Category" msgstr "Catégorie" -#: models.py:137 models.py:517 models.py:609 models.py:790 +#: models.py:137 models.py:519 models.py:611 models.py:793 msgid "Image" msgstr "Image" -#: models.py:139 models.py:611 models.py:792 +#: models.py:139 models.py:613 models.py:795 msgid "Height" msgstr "Hauteur" -#: models.py:140 models.py:612 models.py:793 +#: models.py:140 models.py:614 models.py:796 msgid "Width" msgstr "Largeur" @@ -204,7 +219,7 @@ msgstr "Disponible pour soumission" msgid "Marker" msgstr "Point d'intérêt" -#: models.py:159 models.py:786 models.py:801 +#: models.py:159 models.py:789 models.py:804 #: templates/chimere/edit_route.html:27 msgid "Route" msgstr "Trajet" @@ -229,7 +244,7 @@ msgstr "Sous-catégories" msgid "Importer type" msgstr "Type d'import" -#: models.py:222 models.py:268 +#: models.py:222 models.py:270 msgid "Source" msgstr "Source" @@ -257,243 +272,247 @@ msgstr "SRID" msgid "Zipped file" msgstr "Fichier zippé" -#: models.py:236 +#: models.py:234 +msgid "Source file" +msgstr "Fichier source" + +#: models.py:238 msgid "Importer" msgstr "Import" -#: models.py:248 +#: models.py:250 msgid "Submitter session key" msgstr "Clé de session du demandeur" -#: models.py:250 +#: models.py:252 msgid "Submitter name or nickname" msgstr "Nom ou pseudo du demandeur" -#: models.py:252 +#: models.py:254 msgid "Submitter email" msgstr "Courriel du demandeur" -#: models.py:254 +#: models.py:256 msgid "Submitter comment" msgstr "Commentaire du demandeur" -#: models.py:256 +#: models.py:258 msgid "Submited" msgstr "Soumis" -#: models.py:258 +#: models.py:260 msgid "Modified" msgstr "Modifié" -#: models.py:259 +#: models.py:261 msgid "Disabled" msgstr "Désactivé" -#: models.py:260 +#: models.py:262 msgid "Imported" msgstr "Importé" -#: models.py:261 +#: models.py:263 msgid "Excluded" msgstr "Exclu" -#: models.py:263 +#: models.py:265 msgid "Status" msgstr "État" -#: models.py:264 +#: models.py:266 msgid "Import key" msgstr "Clé d'import" -#: models.py:266 +#: models.py:268 msgid "Import version" msgstr "Version de l'import" -#: models.py:270 +#: models.py:272 msgid "Modified since last import" msgstr "Modifié depuis le dernier import" -#: models.py:272 +#: models.py:274 msgid "Not to be imported inside OSM" msgstr "À ne pas importer dans OSM" -#: models.py:275 templates/chimere/edit.html:56 +#: models.py:277 templates/chimere/edit.html:56 #: templates/chimere/edit_route.html:52 msgid "Start date" msgstr "Date de début" -#: models.py:276 +#: models.py:278 msgid "Not mandatory. Set it for dated item such as event. Format YYYY-MM-DD" msgstr "" "Optionnel. Précisez ce champ pour les éléments datés comme un événement. " "Format du champ : AAAA-MM-JJ" -#: models.py:278 templates/chimere/edit.html:62 +#: models.py:280 templates/chimere/edit.html:62 #: templates/chimere/edit_route.html:58 msgid "End date" msgstr "Date de fin" -#: models.py:279 +#: models.py:281 msgid "" "Not mandatory. Set it only if you have a multi-day event. Format YYYY-MM-DD" msgstr "" "Optionnel. Précisez ce champ seulement pour des événements durant plusieurs " "jours. Format du champ : AAAA-MM-JJ" -#: models.py:315 +#: models.py:317 msgid "Reference marker" msgstr "Point d'intérêt de référence" -#: models.py:316 utils.py:449 utils.py:450 +#: models.py:318 utils.py:449 utils.py:450 msgid "Localisation" msgstr "Localisation" -#: models.py:318 +#: models.py:320 msgid "Available Date" msgstr "Date de mise en disponibilité" -#: models.py:322 utils.py:448 templates/chimere/edit.html:49 +#: models.py:324 utils.py:448 templates/chimere/edit.html:49 #: templates/chimere/edit_route.html:46 msgid "Description" msgstr "Description" -#: models.py:377 models.py:1151 +#: models.py:379 models.py:1154 msgid "Point of interest" msgstr "Point d'intérêt" -#: models.py:515 +#: models.py:517 msgid "Audio" msgstr "Audio" -#: models.py:516 +#: models.py:518 msgid "Video" msgstr "Vidéo" -#: models.py:518 +#: models.py:520 msgid "Other" msgstr "Autre" -#: models.py:519 +#: models.py:521 msgid "Media type" msgstr "Type de media" -#: models.py:522 +#: models.py:524 msgid "Mime type" msgstr "Type mime" -#: models.py:524 +#: models.py:526 msgid "Inside an iframe" msgstr "À l'intérieur d'un iframe" -#: models.py:528 +#: models.py:530 msgid "Multimedia type" msgstr "Type de multimedia" -#: models.py:529 +#: models.py:531 msgid "Multimedia types" msgstr "Types de multimedia" -#: models.py:565 +#: models.py:567 msgid "Url" msgstr "Url" -#: models.py:568 models.py:613 +#: models.py:570 models.py:615 msgid "Display inside the description?" msgstr "Apparaît dans la description ?" -#: models.py:573 +#: models.py:575 msgid "Multimedia file" msgstr "Fichier multimedia" -#: models.py:615 +#: models.py:617 msgid "Thumbnail" msgstr "Miniature" -#: models.py:619 +#: models.py:621 msgid "Thumbnail height" msgstr "Hauteur de la miniature" -#: models.py:621 +#: models.py:623 msgid "Thumbnail width" msgstr "Largeur de la miniature" -#: models.py:630 +#: models.py:632 msgid "Picture file" msgstr "Fichier d'image" -#: models.py:726 +#: models.py:728 msgid "Raw file (gpx or kml)" msgstr "Fichier brut (gpx ou kml)" -#: models.py:727 +#: models.py:730 msgid "Simplified file" msgstr "Fichier simplifié" -#: models.py:729 +#: models.py:732 msgid "KML" msgstr "KML" -#: models.py:729 +#: models.py:732 msgid "GPX" msgstr "GPX" -#: models.py:734 +#: models.py:737 msgid "Route file" msgstr "Fichier de trajet" -#: models.py:735 +#: models.py:738 msgid "Route files" msgstr "Fichiers de trajet" -#: models.py:785 +#: models.py:788 msgid "Reference route" msgstr "Trajet de référence" -#: models.py:789 +#: models.py:792 msgid "Associated file" msgstr "Fichier associé" -#: models.py:1019 +#: models.py:1022 msgid "Layer code" msgstr "Code pour la couche" -#: models.py:1025 +#: models.py:1028 msgid "Layer" msgstr "Couche" -#: models.py:1031 +#: models.py:1034 msgid "Area urn" msgstr "Urn de la zone" -#: models.py:1033 templates/chimere/blocks/welcome.html:3 +#: models.py:1036 templates/chimere/blocks/welcome.html:3 msgid "Welcome message" msgstr "Message d'accueil" -#: models.py:1037 +#: models.py:1040 msgid "Upper left corner" msgstr "Coin en haut à gauche" -#: models.py:1039 +#: models.py:1042 msgid "Lower right corner" msgstr "Coin en bas à droite" -#: models.py:1041 +#: models.py:1044 msgid "Default area" msgstr "Zone par défaut" -#: models.py:1042 +#: models.py:1045 msgid "Only one area is set by default" msgstr "Seule une zone est définie par défaut" -#: models.py:1046 +#: models.py:1049 msgid "Sub-categories checked by default" msgstr "Sous-catégories cochées par défaut" -#: models.py:1048 +#: models.py:1051 msgid "Sub-categories dynamicaly displayed" msgstr "Sous-categories affichées dynamiquement" -#: models.py:1049 +#: models.py:1052 msgid "" "If checked, categories are only displayed in the menu if they are available " "on the current extent." @@ -501,68 +520,68 @@ msgstr "" "Si coché, les catégories sont disponibles sur le menu seulement si elles " "apparaissent sur la zone affichée." -#: models.py:1053 models.py:1120 +#: models.py:1056 models.py:1123 msgid "Restricted to theses sub-categories" msgstr "Restreindre à ces sous-categories" -#: models.py:1054 +#: models.py:1057 msgid "If no sub-category is set all sub-categories are available" msgstr "" "Si aucune sous-catégorie n'est définie toutes les sous-catégories sont " "disponibles" -#: models.py:1056 +#: models.py:1059 msgid "Link to an external CSS" msgstr "Lien vers une feuille de style externe" -#: models.py:1058 +#: models.py:1061 msgid "Restrict to the area extent" msgstr "Restreindre à l'étendue de la zone" -#: models.py:1105 +#: models.py:1108 msgid "Default layer" msgstr "Couche par défaut" -#: models.py:1109 models.py:1110 +#: models.py:1112 models.py:1113 msgid "Layers" msgstr "Couches" -#: models.py:1118 +#: models.py:1121 msgid "Mandatory" msgstr "Obligatoire" -#: models.py:1121 +#: models.py:1124 msgid "" "If no sub-category is set all the property applies to all sub-categories" msgstr "" "Si aucune sous-catégorie n'est précisée, cette propriété est disponible pour " "toutes les sous-catégories" -#: models.py:1123 +#: models.py:1126 msgid "Text" msgstr "Texte" -#: models.py:1124 +#: models.py:1127 msgid "Long text" msgstr "Texte long" -#: models.py:1125 +#: models.py:1128 msgid "Password" msgstr "Mot de passe" -#: models.py:1131 +#: models.py:1134 msgid "Type" msgstr "Type" -#: models.py:1136 models.py:1153 +#: models.py:1139 models.py:1156 msgid "Property model" msgstr "Modèle de propriété" -#: models.py:1154 +#: models.py:1157 msgid "Value" msgstr "Valeur" -#: models.py:1158 +#: models.py:1161 msgid "Property" msgstr "Propriété" @@ -616,24 +635,32 @@ msgstr "Export échoué" msgid "Export canceled" msgstr "Export annulé" -#: utils.py:118 utils.py:166 +#: utils.py:118 utils.py:167 msgid "Bad zip file" msgstr "Mauvais fichier zip" -#: utils.py:169 +#: utils.py:170 msgid "Missing file(s) inside the zip file" msgstr "Fichier(s) manquant(s) dans l'archive zip" -#: utils.py:301 +#: utils.py:211 +msgid "Bad XML file" +msgstr "Mauvais fichier XML" + +#: utils.py:298 msgid "Error while reading the data source." msgstr "Erreur lors de la lecture de la source." -#: utils.py:336 +#: utils.py:333 msgid "Type of geographic item of this shapefile is not managed by Chimère." msgstr "" "Les types des éléments géographiques de ce fichier Shapefile ne sont pas " "gérés par Chimère." +#: utils.py:353 +msgid "Bad Shapefile" +msgstr "Mauvais fichier Shapefile" + #: utils.py:393 msgid "Could not create file!" msgstr "Ne peut pas créer le fichier !" @@ -647,15 +674,15 @@ msgstr "Ne peut pas créer un champ" msgid "Categories" msgstr "Catégories" -#: utils.py:509 +#: utils.py:506 msgid "Nothing to import" msgstr "Rien à importer" -#: utils.py:589 +#: utils.py:586 msgid "New items imported - validate them before exporting" msgstr "Nouveaux éléments importés - valider ceux-ci avant d'exporter" -#: utils.py:591 +#: utils.py:588 msgid "" "There are items from a former import not yet validated - validate them " "before exporting" @@ -663,15 +690,15 @@ msgstr "" "Il y a des éléments d'un import précédent pas encore validé - Validez les " "avant d'exporter" -#: utils.py:601 +#: utils.py:598 msgid "Bad param" msgstr "Mauvais paramètre" -#: utils.py:616 +#: utils.py:613 msgid "No non ambigious tag is defined in the XAPI request" msgstr "Pas de tag non ambigü définis dans la requête XAPI" -#: utils.py:618 +#: utils.py:615 msgid "" "No bounding box is defined in the XAPI request.If you are sure to manage the " "entire planet set the bounding box to -180,-90,180,90" @@ -680,19 +707,19 @@ msgstr "" "vouloir lancer la requête sur la planète entière fixez la « bounding box » " "à -180,-90,180,90" -#: views.py:234 +#: views.py:235 msgid "There are missing field(s) and/or errors in the submited form." msgstr "Il y a des champs manquants ou des erreurs dans ce formulaire." -#: views.py:316 +#: views.py:317 msgid "Bad file. Please check it with an external software." msgstr "Fichier incohérent. Merci de le vérifier avec un logiciel externe." -#: views.py:438 +#: views.py:439 msgid "Comments/request on the map" msgstr "Commentaires/requètes sur la carte" -#: views.py:441 +#: views.py:442 msgid "" "Thank you for your contribution. It will be taken into account. If you have " "left your email you may be contacted soon for more details." @@ -701,15 +728,15 @@ msgstr "" "laissé votre courriel vous serez peut-être contacté bientôt pour plus de " "détails." -#: views.py:445 +#: views.py:446 msgid "Temporary error. Renew your message later." msgstr "Erreur temporaire. Réenvoyez votre message plus tard." -#: views.py:577 +#: views.py:578 msgid "No category available in this area." msgstr "Pas de catégorie disponible sur cette zone." -#: views.py:684 +#: views.py:686 msgid "Incorrect choice in the list" msgstr "Choix incorrect dans la liste" -- cgit v1.2.3 From 0a5610ea01406c53e762d64b766dd7bbd792cd4c Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 4 Oct 2012 23:36:24 +0200 Subject: Update of french translation --- chimere/locale/fr/LC_MESSAGES/django.po | 224 +++++++++++++++++--------------- 1 file changed, 120 insertions(+), 104 deletions(-) (limited to 'chimere/locale') diff --git a/chimere/locale/fr/LC_MESSAGES/django.po b/chimere/locale/fr/LC_MESSAGES/django.po index ddb0302..a59717f 100644 --- a/chimere/locale/fr/LC_MESSAGES/django.po +++ b/chimere/locale/fr/LC_MESSAGES/django.po @@ -7,18 +7,18 @@ msgid "" msgstr "" "Project-Id-Version: 0.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-04 22:49+0200\n" +"POT-Creation-Date: 2012-10-04 23:35+0200\n" "PO-Revision-Date: 2010-03-20 20:00+0100\n" "Last-Translator: Étienne Loks \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: __init__.py:8 models.py:576 +#: __init__.py:8 models.py:584 msgid "Multimedia files" msgstr "Fichiers multimedias" -#: __init__.py:9 models.py:633 +#: __init__.py:9 models.py:641 msgid "Picture files" msgstr "Fichiers d'image" @@ -143,22 +143,22 @@ msgid "Bad file format: this must be a GPX or KML file" msgstr "Mauvais format de fichier : KML et GPX sont supportés" #: forms.py:409 models.py:49 models.py:102 models.py:123 models.py:136 -#: models.py:150 models.py:248 models.py:523 models.py:566 models.py:610 -#: models.py:727 models.py:1021 models.py:1033 models.py:1118 utils.py:444 +#: models.py:150 models.py:252 models.py:531 models.py:574 models.py:618 +#: models.py:735 models.py:1029 models.py:1041 models.py:1126 utils.py:448 #: templates/chimere/edit.html:39 templates/chimere/edit_route.html:36 msgid "Name" msgstr "Nom" -#: forms.py:418 models.py:1070 +#: forms.py:418 models.py:1078 msgid "Area" msgstr "Zone" -#: models.py:50 models.py:124 models.py:151 models.py:259 models.py:527 -#: models.py:1039 models.py:1120 +#: models.py:50 models.py:124 models.py:151 models.py:263 models.py:535 +#: models.py:1047 models.py:1128 msgid "Available" msgstr "Disponible" -#: models.py:51 models.py:1129 +#: models.py:51 models.py:1137 msgid "Date" msgstr "Date" @@ -182,8 +182,8 @@ msgstr "Thème de couleur" msgid "Code" msgstr "Code" -#: models.py:112 models.py:125 models.py:157 models.py:568 models.py:625 -#: models.py:1038 models.py:1107 models.py:1119 +#: models.py:112 models.py:125 models.py:157 models.py:576 models.py:633 +#: models.py:1046 models.py:1115 models.py:1127 msgid "Order" msgstr "Ordre" @@ -195,15 +195,15 @@ msgstr "Couleur" msgid "Category" msgstr "Catégorie" -#: models.py:137 models.py:519 models.py:611 models.py:793 +#: models.py:137 models.py:527 models.py:619 models.py:801 msgid "Image" msgstr "Image" -#: models.py:139 models.py:613 models.py:795 +#: models.py:139 models.py:621 models.py:803 msgid "Height" msgstr "Hauteur" -#: models.py:140 models.py:614 models.py:796 +#: models.py:140 models.py:622 models.py:804 msgid "Width" msgstr "Largeur" @@ -219,7 +219,7 @@ msgstr "Disponible pour soumission" msgid "Marker" msgstr "Point d'intérêt" -#: models.py:159 models.py:789 models.py:804 +#: models.py:159 models.py:797 models.py:812 #: templates/chimere/edit_route.html:27 msgid "Route" msgstr "Trajet" @@ -244,7 +244,7 @@ msgstr "Sous-catégories" msgid "Importer type" msgstr "Type d'import" -#: models.py:222 models.py:270 +#: models.py:222 models.py:274 msgid "Source" msgstr "Source" @@ -260,7 +260,7 @@ msgstr "Nom par défaut" msgid "Associated subcategories" msgstr "Sous-catégories associées" -#: models.py:230 utils.py:447 +#: models.py:230 utils.py:451 msgid "State" msgstr "État" @@ -276,243 +276,251 @@ msgstr "Fichier zippé" msgid "Source file" msgstr "Fichier source" -#: models.py:238 +#: models.py:236 models.py:280 +msgid "Origin" +msgstr "Origine" + +#: models.py:238 models.py:282 +msgid "License" +msgstr "Licence" + +#: models.py:242 msgid "Importer" msgstr "Import" -#: models.py:250 +#: models.py:254 msgid "Submitter session key" msgstr "Clé de session du demandeur" -#: models.py:252 +#: models.py:256 msgid "Submitter name or nickname" msgstr "Nom ou pseudo du demandeur" -#: models.py:254 +#: models.py:258 msgid "Submitter email" msgstr "Courriel du demandeur" -#: models.py:256 +#: models.py:260 msgid "Submitter comment" msgstr "Commentaire du demandeur" -#: models.py:258 +#: models.py:262 msgid "Submited" msgstr "Soumis" -#: models.py:260 +#: models.py:264 msgid "Modified" msgstr "Modifié" -#: models.py:261 +#: models.py:265 msgid "Disabled" msgstr "Désactivé" -#: models.py:262 +#: models.py:266 msgid "Imported" msgstr "Importé" -#: models.py:263 +#: models.py:267 msgid "Excluded" msgstr "Exclu" -#: models.py:265 +#: models.py:269 msgid "Status" msgstr "État" -#: models.py:266 +#: models.py:270 msgid "Import key" msgstr "Clé d'import" -#: models.py:268 +#: models.py:272 msgid "Import version" msgstr "Version de l'import" -#: models.py:272 +#: models.py:276 msgid "Modified since last import" msgstr "Modifié depuis le dernier import" -#: models.py:274 +#: models.py:278 msgid "Not to be imported inside OSM" msgstr "À ne pas importer dans OSM" -#: models.py:277 templates/chimere/edit.html:56 +#: models.py:285 templates/chimere/edit.html:56 #: templates/chimere/edit_route.html:52 msgid "Start date" msgstr "Date de début" -#: models.py:278 +#: models.py:286 msgid "Not mandatory. Set it for dated item such as event. Format YYYY-MM-DD" msgstr "" "Optionnel. Précisez ce champ pour les éléments datés comme un événement. " "Format du champ : AAAA-MM-JJ" -#: models.py:280 templates/chimere/edit.html:62 +#: models.py:288 templates/chimere/edit.html:62 #: templates/chimere/edit_route.html:58 msgid "End date" msgstr "Date de fin" -#: models.py:281 +#: models.py:289 msgid "" "Not mandatory. Set it only if you have a multi-day event. Format YYYY-MM-DD" msgstr "" "Optionnel. Précisez ce champ seulement pour des événements durant plusieurs " "jours. Format du champ : AAAA-MM-JJ" -#: models.py:317 +#: models.py:325 msgid "Reference marker" msgstr "Point d'intérêt de référence" -#: models.py:318 utils.py:449 utils.py:450 +#: models.py:326 utils.py:453 utils.py:454 msgid "Localisation" msgstr "Localisation" -#: models.py:320 +#: models.py:328 msgid "Available Date" msgstr "Date de mise en disponibilité" -#: models.py:324 utils.py:448 templates/chimere/edit.html:49 +#: models.py:332 utils.py:452 templates/chimere/edit.html:49 #: templates/chimere/edit_route.html:46 msgid "Description" msgstr "Description" -#: models.py:379 models.py:1154 +#: models.py:387 models.py:1162 msgid "Point of interest" msgstr "Point d'intérêt" -#: models.py:517 +#: models.py:525 msgid "Audio" msgstr "Audio" -#: models.py:518 +#: models.py:526 msgid "Video" msgstr "Vidéo" -#: models.py:520 +#: models.py:528 msgid "Other" msgstr "Autre" -#: models.py:521 +#: models.py:529 msgid "Media type" msgstr "Type de media" -#: models.py:524 +#: models.py:532 msgid "Mime type" msgstr "Type mime" -#: models.py:526 +#: models.py:534 msgid "Inside an iframe" msgstr "À l'intérieur d'un iframe" -#: models.py:530 +#: models.py:538 msgid "Multimedia type" msgstr "Type de multimedia" -#: models.py:531 +#: models.py:539 msgid "Multimedia types" msgstr "Types de multimedia" -#: models.py:567 +#: models.py:575 msgid "Url" msgstr "Url" -#: models.py:570 models.py:615 +#: models.py:578 models.py:623 msgid "Display inside the description?" msgstr "Apparaît dans la description ?" -#: models.py:575 +#: models.py:583 msgid "Multimedia file" msgstr "Fichier multimedia" -#: models.py:617 +#: models.py:625 msgid "Thumbnail" msgstr "Miniature" -#: models.py:621 +#: models.py:629 msgid "Thumbnail height" msgstr "Hauteur de la miniature" -#: models.py:623 +#: models.py:631 msgid "Thumbnail width" msgstr "Largeur de la miniature" -#: models.py:632 +#: models.py:640 msgid "Picture file" msgstr "Fichier d'image" -#: models.py:728 +#: models.py:736 msgid "Raw file (gpx or kml)" msgstr "Fichier brut (gpx ou kml)" -#: models.py:730 +#: models.py:738 msgid "Simplified file" msgstr "Fichier simplifié" -#: models.py:732 +#: models.py:740 msgid "KML" msgstr "KML" -#: models.py:732 +#: models.py:740 msgid "GPX" msgstr "GPX" -#: models.py:737 +#: models.py:745 msgid "Route file" msgstr "Fichier de trajet" -#: models.py:738 +#: models.py:746 msgid "Route files" msgstr "Fichiers de trajet" -#: models.py:788 +#: models.py:796 msgid "Reference route" msgstr "Trajet de référence" -#: models.py:792 +#: models.py:800 msgid "Associated file" msgstr "Fichier associé" -#: models.py:1022 +#: models.py:1030 msgid "Layer code" msgstr "Code pour la couche" -#: models.py:1028 +#: models.py:1036 msgid "Layer" msgstr "Couche" -#: models.py:1034 +#: models.py:1042 msgid "Area urn" msgstr "Urn de la zone" -#: models.py:1036 templates/chimere/blocks/welcome.html:3 +#: models.py:1044 templates/chimere/blocks/welcome.html:3 msgid "Welcome message" msgstr "Message d'accueil" -#: models.py:1040 +#: models.py:1048 msgid "Upper left corner" msgstr "Coin en haut à gauche" -#: models.py:1042 +#: models.py:1050 msgid "Lower right corner" msgstr "Coin en bas à droite" -#: models.py:1044 +#: models.py:1052 msgid "Default area" msgstr "Zone par défaut" -#: models.py:1045 +#: models.py:1053 msgid "Only one area is set by default" msgstr "Seule une zone est définie par défaut" -#: models.py:1049 +#: models.py:1057 msgid "Sub-categories checked by default" msgstr "Sous-catégories cochées par défaut" -#: models.py:1051 +#: models.py:1059 msgid "Sub-categories dynamicaly displayed" msgstr "Sous-categories affichées dynamiquement" -#: models.py:1052 +#: models.py:1060 msgid "" "If checked, categories are only displayed in the menu if they are available " "on the current extent." @@ -520,68 +528,68 @@ msgstr "" "Si coché, les catégories sont disponibles sur le menu seulement si elles " "apparaissent sur la zone affichée." -#: models.py:1056 models.py:1123 +#: models.py:1064 models.py:1131 msgid "Restricted to theses sub-categories" msgstr "Restreindre à ces sous-categories" -#: models.py:1057 +#: models.py:1065 msgid "If no sub-category is set all sub-categories are available" msgstr "" "Si aucune sous-catégorie n'est définie toutes les sous-catégories sont " "disponibles" -#: models.py:1059 +#: models.py:1067 msgid "Link to an external CSS" msgstr "Lien vers une feuille de style externe" -#: models.py:1061 +#: models.py:1069 msgid "Restrict to the area extent" msgstr "Restreindre à l'étendue de la zone" -#: models.py:1108 +#: models.py:1116 msgid "Default layer" msgstr "Couche par défaut" -#: models.py:1112 models.py:1113 +#: models.py:1120 models.py:1121 msgid "Layers" msgstr "Couches" -#: models.py:1121 +#: models.py:1129 msgid "Mandatory" msgstr "Obligatoire" -#: models.py:1124 +#: models.py:1132 msgid "" "If no sub-category is set all the property applies to all sub-categories" msgstr "" "Si aucune sous-catégorie n'est précisée, cette propriété est disponible pour " "toutes les sous-catégories" -#: models.py:1126 +#: models.py:1134 msgid "Text" msgstr "Texte" -#: models.py:1127 +#: models.py:1135 msgid "Long text" msgstr "Texte long" -#: models.py:1128 +#: models.py:1136 msgid "Password" msgstr "Mot de passe" -#: models.py:1134 +#: models.py:1142 msgid "Type" msgstr "Type" -#: models.py:1139 models.py:1156 +#: models.py:1147 models.py:1164 msgid "Property model" msgstr "Modèle de propriété" -#: models.py:1157 +#: models.py:1165 msgid "Value" msgstr "Valeur" -#: models.py:1161 +#: models.py:1169 msgid "Property" msgstr "Propriété" @@ -647,42 +655,42 @@ msgstr "Fichier(s) manquant(s) dans l'archive zip" msgid "Bad XML file" msgstr "Mauvais fichier XML" -#: utils.py:298 +#: utils.py:300 msgid "Error while reading the data source." msgstr "Erreur lors de la lecture de la source." -#: utils.py:333 +#: utils.py:335 msgid "Type of geographic item of this shapefile is not managed by Chimère." msgstr "" "Les types des éléments géographiques de ce fichier Shapefile ne sont pas " "gérés par Chimère." -#: utils.py:353 +#: utils.py:355 msgid "Bad Shapefile" msgstr "Mauvais fichier Shapefile" -#: utils.py:393 +#: utils.py:397 msgid "Could not create file!" msgstr "Ne peut pas créer le fichier !" -#: utils.py:404 +#: utils.py:408 msgid "Failed to create field" msgstr "Ne peut pas créer un champ" -#: utils.py:445 templates/chimere/edit.html:44 +#: utils.py:449 templates/chimere/edit.html:44 #: templates/chimere/edit_route.html:41 msgid "Categories" msgstr "Catégories" -#: utils.py:506 +#: utils.py:510 msgid "Nothing to import" msgstr "Rien à importer" -#: utils.py:586 +#: utils.py:598 msgid "New items imported - validate them before exporting" msgstr "Nouveaux éléments importés - valider ceux-ci avant d'exporter" -#: utils.py:588 +#: utils.py:600 msgid "" "There are items from a former import not yet validated - validate them " "before exporting" @@ -690,15 +698,15 @@ msgstr "" "Il y a des éléments d'un import précédent pas encore validé - Validez les " "avant d'exporter" -#: utils.py:598 +#: utils.py:610 msgid "Bad param" msgstr "Mauvais paramètre" -#: utils.py:613 +#: utils.py:625 msgid "No non ambigious tag is defined in the XAPI request" msgstr "Pas de tag non ambigü définis dans la requête XAPI" -#: utils.py:615 +#: utils.py:627 msgid "" "No bounding box is defined in the XAPI request.If you are sure to manage the " "entire planet set the bounding box to -180,-90,180,90" @@ -874,15 +882,23 @@ msgstr "Proposer" msgid "Date:" msgstr "Date :" +#: templates/chimere/detail.html:25 +msgid "Source:" +msgstr "Source :" + #: templates/chimere/detail.html:26 +msgid "License:" +msgstr "Licence :" + +#: templates/chimere/detail.html:28 msgid "Show multimedia gallery" msgstr "Montrer la galerie multimedia" -#: templates/chimere/detail.html:29 +#: templates/chimere/detail.html:31 msgid "Share on" msgstr "Partager sur" -#: templates/chimere/detail.html:33 +#: templates/chimere/detail.html:35 msgid "Share" msgstr "Partager" -- cgit v1.2.3 From 08a15921f11ad83595e5b3c0a7b501fa5278483f Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 6 Oct 2012 20:10:20 +0200 Subject: Admin: improve widget to select an area --- chimere/locale/fr/LC_MESSAGES/django.po | 324 +++++++++++++++++--------------- chimere/static/chimere/js/edit_area.js | 54 +++++- chimere/widgets.py | 22 ++- 3 files changed, 230 insertions(+), 170 deletions(-) (limited to 'chimere/locale') diff --git a/chimere/locale/fr/LC_MESSAGES/django.po b/chimere/locale/fr/LC_MESSAGES/django.po index a59717f..214dfb4 100644 --- a/chimere/locale/fr/LC_MESSAGES/django.po +++ b/chimere/locale/fr/LC_MESSAGES/django.po @@ -7,18 +7,18 @@ msgid "" msgstr "" "Project-Id-Version: 0.2\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-10-04 23:35+0200\n" +"POT-Creation-Date: 2012-10-06 20:09+0200\n" "PO-Revision-Date: 2010-03-20 20:00+0100\n" "Last-Translator: Étienne Loks \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -#: __init__.py:8 models.py:584 +#: __init__.py:8 models.py:618 msgid "Multimedia files" msgstr "Fichiers multimedias" -#: __init__.py:9 models.py:641 +#: __init__.py:9 models.py:674 msgid "Picture files" msgstr "Fichiers d'image" @@ -46,47 +46,47 @@ msgstr "Flux RSS" msgid "Contact us" msgstr "Nous contacter" -#: admin.py:63 templates/chimere/feeds/rss.html:69 +#: admin.py:64 templates/chimere/feeds/rss.html:69 msgid "Validate" msgstr "Valider" -#: admin.py:74 +#: admin.py:75 msgid "Export to KML" msgstr "Exporter en KML" -#: admin.py:88 +#: admin.py:89 msgid "Export to Shapefile" msgstr "Exporter en Shapefile" -#: admin.py:98 +#: admin.py:99 msgid "Export to CSV" msgstr "Exporter en CSV" -#: admin.py:177 +#: admin.py:184 msgid "Import" msgstr "Import" -#: admin.py:183 +#: admin.py:190 msgid "Cancel import" msgstr "Annuler l'import" -#: admin.py:189 +#: admin.py:196 msgid "Cancel export" msgstr "Annuler l'export" -#: admin.py:197 +#: admin.py:204 msgid "Export to osm" msgstr "Exporter vers osm" -#: feeds.py:124 feeds.py:211 +#: feeds.py:128 feeds.py:215 msgid "Last points of interest" msgstr "Derniers points d'intérêt" -#: feeds.py:130 +#: feeds.py:134 msgid "Latest points of interest from " msgstr "Nouveaux points d'intérêt de " -#: feeds.py:176 +#: feeds.py:180 msgid "Last points of interest by area" msgstr "Nouveaux points d'intérêt par zone" @@ -122,405 +122,405 @@ msgstr "" "Vous devez spécifier le champ « Source » ou « Fichier source » mais pas les " "deux." -#: forms.py:123 +#: forms.py:124 msgid "You have to set \"source\" or \"source file\"." msgstr "Vous devez spécifier le champ « Source » ou « Fichier source »." -#: forms.py:182 +#: forms.py:183 msgid "End date has been set with no start date" msgstr "Une date de fin a été donnée sans date de début" -#: forms.py:193 +#: forms.py:194 msgid "This field is mandatory for the selected categories" msgstr "Ce champ est obligatoire pour les catégories sélectionnées" -#: forms.py:398 +#: forms.py:414 msgid "File" msgstr "Fichier" -#: forms.py:404 +#: forms.py:420 msgid "Bad file format: this must be a GPX or KML file" msgstr "Mauvais format de fichier : KML et GPX sont supportés" -#: forms.py:409 models.py:49 models.py:102 models.py:123 models.py:136 -#: models.py:150 models.py:252 models.py:531 models.py:574 models.py:618 -#: models.py:735 models.py:1029 models.py:1041 models.py:1126 utils.py:448 +#: forms.py:425 models.py:50 models.py:103 models.py:124 models.py:137 +#: models.py:151 models.py:267 models.py:565 models.py:608 models.py:651 +#: models.py:767 models.py:1083 models.py:1095 models.py:1180 utils.py:454 #: templates/chimere/edit.html:39 templates/chimere/edit_route.html:36 msgid "Name" msgstr "Nom" -#: forms.py:418 models.py:1078 +#: forms.py:434 models.py:1132 msgid "Area" msgstr "Zone" -#: models.py:50 models.py:124 models.py:151 models.py:263 models.py:535 -#: models.py:1047 models.py:1128 +#: models.py:51 models.py:125 models.py:152 models.py:278 models.py:569 +#: models.py:1101 models.py:1182 msgid "Available" msgstr "Disponible" -#: models.py:51 models.py:1137 +#: models.py:52 models.py:1191 msgid "Date" msgstr "Date" -#: models.py:57 models.py:58 +#: models.py:58 models.py:59 msgid "News" msgstr "Nouvelle" -#: models.py:63 +#: models.py:64 msgid "Parameters" msgstr "Paramètres" -#: models.py:67 +#: models.py:68 msgid "TinyUrl" msgstr "Mini-url" -#: models.py:106 models.py:113 models.py:155 +#: models.py:107 models.py:114 models.py:156 msgid "Color theme" msgstr "Thème de couleur" -#: models.py:111 +#: models.py:112 msgid "Code" msgstr "Code" -#: models.py:112 models.py:125 models.py:157 models.py:576 models.py:633 -#: models.py:1046 models.py:1115 models.py:1127 +#: models.py:113 models.py:126 models.py:158 models.py:610 models.py:666 +#: models.py:1100 models.py:1169 models.py:1181 msgid "Order" msgstr "Ordre" -#: models.py:118 +#: models.py:119 msgid "Color" msgstr "Couleur" -#: models.py:131 models.py:149 templates/chimere/main_map.html:13 +#: models.py:132 models.py:150 templates/chimere/main_map.html:13 msgid "Category" msgstr "Catégorie" -#: models.py:137 models.py:527 models.py:619 models.py:801 +#: models.py:138 models.py:561 models.py:652 models.py:833 msgid "Image" msgstr "Image" -#: models.py:139 models.py:621 models.py:803 +#: models.py:140 models.py:654 models.py:835 msgid "Height" msgstr "Hauteur" -#: models.py:140 models.py:622 models.py:804 +#: models.py:141 models.py:655 models.py:836 msgid "Width" msgstr "Largeur" -#: models.py:144 models.py:154 +#: models.py:145 models.py:155 msgid "Icon" msgstr "Icône" -#: models.py:152 +#: models.py:153 msgid "Available for submission" msgstr "Disponible pour soumission" -#: models.py:158 +#: models.py:159 msgid "Marker" msgstr "Point d'intérêt" -#: models.py:159 models.py:797 models.py:812 +#: models.py:160 models.py:829 models.py:844 #: templates/chimere/edit_route.html:27 msgid "Route" msgstr "Trajet" -#: models.py:160 +#: models.py:161 msgid "Both" msgstr "Mixte" -#: models.py:161 +#: models.py:162 msgid "Item type" msgstr "Type d'élément" -#: models.py:166 +#: models.py:167 msgid "Sub-category" msgstr "Sous-catégorie" -#: models.py:167 +#: models.py:168 msgid "Sub-categories" msgstr "Sous-catégories" -#: models.py:219 +#: models.py:226 msgid "Importer type" msgstr "Type d'import" -#: models.py:222 models.py:274 +#: models.py:229 models.py:289 msgid "Source" msgstr "Source" -#: models.py:224 +#: models.py:231 +msgid "Source file" +msgstr "Fichier source" + +#: models.py:233 msgid "Filter" msgstr "Filtre" -#: models.py:226 +#: models.py:235 msgid "Name by default" msgstr "Nom par défaut" -#: models.py:229 -msgid "Associated subcategories" -msgstr "Sous-catégories associées" - -#: models.py:230 utils.py:451 -msgid "State" -msgstr "État" - -#: models.py:232 +#: models.py:237 msgid "SRID" msgstr "SRID" -#: models.py:233 +#: models.py:238 msgid "Zipped file" msgstr "Fichier zippé" -#: models.py:234 -msgid "Source file" -msgstr "Fichier source" - -#: models.py:236 models.py:280 +#: models.py:239 models.py:295 msgid "Origin" msgstr "Origine" -#: models.py:238 models.py:282 +#: models.py:241 models.py:297 msgid "License" msgstr "Licence" -#: models.py:242 +#: models.py:244 +msgid "Associated subcategories" +msgstr "Sous-catégories associées" + +#: models.py:245 utils.py:458 +msgid "State" +msgstr "État" + +#: models.py:249 msgid "Importer" msgstr "Import" -#: models.py:254 +#: models.py:269 msgid "Submitter session key" msgstr "Clé de session du demandeur" -#: models.py:256 +#: models.py:271 msgid "Submitter name or nickname" msgstr "Nom ou pseudo du demandeur" -#: models.py:258 +#: models.py:273 msgid "Submitter email" msgstr "Courriel du demandeur" -#: models.py:260 +#: models.py:275 msgid "Submitter comment" msgstr "Commentaire du demandeur" -#: models.py:262 +#: models.py:277 msgid "Submited" msgstr "Soumis" -#: models.py:264 +#: models.py:279 msgid "Modified" msgstr "Modifié" -#: models.py:265 +#: models.py:280 msgid "Disabled" msgstr "Désactivé" -#: models.py:266 +#: models.py:281 msgid "Imported" msgstr "Importé" -#: models.py:267 +#: models.py:282 msgid "Excluded" msgstr "Exclu" -#: models.py:269 +#: models.py:284 msgid "Status" msgstr "État" -#: models.py:270 +#: models.py:285 msgid "Import key" msgstr "Clé d'import" -#: models.py:272 +#: models.py:287 msgid "Import version" msgstr "Version de l'import" -#: models.py:276 +#: models.py:291 msgid "Modified since last import" msgstr "Modifié depuis le dernier import" -#: models.py:278 +#: models.py:293 msgid "Not to be imported inside OSM" msgstr "À ne pas importer dans OSM" -#: models.py:285 templates/chimere/edit.html:56 +#: models.py:300 templates/chimere/edit.html:56 #: templates/chimere/edit_route.html:52 msgid "Start date" msgstr "Date de début" -#: models.py:286 +#: models.py:301 msgid "Not mandatory. Set it for dated item such as event. Format YYYY-MM-DD" msgstr "" "Optionnel. Précisez ce champ pour les éléments datés comme un événement. " "Format du champ : AAAA-MM-JJ" -#: models.py:288 templates/chimere/edit.html:62 +#: models.py:303 templates/chimere/edit.html:62 #: templates/chimere/edit_route.html:58 msgid "End date" msgstr "Date de fin" -#: models.py:289 +#: models.py:304 msgid "" "Not mandatory. Set it only if you have a multi-day event. Format YYYY-MM-DD" msgstr "" "Optionnel. Précisez ce champ seulement pour des événements durant plusieurs " "jours. Format du champ : AAAA-MM-JJ" -#: models.py:325 +#: models.py:350 msgid "Reference marker" msgstr "Point d'intérêt de référence" -#: models.py:326 utils.py:453 utils.py:454 +#: models.py:351 utils.py:460 msgid "Localisation" msgstr "Localisation" -#: models.py:328 +#: models.py:353 msgid "Available Date" msgstr "Date de mise en disponibilité" -#: models.py:332 utils.py:452 templates/chimere/edit.html:49 +#: models.py:357 utils.py:459 templates/chimere/edit.html:49 #: templates/chimere/edit_route.html:46 msgid "Description" msgstr "Description" -#: models.py:387 models.py:1162 +#: models.py:415 models.py:1216 msgid "Point of interest" msgstr "Point d'intérêt" -#: models.py:525 +#: models.py:559 msgid "Audio" msgstr "Audio" -#: models.py:526 +#: models.py:560 msgid "Video" msgstr "Vidéo" -#: models.py:528 +#: models.py:562 msgid "Other" msgstr "Autre" -#: models.py:529 +#: models.py:563 msgid "Media type" msgstr "Type de media" -#: models.py:532 +#: models.py:566 msgid "Mime type" msgstr "Type mime" -#: models.py:534 +#: models.py:568 msgid "Inside an iframe" msgstr "À l'intérieur d'un iframe" -#: models.py:538 +#: models.py:572 msgid "Multimedia type" msgstr "Type de multimedia" -#: models.py:539 +#: models.py:573 msgid "Multimedia types" msgstr "Types de multimedia" -#: models.py:575 +#: models.py:609 msgid "Url" msgstr "Url" -#: models.py:578 models.py:623 +#: models.py:612 models.py:656 msgid "Display inside the description?" msgstr "Apparaît dans la description ?" -#: models.py:583 +#: models.py:617 msgid "Multimedia file" msgstr "Fichier multimedia" -#: models.py:625 +#: models.py:658 msgid "Thumbnail" msgstr "Miniature" -#: models.py:629 +#: models.py:662 msgid "Thumbnail height" msgstr "Hauteur de la miniature" -#: models.py:631 +#: models.py:664 msgid "Thumbnail width" msgstr "Largeur de la miniature" -#: models.py:640 +#: models.py:673 msgid "Picture file" msgstr "Fichier d'image" -#: models.py:736 +#: models.py:768 msgid "Raw file (gpx or kml)" msgstr "Fichier brut (gpx ou kml)" -#: models.py:738 +#: models.py:770 msgid "Simplified file" msgstr "Fichier simplifié" -#: models.py:740 +#: models.py:772 msgid "KML" msgstr "KML" -#: models.py:740 +#: models.py:772 msgid "GPX" msgstr "GPX" -#: models.py:745 +#: models.py:777 msgid "Route file" msgstr "Fichier de trajet" -#: models.py:746 +#: models.py:778 msgid "Route files" msgstr "Fichiers de trajet" -#: models.py:796 +#: models.py:828 msgid "Reference route" msgstr "Trajet de référence" -#: models.py:800 +#: models.py:832 msgid "Associated file" msgstr "Fichier associé" -#: models.py:1030 +#: models.py:1084 msgid "Layer code" msgstr "Code pour la couche" -#: models.py:1036 +#: models.py:1090 msgid "Layer" msgstr "Couche" -#: models.py:1042 +#: models.py:1096 msgid "Area urn" msgstr "Urn de la zone" -#: models.py:1044 templates/chimere/blocks/welcome.html:3 +#: models.py:1098 templates/chimere/blocks/welcome.html:3 msgid "Welcome message" msgstr "Message d'accueil" -#: models.py:1048 +#: models.py:1102 msgid "Upper left corner" msgstr "Coin en haut à gauche" -#: models.py:1050 +#: models.py:1104 msgid "Lower right corner" msgstr "Coin en bas à droite" -#: models.py:1052 +#: models.py:1106 msgid "Default area" msgstr "Zone par défaut" -#: models.py:1053 +#: models.py:1107 msgid "Only one area is set by default" msgstr "Seule une zone est définie par défaut" -#: models.py:1057 +#: models.py:1111 msgid "Sub-categories checked by default" msgstr "Sous-catégories cochées par défaut" -#: models.py:1059 +#: models.py:1113 msgid "Sub-categories dynamicaly displayed" msgstr "Sous-categories affichées dynamiquement" -#: models.py:1060 +#: models.py:1114 msgid "" "If checked, categories are only displayed in the menu if they are available " "on the current extent." @@ -528,68 +528,68 @@ msgstr "" "Si coché, les catégories sont disponibles sur le menu seulement si elles " "apparaissent sur la zone affichée." -#: models.py:1064 models.py:1131 +#: models.py:1118 models.py:1185 msgid "Restricted to theses sub-categories" msgstr "Restreindre à ces sous-categories" -#: models.py:1065 +#: models.py:1119 msgid "If no sub-category is set all sub-categories are available" msgstr "" "Si aucune sous-catégorie n'est définie toutes les sous-catégories sont " "disponibles" -#: models.py:1067 +#: models.py:1121 msgid "Link to an external CSS" msgstr "Lien vers une feuille de style externe" -#: models.py:1069 +#: models.py:1123 msgid "Restrict to the area extent" msgstr "Restreindre à l'étendue de la zone" -#: models.py:1116 +#: models.py:1170 msgid "Default layer" msgstr "Couche par défaut" -#: models.py:1120 models.py:1121 +#: models.py:1174 models.py:1175 msgid "Layers" msgstr "Couches" -#: models.py:1129 +#: models.py:1183 msgid "Mandatory" msgstr "Obligatoire" -#: models.py:1132 +#: models.py:1186 msgid "" "If no sub-category is set all the property applies to all sub-categories" msgstr "" "Si aucune sous-catégorie n'est précisée, cette propriété est disponible pour " "toutes les sous-catégories" -#: models.py:1134 +#: models.py:1188 msgid "Text" msgstr "Texte" -#: models.py:1135 +#: models.py:1189 msgid "Long text" msgstr "Texte long" -#: models.py:1136 +#: models.py:1190 msgid "Password" msgstr "Mot de passe" -#: models.py:1142 +#: models.py:1196 msgid "Type" msgstr "Type" -#: models.py:1147 models.py:1164 +#: models.py:1201 models.py:1218 msgid "Property model" msgstr "Modèle de propriété" -#: models.py:1165 +#: models.py:1219 msgid "Value" msgstr "Valeur" -#: models.py:1169 +#: models.py:1223 msgid "Property" msgstr "Propriété" @@ -643,54 +643,62 @@ msgstr "Export échoué" msgid "Export canceled" msgstr "Export annulé" -#: utils.py:118 utils.py:167 +#: utils.py:123 utils.py:172 msgid "Bad zip file" msgstr "Mauvais fichier zip" -#: utils.py:170 +#: utils.py:175 msgid "Missing file(s) inside the zip file" msgstr "Fichier(s) manquant(s) dans l'archive zip" -#: utils.py:211 +#: utils.py:216 msgid "Bad XML file" msgstr "Mauvais fichier XML" -#: utils.py:300 +#: utils.py:301 msgid "Error while reading the data source." msgstr "Erreur lors de la lecture de la source." -#: utils.py:335 +#: utils.py:336 msgid "Type of geographic item of this shapefile is not managed by Chimère." msgstr "" "Les types des éléments géographiques de ce fichier Shapefile ne sont pas " "gérés par Chimère." -#: utils.py:355 +#: utils.py:356 msgid "Bad Shapefile" msgstr "Mauvais fichier Shapefile" -#: utils.py:397 +#: utils.py:398 msgid "Could not create file!" msgstr "Ne peut pas créer le fichier !" -#: utils.py:408 +#: utils.py:409 msgid "Failed to create field" msgstr "Ne peut pas créer un champ" -#: utils.py:449 templates/chimere/edit.html:44 +#: utils.py:455 templates/chimere/edit.html:44 #: templates/chimere/edit_route.html:41 msgid "Categories" msgstr "Catégories" -#: utils.py:510 +#: utils.py:488 +msgid "Invalid CSV format" +msgstr "Fichier CSV non valide" + +#: utils.py:563 +msgid "RSS feed is not well formed" +msgstr "Flux RSS non valide" + +#: utils.py:633 msgid "Nothing to import" msgstr "Rien à importer" -#: utils.py:598 +#: utils.py:721 msgid "New items imported - validate them before exporting" msgstr "Nouveaux éléments importés - valider ceux-ci avant d'exporter" -#: utils.py:600 +#: utils.py:723 msgid "" "There are items from a former import not yet validated - validate them " "before exporting" @@ -698,15 +706,15 @@ msgstr "" "Il y a des éléments d'un import précédent pas encore validé - Validez les " "avant d'exporter" -#: utils.py:610 +#: utils.py:733 msgid "Bad param" msgstr "Mauvais paramètre" -#: utils.py:625 +#: utils.py:748 msgid "No non ambigious tag is defined in the XAPI request" msgstr "Pas de tag non ambigü définis dans la requête XAPI" -#: utils.py:627 +#: utils.py:750 msgid "" "No bounding box is defined in the XAPI request.If you are sure to manage the " "entire planet set the bounding box to -180,-90,180,90" @@ -846,7 +854,13 @@ msgstr "Se déplacer" msgid "Draw" msgstr "Tracer" -#: widgets.py:452 +#: widgets.py:394 +msgid "Hold CTRL, click and drag to select area on the map" +msgstr "" +"Maintenir la touche Control, cliquez puis glissez pour sélectionner une zone " +"sur la carte" + +#: widgets.py:460 msgid "Select..." msgstr "Sélectionner..." diff --git a/chimere/static/chimere/js/edit_area.js b/chimere/static/chimere/js/edit_area.js index f22d6e3..9c3384f 100644 --- a/chimere/static/chimere/js/edit_area.js +++ b/chimere/static/chimere/js/edit_area.js @@ -18,12 +18,25 @@ See the file COPYING for details. /* area edit */ +var bbox_style = {fill: true, fillColor: "#FFFFFF", fillOpacity: 0.5, + stroke: true, strokeOpacity: 0.8, strokeColor: "#FF0000", strokeWidth: 2}; + var map; +var box_layer; + +function initForm(bounds){ + +} -/* update form fields on zoom action */ -function updateForm(){ - var bounds = map.getExtent().transform(epsg_projection, - epsg_display_projection); +/* update form fields on select action */ +function updateForm(bounds){ + if(!bounds.toGeometry) return; + var feature = new OpenLayers.Feature.Vector( + bounds.toGeometry(), {}, bbox_style); + box_layer.destroyFeatures() + box_layer.addFeatures(feature); + var bounds = bounds.clone().transform(epsg_projection, + epsg_display_projection); document.getElementById('upper_left_lat').value = bounds.top; document.getElementById('upper_left_lon').value = bounds.left; document.getElementById('lower_right_lat').value = bounds.bottom; @@ -34,15 +47,40 @@ function updateForm(){ function init(){ map = new OpenLayers.Map ('map_edit', { controls:[new OpenLayers.Control.Navigation(), - new OpenLayers.Control.PanPanel(), - new OpenLayers.Control.ZoomPanel(), - new OpenLayers.Control.Attribution()], + new OpenLayers.Control.SimplePanZoom()], maxResolution: 156543.0399, units: 'm', projection: epsg_projection, displayProjection: epsg_display_projection } ); - map.addLayers([map_layer]); + box_layer = new OpenLayers.Layer.Vector("Box layer"); + map.addLayers([map_layer, box_layer]); + var selectControl = new OpenLayers.Control(); + OpenLayers.Util.extend(selectControl, { + draw: function() { + this.box = new OpenLayers.Handler.Box(selectControl, + {'done': this.notice}, + {keyMask: navigator.platform.match(/Mac/) ? + OpenLayers.Handler.MOD_ALT :OpenLayers.Handler.MOD_CTRL}); + this.box.activate(); + }, + + notice: function(pxbounds) { + ltpixel = map.getLonLatFromPixel( + new OpenLayers.Pixel(pxbounds.left, pxbounds.top)); + rbpixel = map.getLonLatFromPixel( + new OpenLayers.Pixel(pxbounds.right, pxbounds.bottom)); + if (ltpixel.equals(rbpixel)) + return; + if (!ltpixel || !rbpixel) return; + bounds = new OpenLayers.Bounds(); + bounds.extend(ltpixel); + bounds.extend(rbpixel); + updateForm(bounds); + } + }); + map.addControl(selectControl); + map.events.register('zoomend', map, updateForm); map.events.register('moveend', map, updateForm); /* zoom to the appropriate extent */ diff --git a/chimere/widgets.py b/chimere/widgets.py index e113305..f336ee1 100644 --- a/chimere/widgets.py +++ b/chimere/widgets.py @@ -358,9 +358,11 @@ class AreaWidget(forms.TextInput): """ class Media: css = { - "all": settings.OSM_CSS_URLS + ["%schimere/css/forms.css" % settings.STATIC_URL,] + "all": settings.OSM_CSS_URLS + \ + ["%schimere/css/forms.css" % settings.STATIC_URL,] } - js = settings.OSM_JS_URLS + ["%schimere/js/edit_area.js" % settings.STATIC_URL, + js = settings.OSM_JS_URLS + [ + "%schimere/js/edit_area.js" % settings.STATIC_URL, "%schimere/js/base.js" % settings.STATIC_URL,] def render(self, name, value, attrs=None): @@ -379,7 +381,7 @@ class AreaWidget(forms.TextInput): lower_right_lon, lower_right_lat = lower_right.x, \ lower_right.y tpl = getMapJS() - tpl += u"
\n"\ + tpl += u"\n"\ u"\n"\ u"\n" % ( upper_left_lat, upper_left_lon, lower_right_lat, lower_right_lon) - tpl += u"\n
\n" + u"updateForm(extent);\n"\ + u"map.zoomToExtent(extent, true);\n"\ + u"map.zoomOut();" % (upper_left_lon, upper_left_lat, + lower_right_lon, lower_right_lat) + tpl += u"});\n\n
\n" + tpl += u"
\n" return mark_safe(tpl) def value_from_datadict(self, data, files, name): -- cgit v1.2.3