Commit 9aa4fd68 authored by chris's avatar chris

Make calendar use locales

parent d6d3efaf
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\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"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -68,9 +68,9 @@ msgid ""
"easier when its cloudy."
msgstr ""
"Un système de vote collaboratif, similaire à doodle ou rdvz. Écrit en "
"python, il utilise le framework django et quelques javascripts. Baptisé Nuages "
"d'après la célèbre chanson de Django et parce que travailler sur ordinateur "
"est plus aisé quand il fait gris."
"python, il utilise le framework django et quelques javascripts. Baptisé "
"Nuages d'après la célèbre chanson de Django et parce que travailler sur "
"ordinateur est plus aisé quand il fait gris."
#: templates/nuages.html:10
msgid "Feedback and collaboration are welcome at"
......@@ -84,6 +84,18 @@ msgstr "Nous avons une page de projet à"
msgid "Sources are freely available under"
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
msgid "Posted by"
msgstr "Posté par"
......
......@@ -55,6 +55,7 @@ def get_ordereditem_formset(form, formset=BaseInlineFormSet, **kwargs):
def editchoices(request, 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
key = 'is_' + poll_id + '_author'
......@@ -118,7 +119,7 @@ def editchoices(request, poll_id):
vforms = OrderedItemFormset()
else:
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" %}
{% load i18n %}
{% block title %}nuage - {{object}}{% endblock %}
......@@ -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.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.datepicker-{{ language_code }}.js"></script>
<link type="text/css" href="/static/css/smoothness/jquery-ui-1.8.1.custom.css" rel="stylesheet" />
<script type="text/javascript">
$(document).ready(function(){
......@@ -70,8 +71,8 @@
{% block chapeau %}
<h3>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>
<h3>{% trans "Step 2 : Manage choices" %}</h3>
<p class="info">{% trans "Provide possible dates for your meeting. You may add details as meeting hours, places, or else." %}</p>
{% endblock %}
{% 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