File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 43
43
"@permissionsDeniedReadExternalStorage": {
44
44
"description": "Message for dialog asking the user to grant permissions for external storage read access."
45
45
},
46
+ "actionSheetOptionAddReaction": "Add reaction",
47
+ "@actionSheetOptionAddReaction": {
48
+ "description": "Label for add reaction button on action sheet."
49
+ },
46
50
"actionSheetOptionCopy": "Copy message text",
47
51
"@actionSheetOptionCopy": {
48
52
"description": "Label for copy message text button on action sheet."
67
71
"@errorCouldNotFetchMessageSource": {
68
72
"description": "Error message when the source of a message could not be fetched."
69
73
},
74
+ "errorAddingReactionFailed": "Adding a reaction failed",
75
+ "@errorAddingReactionFailed": {
76
+ "description": "Error message when adding a reaction to a message failed."
77
+ },
70
78
"errorCopyingFailed": "Copying failed",
71
79
"@errorCopyingFailed": {
72
80
"description": "Error message when copying the text of a message to the user's system clipboard failed."
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ class AddReactionButton extends MessageActionSheetMenuItemButton {
87
87
88
88
@override
89
89
String label (ZulipLocalizations zulipLocalizations) {
90
- return 'Add reaction' ; // TODO(i18n) skip translation for now
90
+ return zulipLocalizations.actionSheetOptionAddReaction;
91
91
}
92
92
93
93
@override get onPressed => (BuildContext context) async {
@@ -135,8 +135,9 @@ class AddReactionButton extends MessageActionSheetMenuItemButton {
135
135
default :
136
136
}
137
137
138
+ final zulipLocalizations = ZulipLocalizations .of (messageListContext);
138
139
await showErrorDialog (context: emojiPickerContext,
139
- title: 'Adding reaction failed' , message: errorMessage);
140
+ title: zulipLocalizations.errorAddingReactionFailed , message: errorMessage);
140
141
}
141
142
}));
142
143
});
You can’t perform that action at this time.
0 commit comments