Skip to content

Commit c77528c

Browse files
committed
Add tooltips for the remaining buttons in AnnotationPanel (#448)
1 parent f343847 commit c77528c

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

frontend/src/i18n/en/translation.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@
166166
"open-related": "View items that are related to the current item",
167167
"open-annotations": "View all places where this item has been annotated",
168168
"open-external": "View links to external resources about this item",
169+
"edit-annotation": "Change the properties of this item",
170+
"clone-annotation": "Create a new annotation at the same position",
169171
"view-operator-docs": "View documentation of search operators",
170172
"toggle-metadata": "Show / hide the source metadata",
171173
"toggle-annotations": "Show / hide annotations"

frontend/src/i18n/en/translation_old.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
33
"explore-menu": "Get a random selection of reading experiences and annotations",
44
"open-related": "View items that are related to the current item",
55
"open-annotations": "View all places where this item has been annotated",
6-
"open-external": "View links to external resources about this item"
6+
"open-external": "View links to external resources about this item",
7+
"edit-annotation": "Change the properties of this item",
8+
"clone-annotation": "Create a new annotation at the same position"
79
},
810
"annotation": {
911
"edit-info": {

frontend/src/i18n/fr/translation.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@
166166
"open-related": "View items that are related to the current item",
167167
"open-annotations": "View all places where this item has been annotated",
168168
"open-external": "View links to external resources about this item",
169+
"edit-annotation": "Change the properties of this item",
170+
"clone-annotation": "Create a new annotation at the same position",
169171
"view-operator-docs": "View documentation of search operators",
170172
"toggle-metadata": "Show / hide the source metadata",
171173
"toggle-annotations": "Show / hide annotations"

frontend/src/panel-annotation/annotation-view.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ const tooltipData = {
3636
'tooltip.open-external',
3737
'View links to external resources about this item',
3838
],
39+
'top .btn-edit': [
40+
// i18next.t('tooltip.edit-annotation')
41+
'tooltip.edit-annotation',
42+
'Change the properties of this item',
43+
],
44+
'top .btn-new': [
45+
// i18next.t('tooltip.clone-annotation')
46+
'tooltip.clone-annotation',
47+
'Create a new annotation at the same position',
48+
],
3949
};
4050
const tooltips = mapValues(tooltipData, ([key, defaultValue]) => {
4151
const model = new Model;

0 commit comments

Comments
 (0)