equal
deleted
inserted
replaced
|
1 /* Internationalization for this widget */ |
|
2 |
|
3 IriSP.i18n.addMessages( |
|
4 { |
|
5 "fr": { |
|
6 "keywords": "Mots-clés" |
|
7 }, |
|
8 "en": { |
|
9 "keywords": "Keywords" |
|
10 } |
|
11 } |
|
12 ); |
|
13 |
1 IriSP.AnnotationsWidget = function(Popcorn, config, Serializer) { |
14 IriSP.AnnotationsWidget = function(Popcorn, config, Serializer) { |
2 IriSP.Widget.call(this, Popcorn, config, Serializer); |
15 IriSP.Widget.call(this, Popcorn, config, Serializer); |
3 /* flag used when we're creating an annotation */ |
16 /* flag used when we're creating an annotation */ |
4 this._hidden = false; |
17 this._hidden = false; |
5 }; |
18 }; |
44 if (tag_list.hasOwnProperty(annotation.tags[i]["id-ref"])) |
57 if (tag_list.hasOwnProperty(annotation.tags[i]["id-ref"])) |
45 tags += tag_list[annotation.tags[i]["id-ref"]] + ", "; |
58 tags += tag_list[annotation.tags[i]["id-ref"]] + ", "; |
46 } |
59 } |
47 } |
60 } |
48 |
61 |
49 tags = "Keywords: " + tags.slice(0, tags.length - 2); |
62 tags = IriSP.i18n.getMessage("keywords") + ": " + tags.slice(0, tags.length - 2); |
50 |
63 |
51 this.selector.find(".Ldt-SaKeywords").text(tags); |
64 this.selector.find(".Ldt-SaKeywords").text(tags); |
52 |
65 |
53 // update sharing buttons |
66 // update sharing buttons |
54 var defaults = IriSP.widgetsDefaults.AnnotationsWidget; |
67 var defaults = IriSP.widgetsDefaults.AnnotationsWidget; |