]> git.parisson.com Git - telemeta.git/commitdiff
fix translated flatpages paths and links
authoryomguy <yomguy@parisson.com>
Fri, 29 Apr 2011 10:40:29 +0000 (12:40 +0200)
committeryomguy <yomguy@parisson.com>
Fri, 29 Apr 2011 10:40:29 +0000 (12:40 +0200)
15 files changed:
telemeta/pages/default/parts/help-en.rst [deleted file]
telemeta/pages/default/parts/help-fr.rst [deleted file]
telemeta/pages/default/parts/home-en.rst [deleted file]
telemeta/pages/default/parts/home-fr.rst [deleted file]
telemeta/pages/default/parts/legal_notices-en.rst [deleted file]
telemeta/pages/default/parts/legal_notices-fr.rst [deleted file]
telemeta/pages/en/help.rst [new file with mode: 0644]
telemeta/pages/en/home.rst [new file with mode: 0644]
telemeta/pages/en/legal_notices.rst [new file with mode: 0644]
telemeta/pages/fr/help.rst [new file with mode: 0644]
telemeta/pages/fr/home.rst [new file with mode: 0644]
telemeta/pages/fr/legal_notices.rst [new file with mode: 0644]
telemeta/templates/telemeta_default/base.html
telemeta/urls.py
telemeta/web/base.py

