src/widgets/CreateAnnotation.js
changeset 982 cfcbac34d020
parent 979 ff62016e051d
child 986 f9d51dd4a3fe
equal deleted inserted replaced
981:982d2226771c 982:cfcbac34d020
    55         at_time: "at",
    55         at_time: "at",
    56         submit: "Submit",
    56         submit: "Submit",
    57         add_keywords_: "Add keywords:",
    57         add_keywords_: "Add keywords:",
    58         add_polemic_keywords_: "Add polemic keywords:",
    58         add_polemic_keywords_: "Add polemic keywords:",
    59         your_name_: "Your name:",
    59         your_name_: "Your name:",
    60         no_title: "Annotate this video",
    60         annotate_video: "Annotate this video",
    61         type_title: "Annotation title",
    61         type_title: "Annotation title",
    62         type_description: "Type the full description of your annotation here.",
    62         type_description: "Type the full contents of your annotation here.",
    63         wait_while_processing: "Please wait while your request is being processed...",
    63         wait_while_processing: "Please wait while your annotation is being processed...",
    64         error_while_contacting: "An error happened while contacting the server. Your annotation has not been saved.",
    64         error_while_contacting: "An error happened while contacting the server. Your annotation has not been saved.",
    65         empty_annotation: "Your annotation is empty. Please write something before submitting.",
       
    66         annotation_saved: "Thank you, your annotation has been saved.",
    65         annotation_saved: "Thank you, your annotation has been saved.",
    67         share_annotation: "Would you like to share it on social networks ?",
    66         share_annotation: "Would you like to share it on social networks ?",
    68         share_on: "Share on",
    67         close_widget: "Hide the annotation form",
    69         more_tags: "More tags",
       
    70         cancel: "Cancel",
       
    71         close_widget: "Cacher la zone de création d'annotations",
       
    72         "polemic++": "Agree",
    68         "polemic++": "Agree",
    73         "polemic--": "Disagree",
    69         "polemic--": "Disagree",
    74         "polemic??": "Question",
    70         "polemic??": "Question",
    75         "polemic==": "Reference"
    71         "polemic==": "Reference"
    76     },
    72     },
    80         at_time: "à",
    76         at_time: "à",
    81         submit: "Envoyer",
    77         submit: "Envoyer",
    82         add_keywords_: "Ajouter des mots-clés :",
    78         add_keywords_: "Ajouter des mots-clés :",
    83         add_polemic_keywords_: "Ajouter des mots-clés polémiques :",
    79         add_polemic_keywords_: "Ajouter des mots-clés polémiques :",
    84         your_name_: "Votre nom :",
    80         your_name_: "Votre nom :",
    85         no_title: "Annoter cette vidéo",
    81         annotate_video: "Annoter cette vidéo",
    86         type_title: "Titre de l'annotation",
    82         type_title: "Titre de l'annotation",
    87         type_description: "Rédigez le contenu de votre annotation ici.",
    83         type_description: "Rédigez ici le contenu de votre annotation.",
    88         wait_while_processing: "Veuillez patienter pendant le traitement de votre requête...",
    84         wait_while_processing: "Veuillez patienter pendant le traitement de votre annotation...",
    89         error_while_contacting: "Une erreur s'est produite en contactant le serveur. Votre annotation n'a pas été enregistrée",
    85         error_while_contacting: "Une erreur s'est produite en contactant le serveur. Votre annotation n'a pas été enregistrée.",
    90         empty_annotation: "Votre annotation est vide. Merci de rédiger un texte avant de l'envoyer.",
       
    91         annotation_saved: "Merci, votre annotation a été enregistrée.",
    86         annotation_saved: "Merci, votre annotation a été enregistrée.",
    92         share_annotation: "Souhaitez-vous la partager sur les réseaux sociaux ?",
    87         share_annotation: "Souhaitez-vous la partager sur les réseaux sociaux ?",
    93         share_on: "Partager sur",
    88         close_widget: "Cacher le formulaire de création d'annotations",
    94         more_tags: "Plus de mots-clés",
       
    95         cancel: "Cancel",
       
    96         close_widget: "Hide the annotation creating block",
       
    97         "polemic++": "Accord",
    89         "polemic++": "Accord",
    98         "polemic--": "Désaccord",
    90         "polemic--": "Désaccord",
    99         "polemic??": "Question",
    91         "polemic??": "Question",
   100         "polemic==": "Référence"
    92         "polemic==": "Référence"
   101     }
    93     }
   104 IriSP.Widgets.CreateAnnotation.prototype.template =
    96 IriSP.Widgets.CreateAnnotation.prototype.template =
   105     '{{#show_slice}}<div class="Ldt-CreateAnnotation-Slice"></div>{{/show_slice}}'
    97     '{{#show_slice}}<div class="Ldt-CreateAnnotation-Slice"></div>{{/show_slice}}'
   106     + '{{^show_slice}}{{#show_arrow}}<div class="Ldt-CreateAnnotation-Arrow"></div>{{/show_arrow}}{{/show_slice}}'
    98     + '{{^show_slice}}{{#show_arrow}}<div class="Ldt-CreateAnnotation-Arrow"></div>{{/show_arrow}}{{/show_slice}}'
   107     + '<div class="Ldt-CreateAnnotation"><div class="Ldt-CreateAnnotation-Inner">'
    99     + '<div class="Ldt-CreateAnnotation"><div class="Ldt-CreateAnnotation-Inner">'
   108     + '<form class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Main">'
   100     + '<form class="Ldt-CreateAnnotation-Screen Ldt-CreateAnnotation-Main">'
   109     + '<h3><span class="Ldt-CreateAnnotation-h3Left">{{#show_title_field}}<input class="Ldt-CreateAnnotation-Title empty" placeholder="{{l10n.type_title}}" />{{/show_title_field}}'
   101     + '<h3><span class="Ldt-CreateAnnotation-h3Left">{{l10n.annotate_video}}{{#show_title_field}}</span></h3>'
   110     + '{{^show_title_field}}<span class="Ldt-CreateAnnotation-NoTitle">{{l10n.no_title}} </span>{{/show_title_field}}'
   102     + '<h3><span class="Ldt-CreateAnnotation-h3Left"><input class="Ldt-CreateAnnotation-Title empty" placeholder="{{l10n.type_title}}" />{{/show_title_field}}'
   111     + '<span class="Ldt-CreateAnnotation-Times"> {{#show_slice}}{{l10n.from_time}} {{/show_slice}}{{^show_slice}}{{l10n.at_time}} {{/show_slice}} <span class="Ldt-CreateAnnotation-Begin">00:00</span>'
   103     + '<span class="Ldt-CreateAnnotation-Times"> {{#show_slice}}{{l10n.from_time}} {{/show_slice}}{{^show_slice}}{{l10n.at_time}} {{/show_slice}} <span class="Ldt-CreateAnnotation-Begin">00:00</span>'
   112     + '{{#show_slice}} {{l10n.to_time}} <span class="Ldt-CreateAnnotation-End">{{end}}</span>{{/show_slice}}</span></span>'
   104     + '{{#show_slice}} {{l10n.to_time}} <span class="Ldt-CreateAnnotation-End">{{end}}</span>{{/show_slice}}</span></span>'
   113     + '{{#show_creator_field}}{{l10n.your_name_}} <input class="Ldt-CreateAnnotation-Creator empty" value="{{creator_name}}" /></h3>{{/show_creator_field}}'
   105     + '{{#show_creator_field}}{{l10n.your_name_}} <input class="Ldt-CreateAnnotation-Creator empty" value="{{creator_name}}" />{{/show_creator_field}}</h3>'
   114     + '<textarea class="Ldt-CreateAnnotation-Description empty" placeholder="{{l10n.type_description}}"></textarea>'
   106     + '<textarea class="Ldt-CreateAnnotation-Description empty" placeholder="{{l10n.type_description}}"></textarea>'
   115     + '<div class="Ldt-CreateAnnotation-Avatar"><img src="{{creator_avatar}}" title="{{creator_name}}"></img></div>'
   107     + '<div class="Ldt-CreateAnnotation-Avatar"><img src="{{creator_avatar}}" title="{{creator_name}}"></img></div>'
   116     + '<input type="submit" class="Ldt-CreateAnnotation-Submit" value="{{l10n.submit}}" />'
   108     + '<input type="submit" class="Ldt-CreateAnnotation-Submit" value="{{l10n.submit}}" />'
   117     + '{{#show_mic_record}}<div class="Ldt-CreateAnnotation-RecBlock"><div class="Ldt-CreateAnnotation-RecLabel">Add voice annotation</div>'
   109     + '{{#show_mic_record}}<div class="Ldt-CreateAnnotation-RecBlock"><div class="Ldt-CreateAnnotation-RecLabel">Add voice annotation</div>'
   118     + '    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="220" height="160">'
   110     + '    <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="220" height="160">'