# HG changeset patch
# User veltr
# Date 1339422457 -7200
# Node ID af969d762e03c3536087829481db94853fb208ef
# Parent f2befea2c2d17a6a9979dee6902d9ee3abf11f6c
corrections
diff -r f2befea2c2d1 -r af969d762e03 crea/integration/metadataplayer/MusitagAnnotations.js
--- a/crea/integration/metadataplayer/MusitagAnnotations.js Mon Jun 11 15:10:18 2012 +0200
+++ b/crea/integration/metadataplayer/MusitagAnnotations.js Mon Jun 11 15:47:37 2012 +0200
@@ -8,14 +8,23 @@
'
';
IriSP.Widgets.MusitagAnnotations.prototype.annotation_template =
- ''
+ '
'
+ '
'
+ '
'
- + '
'
- + '
'
- + '
{{#audio}}
{{/audio}}'
+ + '
'
+ + '
'
+ + '
{{#annotation.audio}}
{{/annotation.audio}}'
+ '
';
+IriSP.Widgets.MusitagAnnotations.prototype.messages = {
+ fr: {
+ at_timecode: "à"
+ },
+ en: {
+ at_timecode: "at"
+ }
+}
+
IriSP.Widgets.MusitagAnnotations.prototype.defaults = {
annotation_type: false,
columns: 15,
@@ -23,7 +32,7 @@
emoticons: [
{ tag: "happy", name: "content"},
{ tag: "unhappy", name: "mécontent"},
- { tag: "laughing", name: "rigolard"},
+ { tag: "laughing", name: "rieur"},
{ tag: "surprised", name: "étonné"}
],
colors: [
@@ -108,7 +117,7 @@
}
_html += '';
_html += _column.map(function(_annotation) {
- return Mustache.to_html(_this.annotation_template, _annotation);
+ return Mustache.to_html(_this.annotation_template, { annotation: _annotation, l10n: _this.l10n });
}).join('');
_html += '
';
}
diff -r f2befea2c2d1 -r af969d762e03 web/tralalere/static/tralalere/metadataplayer/MusitagAnnotations.js
--- a/web/tralalere/static/tralalere/metadataplayer/MusitagAnnotations.js Mon Jun 11 15:10:18 2012 +0200
+++ b/web/tralalere/static/tralalere/metadataplayer/MusitagAnnotations.js Mon Jun 11 15:47:37 2012 +0200
@@ -8,14 +8,23 @@
'';
IriSP.Widgets.MusitagAnnotations.prototype.annotation_template =
- ''
+ '
'
+ '
'
+ '
'
- + '
'
- + '
'
- + '
{{#audio}}
{{/audio}}'
+ + '
'
+ + '
'
+ + '
{{#annotation.audio}}
{{/annotation.audio}}'
+ '
';
+IriSP.Widgets.MusitagAnnotations.prototype.messages = {
+ fr: {
+ at_timecode: "à"
+ },
+ en: {
+ at_timecode: "at"
+ }
+}
+
IriSP.Widgets.MusitagAnnotations.prototype.defaults = {
annotation_type: false,
columns: 15,
@@ -23,7 +32,7 @@
emoticons: [
{ tag: "happy", name: "content"},
{ tag: "unhappy", name: "mécontent"},
- { tag: "laughing", name: "rigolard"},
+ { tag: "laughing", name: "rieur"},
{ tag: "surprised", name: "étonné"}
],
colors: [
@@ -108,7 +117,7 @@
}
_html += '';
_html += _column.map(function(_annotation) {
- return Mustache.to_html(_this.annotation_template, _annotation);
+ return Mustache.to_html(_this.annotation_template, { annotation: _annotation, l10n: _this.l10n });
}).join('');
_html += '
';
}
diff -r f2befea2c2d1 -r af969d762e03 web/tralalere/templates/base.html
--- a/web/tralalere/templates/base.html Mon Jun 11 15:10:18 2012 +0200
+++ b/web/tralalere/templates/base.html Mon Jun 11 15:47:37 2012 +0200
@@ -1,5 +1,5 @@
-
+
@@ -14,6 +14,23 @@
{% block main_content %}
{% endblock %}
+
{% block end_body %}
{% endblock %}
diff -r f2befea2c2d1 -r af969d762e03 web/tralalere/templates/home.html
--- a/web/tralalere/templates/home.html Mon Jun 11 15:10:18 2012 +0200
+++ b/web/tralalere/templates/home.html Mon Jun 11 15:47:37 2012 +0200
@@ -22,7 +22,7 @@
{% if content.tags_stats.colors %}
{% for tag in content.tags_stats.colors %}
- -
+
-
{% if tag.scale == 1 %}
{% else %}
@@ -38,7 +38,7 @@
{% if content.tags_stats.emoticons %}
{% for tag in content.tags_stats.emoticons %}
- -
+
-
{% if tag.scale == 1 %}
{% else %}
diff -r f2befea2c2d1 -r af969d762e03 web/tralalere/templates/player.html
--- a/web/tralalere/templates/player.html Mon Jun 11 15:10:18 2012 +0200
+++ b/web/tralalere/templates/player.html Mon Jun 11 15:47:37 2012 +0200
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load thumbnail %}
+{% load i18n %}
{% block js_import %}
{% endblock %}
@@ -34,6 +35,7 @@
{% block end_body %}