diff --git a/telemeta/pages/default/parts/help-en.rst b/telemeta/pages/default/parts/help-en.rst
deleted file mode 100644 (file)
index 10c1e68..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-========================
-Help page for Telemeta
-========================
-
-Glossary :
-
-#. Introduction
-#. First time
-#. Models
-#. Interface
-#. Advanced functions
-
-For more informations, see `telemeta.org <http://telemeta.org>`_
-
-
diff --git a/telemeta/pages/default/parts/help-fr.rst b/telemeta/pages/default/parts/help-fr.rst
deleted file mode 100644 (file)
index e670714..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-========================
-Page d'aide Telemeta
-========================
-
-Plan :
-
-#. Introduction
-#. Prise en main
-#. Modèles
-#. Interface
-#. Fonctions avancées
-
-Pour plus d'informations, voir `telemeta.org <http://telemeta.org>`_
-
-
diff --git a/telemeta/pages/default/parts/home-en.rst b/telemeta/pages/default/parts/home-en.rst
deleted file mode 100644 (file)
index d91e374..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-===================================================
-Telemeta : Web Audio Content Management System
-===================================================
-
-`Telemeta <http://telemeta.org>`_ is an open source web audio archiving program which introduces useful and secure methods to backup, index, transcode, analyse and publish any digitalized audio file with its metadata. It is dedicated to professionnals who wants to easily backup and publish documented sounds from collections of LP and EP vinyls, magnetic tapes or audio CDs over a strong database, in accordance with open standards.
-
-Key features of Telemeta:
-    
-* Secure archiving, editing and publishing of audio files over internet.
-* User friendly web frontend including user playlist management and high level search methods
-* Smart dynamic and skinnable audio player (thanks to `TimeSide <http://code.google.com/p/timeside/>`_)
-* "On the fly" analyzing, transcoding and metadata embedding based on an easy plugin architecture
-* Multi-format support : FLAC, OGG, MP3, WAV and more
-* GEO Navigator for audio geolocalization
-* DublinCore compatibility
-* OAI-PMH data provider
-* XML serialized backup
-* SQL or Oracle backend
-
-The Telemeta data model is now based on *collection* and *item* elements. A *collection* is described by its metadata and is related to audio *items*. An *item* embeds audio files with its metadata. This model has been designed to fit the one of the French Centre of Etnomusicology (CREM) of the University of Paris 10 but could be easily adapted or overrided to suit other data structures.
-
-
-
diff --git a/telemeta/pages/default/parts/home-fr.rst b/telemeta/pages/default/parts/home-fr.rst
deleted file mode 100644 (file)
index 38fe140..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-===================================================
-Telemeta : Web Audio Content Management System
-===================================================
-
-Telemeta is a web audio archiving program which introduces useful and secure methods to backup, index, transcode, analyse and publish any digitalized audio file with its metadata. It is dedicated to professionnals who wants to easily backup and publish documented sounds from collections of vinyls, magnetic tapes or audio CDs over a strong database, in accordance with open standards.
-
-Here are the main features of Telemeta:
-
-* Secure archiving, editing and publishing of audio files over internet.
-* User friendly web frontend including workflows and high level search methods
-* Smart dynamical and skinnable audio player (thanks to Timeside and soundmanager2)
-* "On the fly" analyzing, transcoding and metadata embedding based on an easy plugin architecture
-* Multi-format support : FLAC, OGG, MP3, WAV and more
-* GEO Navigator for audio geolocalization
-* DublinCore compatibility
-* OAI-PMH data provider
-* XML serialized backup
-* Strong SQL backend 
-
-The Telemeta data model is based on 'collections' and 'items'. A collection is described by its metadata and includes original audio items (sounds) and its own metadata. This existing model has been designed to fit the one of the French Centre of Etnomusicology (CREM) but could be easily adapted/overrided to suit other data structures.
-
-
-
diff --git a/telemeta/pages/default/parts/legal_notices-en.rst b/telemeta/pages/default/parts/legal_notices-en.rst
deleted file mode 100644 (file)
index 8481e3b..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-==================
-Legal notices
-==================
-
-...
-
-
diff --git a/telemeta/pages/default/parts/legal_notices-fr.rst b/telemeta/pages/default/parts/legal_notices-fr.rst
deleted file mode 100644 (file)
index 7bcd70a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-==================
-Mentions légales
-==================
-
-...
-
-
diff --git a/telemeta/pages/en/help.rst b/telemeta/pages/en/help.rst
new file mode 100644 (file)
index 0000000..10c1e68
--- /dev/null
@@ -0,0 +1,15 @@
+========================
+Help page for Telemeta
+========================
+
+Glossary :
+
+#. Introduction
+#. First time
+#. Models
+#. Interface
+#. Advanced functions
+
+For more informations, see `telemeta.org <http://telemeta.org>`_
+
+
diff --git a/telemeta/pages/en/home.rst b/telemeta/pages/en/home.rst
new file mode 100644 (file)
index 0000000..d91e374
--- /dev/null
@@ -0,0 +1,23 @@
+===================================================
+Telemeta : Web Audio Content Management System
+===================================================
+
+`Telemeta <http://telemeta.org>`_ is an open source web audio archiving program which introduces useful and secure methods to backup, index, transcode, analyse and publish any digitalized audio file with its metadata. It is dedicated to professionnals who wants to easily backup and publish documented sounds from collections of LP and EP vinyls, magnetic tapes or audio CDs over a strong database, in accordance with open standards.
+
+Key features of Telemeta:
+    
+* Secure archiving, editing and publishing of audio files over internet.
+* User friendly web frontend including user playlist management and high level search methods
+* Smart dynamic and skinnable audio player (thanks to `TimeSide <http://code.google.com/p/timeside/>`_)
+* "On the fly" analyzing, transcoding and metadata embedding based on an easy plugin architecture
+* Multi-format support : FLAC, OGG, MP3, WAV and more
+* GEO Navigator for audio geolocalization
+* DublinCore compatibility
+* OAI-PMH data provider
+* XML serialized backup
+* SQL or Oracle backend
+
+The Telemeta data model is now based on *collection* and *item* elements. A *collection* is described by its metadata and is related to audio *items*. An *item* embeds audio files with its metadata. This model has been designed to fit the one of the French Centre of Etnomusicology (CREM) of the University of Paris 10 but could be easily adapted or overrided to suit other data structures.
+
+
+
diff --git a/telemeta/pages/en/legal_notices.rst b/telemeta/pages/en/legal_notices.rst
new file mode 100644 (file)
index 0000000..8481e3b
--- /dev/null
@@ -0,0 +1,7 @@
+==================
+Legal notices
+==================
+
+...
+
+
diff --git a/telemeta/pages/fr/help.rst b/telemeta/pages/fr/help.rst
new file mode 100644 (file)
index 0000000..f6c431d
--- /dev/null
@@ -0,0 +1,17 @@
+========================
+Page d'aide Telemeta
+========================
+
+-------------------
+Table des matières
+-------------------
+    
+1. Introduction
+2. Prise en main
+3. Modèles
+4. Interface
+5. Fonctions avancées
+
+Pour plus d'informations, voir `telemeta.org <http://telemeta.org>`_
+
+
diff --git a/telemeta/pages/fr/home.rst b/telemeta/pages/fr/home.rst
new file mode 100644 (file)
index 0000000..38fe140
--- /dev/null
@@ -0,0 +1,23 @@
+===================================================
+Telemeta : Web Audio Content Management System
+===================================================
+
+Telemeta is a web audio archiving program which introduces useful and secure methods to backup, index, transcode, analyse and publish any digitalized audio file with its metadata. It is dedicated to professionnals who wants to easily backup and publish documented sounds from collections of vinyls, magnetic tapes or audio CDs over a strong database, in accordance with open standards.
+
+Here are the main features of Telemeta:
+
+* Secure archiving, editing and publishing of audio files over internet.
+* User friendly web frontend including workflows and high level search methods
+* Smart dynamical and skinnable audio player (thanks to Timeside and soundmanager2)
+* "On the fly" analyzing, transcoding and metadata embedding based on an easy plugin architecture
+* Multi-format support : FLAC, OGG, MP3, WAV and more
+* GEO Navigator for audio geolocalization
+* DublinCore compatibility
+* OAI-PMH data provider
+* XML serialized backup
+* Strong SQL backend 
+
+The Telemeta data model is based on 'collections' and 'items'. A collection is described by its metadata and includes original audio items (sounds) and its own metadata. This existing model has been designed to fit the one of the French Centre of Etnomusicology (CREM) but could be easily adapted/overrided to suit other data structures.
+
+
+
diff --git a/telemeta/pages/fr/legal_notices.rst b/telemeta/pages/fr/legal_notices.rst
new file mode 100644 (file)
index 0000000..7bcd70a
--- /dev/null
@@ -0,0 +1,7 @@
+==================
+Mentions légales
+==================
+
+...
+
+
index 360c4835e766489a8fcb756c81a51531e78ddbc8..c3b918bc019ec7ea8d325a0321d429712dd21c9e 100644 (file)
 {{ user.username }}.
 {% endif %}
 <a href="{% url telemeta-profile-detail user.username %}">{% trans "Account" %}</a> |
-<a href="/page/parts/help-{{ LANGUAGE_CODE }}">{% trans "Help" %}</a> | 
+<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> | 
 <a href="{% url telemeta-logout %}">{% trans "Sign out" %}
 <img src="images/logout.png" style="vertical-align:middle" /></a>
 {% else %}
-<a href="/page/parts/help-{{ LANGUAGE_CODE }}">{% trans "Help" %}</a> |
+<a href="{% url telemeta-flatpage "help" %}">{% trans "Help" %}</a> |
 <a href="{% url telemeta-login %}?next={{ request.path|urlencode }}">{% trans "Sign in" %}</a>
 {% endif %}
 </div>
 
  <p class="right">
   Copyright &copy; 2011 Parisson<br />
-  <a href="/page/parts/legal_notices-{{ LANGUAGE_CODE }}">{% trans "Legal notices" %}</a>
+  <a href="{% url telemeta-flatpage "legal_notices" %}">{% trans "Legal notices" %}</a>
  </p>
 {% endblock %}
 </div>
index 00ab6e7959d89da5f7334b9d6cc5f59d4cdfdbaa..801aee3a9e36909627ac00f3c894ad0615e81aac 100644 (file)
@@ -213,7 +213,7 @@ urlpatterns = patterns('',
         name="telemeta-timeside"),
 
     # Flat pages
-    url(r'^page/(?P<path>.*)$', web_view.render_flatpage, name="telemeta-flatpage"),
+    url(r'^pages/(?P<path>.*)$', web_view.render_flatpage, name="telemeta-flatpage"),
 
     # OAI-PMH Data Provider
     url(r'^oai/.*$', web_view.handle_oai_request, name="telemeta-oai"),
index 22fc65fd077bb90b7f3768eaab56210edbb173c3..77e1efe65f96f394d2114c59b58c3e375dc23944 100644 (file)
@@ -113,7 +113,7 @@ class WebView(object):
             ids = [id for id in MediaItem.objects.all().values_list('id', flat=True).order_by('?')[0:3]]
             items = MediaItem.objects.enriched().filter(pk__in=ids)
             context = RequestContext(request, {
-                        'page_content': pages.get_page_content(request, 'parts/home-'+request.LANGUAGE_CODE, ignore_slash_issue=True),
+                        'page_content': pages.get_page_content(request, 'home', ignore_slash_issue=True),
                         'items': items})
             return HttpResponse(template.render(context))
         else: