Updted KC Widget V01.30
authorveltr
Wed, 14 Nov 2012 17:44:46 +0100
changeset 946 d49f0e0e0a52
parent 945 44632acfb9c4
child 947 9f0bf23cec0b
Updted KC Widget
src/ldt/ldt/static/ldt/metadataplayer/Controller.js
src/ldt/ldt/static/ldt/metadataplayer/CreateAnnotation.js
src/ldt/ldt/static/ldt/metadataplayer/KnowledgeConcierge.js
src/ldt/ldt/static/ldt/metadataplayer/MediaList.js
src/ldt/ldt/static/ldt/metadataplayer/Tweet.js
--- a/src/ldt/ldt/static/ldt/metadataplayer/Controller.js	Wed Nov 14 15:18:46 2012 +0100
+++ b/src/ldt/ldt/static/ldt/metadataplayer/Controller.js	Wed Nov 14 17:44:46 2012 +0100
@@ -56,7 +56,7 @@
         annotate: "Annotate",
         search: "Search",
         elapsed_time: "Elapsed time",
-        total_time: "Total time",
+        total_time: "Total duration",
         volume: "Volume",
         volume_control: "Volume control"
     },
@@ -69,7 +69,7 @@
         unmute: "Activer le son",
         annotate: "Annoter",
         search: "Rechercher",
-        elapsed_time: "Durée écoulée",
+        elapsed_time: "Temps écoulé",
         total_time: "Durée totale",
         volume: "Niveau sonore",
         volume_control: "Réglage du niveau sonore"
--- a/src/ldt/ldt/static/ldt/metadataplayer/CreateAnnotation.js	Wed Nov 14 15:18:46 2012 +0100
+++ b/src/ldt/ldt/static/ldt/metadataplayer/CreateAnnotation.js	Wed Nov 14 17:44:46 2012 +0100
@@ -59,16 +59,12 @@
         your_name_: "Your name:",
         no_title: "Annotate this video",
         type_title: "Annotation title",
-        type_description: "Type the full description of your annotation here.",
-        wait_while_processing: "Please wait while your request is being processed...",
+        type_description: "Type the full contents of your annotation here.",
+        wait_while_processing: "Please wait while your annotation is being processed...",
         error_while_contacting: "An error happened while contacting the server. Your annotation has not been saved.",
-        empty_annotation: "Your annotation is empty. Please write something before submitting.",
         annotation_saved: "Thank you, your annotation has been saved.",
         share_annotation: "Would you like to share it on social networks ?",
-        share_on: "Share on",
-        more_tags: "More tags",
-        cancel: "Cancel",
-        close_widget: "Cacher la zone de création d'annotations",
+        close_widget: "Hide the annotation form",
         "polemic++": "Agree",
         "polemic--": "Disagree",
         "polemic??": "Question",
@@ -84,16 +80,12 @@
         your_name_: "Votre nom :",
         no_title: "Annoter cette vidéo",
         type_title: "Titre de l'annotation",
-        type_description: "Rédigez le contenu de votre annotation ici.",
-        wait_while_processing: "Veuillez patienter pendant le traitement de votre requête...",
-        error_while_contacting: "Une erreur s'est produite en contactant le serveur. Votre annotation n'a pas été enregistrée",
-        empty_annotation: "Votre annotation est vide. Merci de rédiger un texte avant de l'envoyer.",
+        type_description: "Rédigez ici le contenu de votre annotation.",
+        wait_while_processing: "Veuillez patienter pendant le traitement de votre annotation...",
+        error_while_contacting: "Une erreur s'est produite en contactant le serveur. Votre annotation n'a pas été enregistrée.",
         annotation_saved: "Merci, votre annotation a été enregistrée.",
         share_annotation: "Souhaitez-vous la partager sur les réseaux sociaux ?",
-        share_on: "Partager sur",
-        more_tags: "Plus de mots-clés",
-        cancel: "Cancel",
-        close_widget: "Hide the annotation creating block",
+        close_widget: "Cacher le formulaire de création d'annotations",
         "polemic++": "Accord",
         "polemic--": "Désaccord",
         "polemic??": "Question",
--- a/src/ldt/ldt/static/ldt/metadataplayer/KnowledgeConcierge.js	Wed Nov 14 15:18:46 2012 +0100
+++ b/src/ldt/ldt/static/ldt/metadataplayer/KnowledgeConcierge.js	Wed Nov 14 17:44:46 2012 +0100
@@ -12,7 +12,7 @@
     kc_api_root: "/kn-concierge/",
     related_api_endpoint: "",
     use_word_boundaries: false,
-    related_data_type: 'jsonp', // SET TO "jsonp" FOR CROSS-DOMAIN OPERATION
+    related_data_type: 'json', // SET TO "jsonp" FOR CROSS-DOMAIN OPERATION
     related_count: 8
 }
 
@@ -39,7 +39,8 @@
         _canvasWidth = this.width - 2,
         _canvas = this.$.find(".Ldt-Kc-Canvas"),
         _tmpId = IriSP._.uniqueId("Processing-"),
-        _slider = this.$.find(".Ldt-Kc-Slider");
+        _slider = this.$.find(".Ldt-Kc-Slider"),
+        radius = .375 * Math.min(_canvasHeight, _canvasWidth);
     _canvas.attr({
         width: _canvasWidth,
         height: _canvasHeight,
@@ -115,7 +116,7 @@
                         }
                         _fns.countassoc(node.id, node.proj);
                         if (l > 1) {
-                            node.position(Math.floor(200*Math.sin(2 * Math.PI * i / l)),Math.floor(200*Math.cos(2 * Math.PI * i / l)));
+                            node.position(Math.floor(radius*Math.sin(2 * Math.PI * i / l)),Math.floor(radius*Math.cos(2 * Math.PI * i / l)));
                         }
                     }
                 } else {
--- a/src/ldt/ldt/static/ldt/metadataplayer/MediaList.js	Wed Nov 14 15:18:46 2012 +0100
+++ b/src/ldt/ldt/static/ldt/metadataplayer/MediaList.js	Wed Nov 14 17:44:46 2012 +0100
@@ -7,14 +7,14 @@
 
 IriSP.Widgets.MediaList.prototype.messages = {
     "fr": {
-        now_playing: "Média en cours",
-        all_media: "Tous les medias",
-        other_media: "Autres médias"
+        now_playing: "Vidéo en cours",
+        all_media: "Toutes les vidéos",
+        other_media: "Autres vidéos"
     },
     "en": {
         now_playing: "Now playing",
-        all_media: "All media",
-        other_media: "Other media"
+        all_media: "All videos",
+        other_media: "Other videos"
     }
 }
 
--- a/src/ldt/ldt/static/ldt/metadataplayer/Tweet.js	Wed Nov 14 15:18:46 2012 +0100
+++ b/src/ldt/ldt/static/ldt/metadataplayer/Tweet.js	Wed Nov 14 17:44:46 2012 +0100
@@ -33,7 +33,7 @@
     "fr": {
         retweet: "Retweeter",
         reply: "Répondre",
-        keep_visible: "Garder visible",
+        keep_visible: "Empêcher la fermeture automatique",
         dont_keep_visible: "Permettre la fermeture automatique",
         close_widget: "Fermer l'affichage du tweet",
         original_time: "Heure d'envoi : ",