msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-11-28 00:20+0100\n"
+"POT-Creation-Date: 2014-11-28 01:51+0100\n"
"PO-Revision-Date: 2012-12-22 21:24+0100\n"
"Last-Translator: Patrik Tschudin <patsch@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr ""
#: templates/telemeta/collection_list.html:28
-#: templates/telemeta/mediaitem_list.html:27
-#: templates/telemeta/search_results.html:22
-#: templates/telemeta/search_results.html:26
+#, fuzzy
+msgctxt "collection list"
msgid "All"
msgstr "Alles"
msgid "Media Items"
msgstr "Medienelemente"
+#: templates/telemeta/mediaitem_list.html:27
+#: templates/telemeta/search_results.html:22
+#: templates/telemeta/search_results.html:26
+msgid "All"
+msgstr "Alles"
+
#: templates/telemeta/mediaitem_list.html:28
msgid "Unpublished"
msgstr "unveröffentlicht"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-11-28 00:20+0100\n"
+"POT-Creation-Date: 2014-11-28 01:51+0100\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"
msgstr ""
#: templates/telemeta/collection_list.html:28
-#: templates/telemeta/mediaitem_list.html:27
-#: templates/telemeta/search_results.html:22
-#: templates/telemeta/search_results.html:26
+msgctxt "collection list"
msgid "All"
msgstr ""
msgid "Media Items"
msgstr ""
+#: templates/telemeta/mediaitem_list.html:27
+#: templates/telemeta/search_results.html:22
+#: templates/telemeta/search_results.html:26
+msgid "All"
+msgstr ""
+
#: templates/telemeta/mediaitem_list.html:28
msgid "Unpublished"
msgstr ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-11-28 00:20+0100\n"
+"POT-Creation-Date: 2014-11-28 01:51+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Guillaume Pellerin <yomguy@parisson.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
#: models/media.py:872
msgid "date added"
-msgstr ""
+msgstr "date d'ajout"
#: models/media.py:873
msgid "date of first attribution"
msgstr "Filtres"
#: templates/telemeta/collection_list.html:28
-#: templates/telemeta/mediaitem_list.html:27
-#: templates/telemeta/search_results.html:22
-#: templates/telemeta/search_results.html:26
+msgctxt "collection list"
msgid "All"
-msgstr "Tous"
+msgstr "Toutes"
#: templates/telemeta/collection_list.html:29
msgctxt "collection list"
msgid "Media Items"
msgstr "Items"
+#: templates/telemeta/mediaitem_list.html:27
+#: templates/telemeta/search_results.html:22
+#: templates/telemeta/search_results.html:26
+msgid "All"
+msgstr "Tous"
+
#: templates/telemeta/mediaitem_list.html:28
msgid "Unpublished"
msgstr "Inédits"
msgstr ""
"Project-Id-Version: Telemeta 1.4\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-11-28 00:20+0100\n"
+"POT-Creation-Date: 2014-11-28 01:51+0100\n"
"PO-Revision-Date: 2014-09-02 16:18+2\n"
"Last-Translator: Zaichao XIA <xiazaichao@gmail.com>\n"
"Language-Team: zh_CN <LL@li.org>\n"
msgstr ""
#: templates/telemeta/collection_list.html:28
-#: templates/telemeta/mediaitem_list.html:27
-#: templates/telemeta/search_results.html:22
-#: templates/telemeta/search_results.html:26
+#, fuzzy
+msgctxt "collection list"
msgid "All"
msgstr "所有"
msgid "Media Items"
msgstr "媒体项"
+#: templates/telemeta/mediaitem_list.html:27
+#: templates/telemeta/search_results.html:22
+#: templates/telemeta/search_results.html:26
+msgid "All"
+msgstr "所有"
+
#: templates/telemeta/mediaitem_list.html:28
msgid "Unpublished"
msgstr "未出版的"
{% load bootstrap3 %}
{% block title %}
- <img src="{{ STATIC_URL }}telemeta/images/collections_red.png" style="vertical-align:middle" /> Collection : {{ object.title }}
+ <img src="{{ STATIC_URL }}telemeta/images/collections_red.png" style="vertical-align:middle" /> Collection : {{ collection.title }}
{% endblock %}
{% block title_buttons %}
<div class="fixedWidthAsPlayer">
<img id="wait-img" style="display:none" style="vertical-align:middle" alt="wait" src="{{ STATIC_URL }}telemeta/images/wait.gif" />
{% block cancel %}
- <a id="cancel" href="{% url "telemeta-collection-detail" object.public_id %}">
+ <a id="cancel" href="{% url "telemeta-collection-detail" collection.public_id %}">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-remove"></span> {% trans "Cancel" %}
</button>
<div align="center" style="margin-top:3ex;">
{% block cancel2 %}
- <a id="cancel" href="{% url "telemeta-collection-detail" object.public_id %}">
+ <a id="cancel" href="{% url "telemeta-collection-detail" collection.public_id %}">
<button type="button" class="btn btn-default">
<span class="glyphicon glyphicon-remove"></span> {% trans "Cancel" %}
</button>
<span class="glyphicon glyphicon-filter"></span> {% trans "Filters" %} <span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu">
- <li><a href="{% url "telemeta-collections" %}" class="">{% trans "All" %}</a></li>
+ <li><a href="{% url "telemeta-collections" %}" class="">{% trans "All" context "collection list" %}</a></li>
<li><a href="{% url "telemeta-collections-unpublished" %}">{% trans "Unpublished" context "collection list" %}</a></li>
<li><a href="{% url "telemeta-collections-published" %}">{% trans "Published" context "collection list" %}</a></li>
<li><a href="{% url "telemeta-collections-sound" %}">{% trans "Digitized" context "collection list" %}</a></li>
url(r'^archives/items/(?P<public_id>[A-Za-z0-9._-]+)/analyze/xml/$', item_view.item_analyze_xml, name="telemeta-item-analyze-xml"),
url(r'^archives/items/(?P<public_id>[A-Za-z0-9._-]+)/item_xspf.xml$', item_view.item_playlist, dict(template="telemeta/mediaitem_xspf.xml", mimetype="application/xspf+xml"), name="telemeta-item-xspf"),
url(r'^archives/items/(?P<public_id>[A-Za-z0-9._-]+)/edit/$', ItemEditView.as_view(), name="telemeta-item-edit"),
- url(r'^archives/items/(?P<public_id>[A-Za-z0-9._-]+)/copy/$', ItemEditView.as_view(), name="telemeta-item-copy"),
+ url(r'^archives/items/(?P<public_id>[A-Za-z0-9._-]+)/copy/$', ItemCopyView.as_view(), name="telemeta-item-copy"),
url(r'^archives/items_add/$', ItemAddView.as_view(), name="telemeta-item-add"),
url(r'^archives/items/(?P<public_id>[A-Za-z0-9._-]+)/player/(?P<width>[0-9]+)x(?P<height>[0-9]+)/$', item_view.item_detail, dict(template='telemeta/mediaitem_player.html'), name="telemeta-item-player"),
url(r'^archives/items/(?P<public_id>[A-Za-z0-9._-]+)/player/(?P<width>[0-9]+)x(?P<height>[0-9]+)/simple/$', item_view.item_detail, dict(template='telemeta/mediaitem_player_simple.html'), name="telemeta-item-player-simple"),
def get_initial(self):
return model_to_dict(self.get_object())
- def form_valid(self, form):
- item = MediaItem()
- if self.request.FILES:
- item_form = MediaItemForm(data=self.request.POST, files=self.request.FILES, instance=item, prefix='item')
- else:
- item_form = MediaItemForm(data=self.request.POST, instance=item, prefix='item')
-
- if item_form.is_valid():
- item_form.save()
- if not self.request.FILES:
- item.file = source_item.file
- item.save()
-
- code = item_form.cleaned_data['code']
- if not code:
- code = str(item.id)
- if format_form.is_valid():
- format.item = item
- format_form.save()
-
- performances = MediaItemPerformance.objects.filter(media_item=source_item)
- for performance in performances:
- performance.pk = None
- performance.id = None
- performance.media_item = item
- performance.save()
-
- keywords = MediaItemKeyword.objects.filter(item=source_item)
- for keyword in keywords:
- keyword.pk = None
- keyword.id = None
- keyword.item = item
- keyword.save()
-
- item.set_revision(self.request.user)
-
- self.code = form.cleaned_data['code']
- return super(ItemCopyView, self).form_valid(form)
-
def get_success_url(self):
- return reverse_lazy('telemeta-item-detail', kwargs={'public_id':self.code})
+ return reverse_lazy('telemeta-item-detail', kwargs={'public_id':self.object.code})
+
+ def get_context_data(self, **kwargs):
+ context = super(ItemCopyView, self).get_context_data(**kwargs)
+ item = self.get_object()
+ context['item'] = item
+ context['access'] = get_item_access(item, self.request.user)
+ context['previous'], context['next'] = self.item_previous_next(item)
+ #FIXME
+ context['mime_type'] = 'audio/mp3'
+ context['export_formats'] = self.get_export_formats()
+ context['visualizers'] = self.get_graphers()
+ context['audio_export_enabled'] = self.export_enabled
+ context['auto_zoom'] = True
+ return context
class ItemDetailView(ItemViewMixin, DetailView):