summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-18 03:39:12 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2010-11-18 03:39:12 +0100
commita996be2b23a734a21a8b312501a976ffb60fa7e8 (patch)
treeb907f05cd867bb58974004670419d9eb020eeed8
parenta4a12087e7965f0a74b2f903afac6c5aec224b8b (diff)
downloadChimère-a996be2b23a734a21a8b312501a976ffb60fa7e8.tar.bz2
Chimère-a996be2b23a734a21a8b312501a976ffb60fa7e8.zip
Localisation of bsmSelect
-rw-r--r--chimere/locale/fr/LC_MESSAGES/django.po147
-rw-r--r--chimere/main/widgets.py3
2 files changed, 83 insertions, 67 deletions
diff --git a/chimere/locale/fr/LC_MESSAGES/django.po b/chimere/locale/fr/LC_MESSAGES/django.po
index b6eace0..4a2f02f 100644
--- a/chimere/locale/fr/LC_MESSAGES/django.po
+++ b/chimere/locale/fr/LC_MESSAGES/django.po
@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.2\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-04-06 01:19+0200\n"
+"POT-Creation-Date: 2010-11-18 03:35+0100\n"
"PO-Revision-Date: 2010-03-20 20:00+0100\n"
"Last-Translator: Étienne Loks <etienne.loks@peacefrogs.net>\n"
"MIME-Version: 1.0\n"
@@ -30,51 +30,51 @@ msgstr "Ajout d'un point remarquable"
msgid "Add a new route"
msgstr "Ajout d'un nouveau trajet"
-#: main/actions.py:37
+#: main/actions.py:38
msgid "Contact us"
msgstr "Nous contacter"
-#: main/forms.py:53
+#: main/forms.py:55
msgid "New submission for"
msgstr "Nouvelle proposition pour"
-#: main/forms.py:54
+#: main/forms.py:56
#, python-format
msgid "The new item \"%s\" has been submited in the category: "
msgstr "Le nouvel élément « %s » a été proposé dans la catégorie : "
-#: main/forms.py:56
+#: main/forms.py:58
msgid "To valid, precise or unvalid this item: "
msgstr "Pour valider, préciser ou rejeter cet élément : "
-#: main/forms.py:65
+#: main/forms.py:67
msgid "Email (optional)"
msgstr "Courriel (optionnel) "
-#: main/forms.py:66
+#: main/forms.py:68
msgid "Object"
msgstr "Objet"
-#: main/forms.py:226 main/models.py:407
+#: main/forms.py:228 main/models.py:409
msgid "Area"
msgstr "Zone"
-#: main/models.py:36 main/models.py:88 main/models.py:109 main/models.py:122
-#: main/models.py:134 main/models.py:182 main/models.py:250 main/models.py:388
-#: main/models.py:433
+#: main/models.py:35 main/models.py:88 main/models.py:109 main/models.py:122
+#: main/models.py:136 main/models.py:187 main/models.py:259 main/models.py:393
+#: main/models.py:435
msgid "Name"
msgstr "Nom"
-#: main/models.py:37 main/models.py:110 main/models.py:135 main/models.py:188
-#: main/models.py:256 main/models.py:395 main/models.py:435
+#: main/models.py:36 main/models.py:110 main/models.py:137 main/models.py:195
+#: main/models.py:267 main/models.py:397 main/models.py:437
msgid "Available"
msgstr "Disponible"
-#: main/models.py:38
+#: main/models.py:37
msgid "Date"
msgstr "Date"
-#: main/models.py:44
+#: main/models.py:43 main/models.py:44
msgid "News"
msgstr "Nouvelle"
@@ -86,7 +86,7 @@ msgstr ""
msgid "TinyUrl"
msgstr ""
-#: main/models.py:92 main/models.py:99 main/models.py:139
+#: main/models.py:92 main/models.py:99 main/models.py:141
msgid "Color theme"
msgstr "Thème de couleur"
@@ -94,8 +94,8 @@ msgstr "Thème de couleur"
msgid "Code"
msgstr "Code"
-#: main/models.py:98 main/models.py:111 main/models.py:141 main/models.py:394
-#: main/models.py:434
+#: main/models.py:98 main/models.py:111 main/models.py:143 main/models.py:396
+#: main/models.py:436
msgid "Order"
msgstr "Ordre"
@@ -103,106 +103,113 @@ msgstr "Ordre"
msgid "Color"
msgstr "Couleur"
-#: main/models.py:117 main/models.py:133 templates/edit.html:18
-#: templates/edit_route.html:17
+#: main/models.py:117 main/models.py:135
msgid "Category"
msgstr "Catégorie"
-#: main/models.py:123 main/models.py:185 main/models.py:253
-#: templates/edit.html:37 templates/edit_route.html:37
+#: main/models.py:123 main/models.py:190 main/models.py:262
+#: templates/edit.html:28 templates/edit_route.html:28
msgid "Image"
msgstr "Image"
-#: main/models.py:128 main/models.py:138
+#: main/models.py:125 main/models.py:192 main/models.py:264
+msgid "Height"
+msgstr "Hauteur"
+
+#: main/models.py:126 main/models.py:193 main/models.py:265
+msgid "Width"
+msgstr "Largeur"
+
+#: main/models.py:130 main/models.py:140
msgid "Icon"
msgstr "Icône"
-#: main/models.py:142
+#: main/models.py:144
msgid "Marker"
msgstr "Point d'intérêt"
-#: main/models.py:143 main/models.py:252 main/models.py:269
-#: templates/edit_route.html:31
+#: main/models.py:145 main/models.py:261 main/models.py:280
+#: templates/edit_route.html:22
msgid "Route"
msgstr "Trajet"
-#: main/models.py:144
+#: main/models.py:146
msgid "Both"
msgstr "Mixte"
-#: main/models.py:145
+#: main/models.py:147
msgid "Item type"
msgstr "Type d'élément"
-#: main/models.py:150 main/models.py:183 main/models.py:251
+#: main/models.py:152
msgid "Subcategory"
msgstr "Sous-catégorie"
-#: main/models.py:184
+#: main/models.py:189
msgid "Localisation"
msgstr "Localisation"
-#: main/models.py:187 main/models.py:255
+#: main/models.py:194 main/models.py:266
msgid "Submited"
msgstr "Soumis"
-#: main/models.py:189 main/models.py:257
+#: main/models.py:196 main/models.py:268
msgid "Disabled"
msgstr "Désactivé"
-#: main/models.py:193 main/models.py:261
+#: main/models.py:200 main/models.py:272
msgid "Status"
msgstr "État"
-#: main/models.py:201 main/models.py:457
+#: main/models.py:208 main/models.py:459
msgid "Point of interest"
msgstr "Point d'intérêt"
-#: main/models.py:389
+#: main/models.py:394
msgid "Area urn"
msgstr "Urn de la zone"
-#: main/models.py:396
+#: main/models.py:398
msgid "Upper left corner"
msgstr "Coin en haut à gauche"
-#: main/models.py:398
+#: main/models.py:400
msgid "Lower right corner"
msgstr "Coin en bas à droite"
-#: main/models.py:436
+#: main/models.py:438
msgid "Text"
msgstr "Texte"
-#: main/models.py:437
+#: main/models.py:439
msgid "Long text"
msgstr "Texte long"
-#: main/models.py:438
+#: main/models.py:440
msgid "Password"
msgstr "Mot de passe"
-#: main/models.py:442
+#: main/models.py:444
msgid "Type"
msgstr "Type"
-#: main/models.py:447 main/models.py:459
+#: main/models.py:449 main/models.py:461
msgid "Property model"
msgstr "Modèle de propriété"
-#: main/models.py:460
+#: main/models.py:462
msgid "Value"
msgstr "Valeur"
-#: main/models.py:464
+#: main/models.py:466
msgid "Property"
msgstr "Propriété"
-#: main/views.py:217
+#: main/views.py:218
msgid "Comments/request on the map"
msgstr "Commentaires/requètes sur la carte"
-#: main/views.py:220
+#: main/views.py:221
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."
@@ -211,45 +218,45 @@ msgstr ""
"laissé votre courriel vous serez peut-être contacté bientôt pour plus de "
"détails."
-#: main/views.py:224
+#: main/views.py:225
msgid "Temporary error. Renew your message later."
msgstr "Erreur temporaire. Réenvoyez votre message plus tard."
-#: main/views.py:307
+#: main/views.py:316
msgid "No category available in this area."
msgstr "Pas de catégorie disponible sur cette zone."
-#: main/widgets.py:117
+#: main/widgets.py:112
msgid "Latitude"
msgstr "Latitude"
-#: main/widgets.py:117
+#: main/widgets.py:112
msgid "Longitude"
msgstr "Longitude"
-#: main/widgets.py:141
+#: main/widgets.py:136
msgid "Invalid point"
msgstr "Point invalide"
-#: main/widgets.py:167
+#: main/widgets.py:162
msgid "Creation mode"
msgstr "Mode création"
-#: main/widgets.py:168
+#: main/widgets.py:163
msgid ""
"To start drawing the route click on the toggle button : \"Start drawing\"."
msgstr ""
"Pour commencer le dessin cliquez sur le bouton : « Commencer le tracé » "
-#: main/widgets.py:169
+#: main/widgets.py:164
msgid "Then click on the map to begin the drawing."
msgstr "Puis cliquez sur la carte pour commencer le dessin."
-#: main/widgets.py:170
+#: main/widgets.py:165
msgid "You can add points by clicking again."
msgstr "Vous pouvez ajouter des points en cliquant de nouveau."
-#: main/widgets.py:171
+#: main/widgets.py:166
msgid ""
"To finish the drawing double click. When the drawing is finished you can "
"edit it."
@@ -257,7 +264,7 @@ msgstr ""
"Pour finir le tracé double-cliquez. Quand le tracé est fini vous pouvez "
"toujours l'éditer."
-#: main/widgets.py:173
+#: main/widgets.py:168
msgid ""
"While creating to undo a drawing click again on the toggle button \"Stop "
"drawing\"."
@@ -265,24 +272,24 @@ msgstr ""
"En mode création vous pouvez annuler un tracé en appuyant sur le bouton « "
"Arrêter le tracé »"
-#: main/widgets.py:178
+#: main/widgets.py:173
msgid "Modification mode"
msgstr "Mode modification"
-#: main/widgets.py:179
+#: main/widgets.py:174
msgid "To move a point click on it and drag it to the desired position."
msgstr ""
"Pour bouger un point, cliquez dessus, maintenez le click pour le déposer à "
"la position désirée."
-#: main/widgets.py:180
+#: main/widgets.py:175
msgid ""
"To delete a point move the mouse cursor over it and press the \"d\" key."
msgstr ""
"Pour supprimer un point, mettez le curseur de la souris sur celui-ci et "
"appuyez sur le touche « d »"
-#: main/widgets.py:181
+#: main/widgets.py:176
msgid ""
"To add a point click in the middle of a segment and drag the new point to "
"the desired position"
@@ -291,14 +298,18 @@ msgstr ""
"maintenez le bouton appuyé et déplacez le nouveau point à la position "
"désirée."
-#: main/widgets.py:190
+#: main/widgets.py:185
msgid "Start drawing"
msgstr "Commencer le tracé"
-#: main/widgets.py:190
+#: main/widgets.py:185
msgid "Stop drawing"
msgstr "Arrêter le tracé"
+#: main/widgets.py:323
+msgid "Select..."
+msgstr "Sélectionner..."
+
#: templates/base.html:39
msgid "This site uses Chimère"
msgstr "Ce site utilise Chimère"
@@ -352,15 +363,19 @@ msgstr "indique un champ obligatoire"
msgid "Site name"
msgstr "Nom du site"
-#: templates/edit.html:32
+#: templates/edit.html:18 templates/edit_route.html:17
+msgid "Categories"
+msgstr "Catégories"
+
+#: templates/edit.html:23
msgid "Point"
msgstr "Point"
-#: templates/edit.html:33 templates/edit_route.html:32
+#: templates/edit.html:24 templates/edit_route.html:23
msgid "Select a location for this new site"
msgstr "Choisissez une localisation pour ce nouveau site"
-#: templates/edit.html:48 templates/edit_route.html:48
+#: templates/edit.html:39 templates/edit_route.html:39
msgid "Propose"
msgstr "Proposez"
diff --git a/chimere/main/widgets.py b/chimere/main/widgets.py
index 62fac92..64893ab 100644
--- a/chimere/main/widgets.py
+++ b/chimere/main/widgets.py
@@ -311,6 +311,7 @@ class MultiSelectWidget(forms.SelectMultiple):
def render(self, name, value, attrs=None):
rendered = super(MultiSelectWidget, self).render(name, value, attrs)
return mark_safe(rendered + u'''<hr class='spacer'/><script type="text/javascript">
+$.bsmSelect.conf['title'] = "%(title)s";
$("#id_%(name)s").bsmSelect({
removeLabel: '<strong>X</strong>',
containerClass: 'bsmContainer',
@@ -319,7 +320,7 @@ $("#id_%(name)s").bsmSelect({
listItemLabelClass: 'bsmListItemLabel-custom',
removeClass: 'bsmListItemRemove-custom'
});
-</script>''' % {'name':name})
+</script>''' % {'name':name, 'title':_("Select...")})
class SelectMultipleField(models.ManyToManyField):
'''