Commit 12067fa3 authored by chris's avatar chris

Make calendar use locales

parent 3623d525
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2010-06-22 00:58+0200\n" "POT-Creation-Date: 2010-06-23 19:07+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
...@@ -68,9 +68,9 @@ msgid "" ...@@ -68,9 +68,9 @@ msgid ""
"easier when its cloudy." "easier when its cloudy."
msgstr "" msgstr ""
"Un système de vote collaboratif, similaire à doodle ou rdvz. Écrit en " "Un système de vote collaboratif, similaire à doodle ou rdvz. Écrit en "
"python, il utilise le framework django et quelques javascripts. Baptisé Nuages " "python, il utilise le framework django et quelques javascripts. Baptisé "
"d'après la célèbre chanson de Django et parce que travailler sur ordinateur " "Nuages d'après la célèbre chanson de Django et parce que travailler sur "
"est plus aisé quand il fait gris." "ordinateur est plus aisé quand il fait gris."
#: templates/nuages.html:10 #: templates/nuages.html:10
msgid "Feedback and collaboration are welcome at" msgid "Feedback and collaboration are welcome at"
...@@ -84,6 +84,18 @@ msgstr "Nous avons une page de projet à" ...@@ -84,6 +84,18 @@ msgstr "Nous avons une page de projet à"
msgid "Sources are freely available under" msgid "Sources are freely available under"
msgstr "Les sources sont libre sous" msgstr "Les sources sont libre sous"
#: templates/sondage/choice_form.html:74
msgid "Step 2 : Manage choices"
msgstr "Etape 2: réponses proposées"
#: templates/sondage/choice_form.html:75
msgid ""
"Provide possible dates for your meeting. You may add details as meeting "
"hours, places, or else."
msgstr ""
"Proposez quelques dates pour votre rendez-vous. Vous pouvez ajouter "
"l'heure, le lieu ou autre dans le champ \"détails\"."
#: templates/sondage/poll_detail.html:9 #: templates/sondage/poll_detail.html:9
msgid "Posted by" msgid "Posted by"
msgstr "Posté par" msgstr "Posté par"
......
No preview for this file type
...@@ -55,6 +55,7 @@ def get_ordereditem_formset(form, formset=BaseInlineFormSet, **kwargs): ...@@ -55,6 +55,7 @@ def get_ordereditem_formset(form, formset=BaseInlineFormSet, **kwargs):
def editchoices(request, poll_id): def editchoices(request, poll_id):
poll = get_object_or_404(Poll.objects.all(),id=poll_id) poll = get_object_or_404(Poll.objects.all(),id=poll_id)
language_code = request.LANGUAGE_CODE
if poll.author == 'AnonymousUser': # Anonymous wants to edit his new poll if poll.author == 'AnonymousUser': # Anonymous wants to edit his new poll
key = 'is_' + poll_id + '_author' key = 'is_' + poll_id + '_author'
...@@ -118,7 +119,7 @@ def editchoices(request, poll_id): ...@@ -118,7 +119,7 @@ def editchoices(request, poll_id):
vforms = OrderedItemFormset() vforms = OrderedItemFormset()
else: else:
vforms = OrderedItemFormset(instance=poll) vforms = OrderedItemFormset(instance=poll)
return render_to_response('sondage/choice_form.html', {'object': poll, 'vforms': vforms,}, context_instance=RequestContext(request)) return render_to_response('sondage/choice_form.html', {'object': poll, 'vforms': vforms, 'language_code': language_code,}, context_instance=RequestContext(request))
......
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %}
{% block title %}nuage - {{object}}{% endblock %} {% block title %}nuage - {{object}}{% endblock %}
...@@ -7,8 +8,8 @@ ...@@ -7,8 +8,8 @@
<script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="/static/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.formset.js"></script> <script type="text/javascript" src="/static/js/jquery.formset.js"></script>
<script type="text/javascript" src="/static/js/jquery-ui-1.8.1.custom.min.js"></script> <script type="text/javascript" src="/static/js/jquery-ui-1.8.1.custom.min.js"></script>
<script type="text/javascript" src="/static/js/jquery.ui.datepicker-{{ language_code }}.js"></script>
<link type="text/css" href="/static/css/smoothness/jquery-ui-1.8.1.custom.css" rel="stylesheet" /> <link type="text/css" href="/static/css/smoothness/jquery-ui-1.8.1.custom.css" rel="stylesheet" />
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function(){ $(document).ready(function(){
...@@ -70,8 +71,8 @@ ...@@ -70,8 +71,8 @@
{% block chapeau %} {% block chapeau %}
<h3>Step 2 : Manage choices</h3> <h3>{% trans "Step 2 : Manage choices" %}</h3>
<p class="info">Provide possible dates for your meeting. You may add details as meeting hours, places, or else.</p> <p class="info">{% trans "Provide possible dates for your meeting. You may add details as meeting hours, places, or else." %}</p>
{% endblock %} {% endblock %}
{% block content %} {% block content %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment