from django.contrib import admin
admin.autodiscover()
+js_info_dict = {
+ 'packages': ('telemeta',),
+}
+
urlpatterns = patterns('',
# Example:
# (r'^sandbox/', include('sandbox.foo.urls')),
# Uncomment the next line to enable the admin:
(r'^djangoadmin/', include(admin.site.urls)),
+
+ # Telemeta
(r'^', include('telemeta.urls')),
+
# Languages
- (r'^i18n/', include('django.conf.urls.i18n')),
+ (r'^i18n/', include('django.conf.urls.i18n')),
+ (r'^jsi18n/$', 'django.views.i18n.javascript_catalog', js_info_dict),
+
)
-/*
- * javascript file to handle translations between django and javascript
- */
-function gettrans(str){
- var loc = localeStrings; //instantiate once for faster lookup
- return str in loc ? loc[str] : str;
-}
var localeStrings = {
'title': gettext('title'),
'description': gettext('description'),
'delete the marker permanently?': gettext('delete the marker permanently?'),
- 'marker added to selected playlist': gettext('marker added to selected playlist'),
- 'item added to selected playlist': gettext('item added to selected playlist'),
- 'collection added to selected playlist': gettext('collection added to selected playlist')
+ 'marker added to the selected playlist': gettext('marker added to the selected playlist'),
+ 'item added to the selected playlist': gettext('item added to the selected playlist'),
+ 'collection added to the selected playlist': gettext('collection added to the selected playlist')
};
+
+function gettrans(str){
+ var loc = localeStrings; //instantiate once for faster lookup
+ return str in loc ? loc[str] : str;
+}
})
e_addplaylistButton.unbind('click').bind('click',function(evtObj_){
- playlistUtils.showPopupAddToPlaylist(evtObj_,'marker',""+marker.id,'marker added to selected playlist');
+ playlistUtils.showPopupAddToPlaylist(evtObj_,'marker',""+marker.id,gettrans('marker added to the selected playlist'));
return false;
});
init: function(container, sound, soundDurationInMsec) {
this._super();
var player = this;
-
+
if (!container){
this.debug('ERROR: container is null in initializing the player')
}
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 18:20+0200\n"
+"POT-Creation-Date: 2011-04-27 21:03+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: Olivier Guilyardi <olivier samalyse com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
msgstr "Date d'expiration"
#: templates/telemeta/registration/logged_out.html:4
-#: templates/telemeta_default/base.html:73
+#: templates/telemeta_default/base.html:74
#: templates/telemeta_default/registration/logged_out.html:4
#: templates/telemeta_default/registration/password_change_done.html:4
#: templates/telemeta_default/registration/password_change_form.html:5
msgid "E-mail"
msgstr "E-mail"
-#: templates/telemeta_default/base.html:45
+#: templates/telemeta_default/base.html:46
msgid "Welcome"
msgstr "Bienvenue"
-#: templates/telemeta_default/base.html:51
+#: templates/telemeta_default/base.html:52
msgid "Account"
msgstr "Compte"
-#: templates/telemeta_default/base.html:52
-#: templates/telemeta_default/base.html:56
+#: templates/telemeta_default/base.html:53
+#: templates/telemeta_default/base.html:57
msgid "Help"
msgstr "Aide"
-#: templates/telemeta_default/base.html:53
+#: templates/telemeta_default/base.html:54
msgid "Sign out"
msgstr "Déconnexion"
-#: templates/telemeta_default/base.html:57
+#: templates/telemeta_default/base.html:58
#: templates/telemeta_default/login.html:21
msgid "Sign in"
msgstr "Connexion"
-#: templates/telemeta_default/base.html:65
+#: templates/telemeta_default/base.html:66
#: templates/telemeta_default/search_criteria.html:132
msgid "Search"
msgstr "Recherche"
-#: templates/telemeta_default/base.html:74
+#: templates/telemeta_default/base.html:75
msgid "Collections"
msgstr "Collections"
-#: templates/telemeta_default/base.html:75
+#: templates/telemeta_default/base.html:76
msgid "Items"
msgstr "Items"
-#: templates/telemeta_default/base.html:76
+#: templates/telemeta_default/base.html:77
#: templates/telemeta_default/index.html:13
msgid "Geo Navigator"
msgstr "Géo-Navigateur"
-#: templates/telemeta_default/base.html:77
+#: templates/telemeta_default/base.html:78
msgid "Advanced search"
msgstr "Recherche avancée"
-#: templates/telemeta_default/base.html:79
+#: templates/telemeta_default/base.html:80
msgid "Admin"
msgstr "Admin"
-#: templates/telemeta_default/base.html:101
+#: templates/telemeta_default/base.html:102
msgid "Powered by"
msgstr "Propulsé par"
-#: templates/telemeta_default/base.html:102
+#: templates/telemeta_default/base.html:103
msgid "By"
msgstr "Par"
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2011-04-27 17:57+0200\n"
+"POT-Creation-Date: 2011-04-28 10:54+0200\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"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n>1\n"
-#: htdocs/timeside/src/player.js:5
+#: htdocs/js/locale.js:2
+msgid "title"
+msgstr "titre"
+
+#: htdocs/js/locale.js:3
+msgid "description"
+msgstr "description"
+
+#: htdocs/js/locale.js:4
+msgid "delete the marker permanently?"
+msgstr "supprimer le marqueur définitivement ?"
+
+#: htdocs/js/locale.js:5
+msgid "marker added to the selected playlist"
+msgstr "marqueur ajouté à la liste de lecture"
+
+#: htdocs/js/locale.js:6
msgid "item added to the selected playlist"
-msgstr "item ajouté à la liste de lecture sélectionnée"
+msgstr "item ajouté à la liste de lecture"
+#: htdocs/js/locale.js:7
+msgid "collection added to the selected playlist"
+msgstr "collection ajoutée à la liste de lecture"
<link rel="stylesheet"type="text/css" href="{% url telemeta-css "telemeta_ie6.css" %}" />
<![endif]-->
{% endblock %}
+<script src="{% url django.views.i18n.javascript_catalog %}" type="text/javascript"></script>
<script src="{% url telemeta-js "jquery.js" %}" type="text/javascript"></script>
<script src="{% url telemeta-js "locale.js" %}" type="text/javascript"></script>
<script src="{% url telemeta-js "application.js" %}" type="text/javascript"></script>
-<script src="{% url django.views.i18n.javascript_catalog %}" type="text/javascript"></script>
{% block extra_javascript %}{% endblock %}
var anchor = jQuery('#_add_to_playlist');
if(anchor.length){
anchor.click(function(evtObj_){
- p.showPopupAddToPlaylist(evtObj_,'collection','{{collection.public_id}}','Collection added to selected playlist');return false;
+ p.showPopupAddToPlaylist(evtObj_,'collection','{{collection.public_id}}',gettrans('collection added to the selected playlist'));return false;
});
}
{% endif %}
{% for playlist in playlists %}
<!--<div>-->
<!--<h2>{{ playlist.playlist.title }}</h2>-->
- <table class="listing" style="width:90%;margin-top: 3em">
+ <table class="listing" style="width:95%;margin-top: 3em">
<tr>
<td style="border-bottom:1px solid #6A0307;color:#6A0307;font-size: 100%">{{ playlist.playlist.title }}</td>
<td style="width:66ex; padding-right: 0; border-bottom:1px solid #6A0307; text-align:right">
<!--</div>-->
- <table class="listing" width="90%">
+ <table class="listing" width="95%">
<tr>
<th class="highlight">{% trans "Title" %}</th>
<th>{% trans "Type" %}</th>
var anchor = jQuery('#_add_to_playlist');
if(anchor.length){
anchor.click(function(evtObj_){
- p.showPopupAddToPlaylist(evtObj_,'item','{{item.public_id}}',gettext('item added to the selected playlist'));return false;
+ p.showPopupAddToPlaylist(evtObj_,'item','{{item.public_id}}',gettrans('item added to the selected playlist'));return false;
});
}
{% endif %}