Skip to content

Commit 8792876

Browse files
committed
action_sheet: Add "Copy link to topic" button
Fixes: #792
1 parent 80b83e8 commit 8792876

17 files changed

+175
-9
lines changed

assets/l10n/app_en.arb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@
180180
"@actionSheetOptionMarkTopicAsRead": {
181181
"description": "Option to mark a specific topic as read in the action sheet."
182182
},
183+
"actionSheetOptionCopyTopicLink": "Copy link to topic",
184+
"@actionSheetOptionCopyTopicLink": {
185+
"description": "Label for copy topic link button in action sheet."
186+
},
183187
"errorWebAuthOperationalErrorTitle": "Something went wrong",
184188
"@errorWebAuthOperationalErrorTitle": {
185189
"description": "Error title when third-party authentication has an operational error (not necessarily caused by invalid credentials)."
@@ -361,6 +365,10 @@
361365
"@successMessageLinkCopied": {
362366
"description": "Message when link of a message was copied to the user's system clipboard."
363367
},
368+
"successTopicLinkCopied": "Topic link copied",
369+
"@successTopicLinkCopied": {
370+
"description": "Message when link of a topic was copied to the user's system clipboard."
371+
},
364372
"successChannelLinkCopied": "Channel link copied",
365373
"@successChannelLinkCopied": {
366374
"description": "Message when link of a channel was copied to the user's system clipboard."

lib/generated/l10n/zulip_localizations.dart

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,12 @@ abstract class ZulipLocalizations {
401401
/// **'Mark topic as read'**
402402
String get actionSheetOptionMarkTopicAsRead;
403403

404+
/// Label for copy topic link button in action sheet.
405+
///
406+
/// In en, this message translates to:
407+
/// **'Copy link to topic'**
408+
String get actionSheetOptionCopyTopicLink;
409+
404410
/// Error title when third-party authentication has an operational error (not necessarily caused by invalid credentials).
405411
///
406412
/// In en, this message translates to:
@@ -625,6 +631,12 @@ abstract class ZulipLocalizations {
625631
/// **'Message link copied'**
626632
String get successMessageLinkCopied;
627633

634+
/// Message when link of a topic was copied to the user's system clipboard.
635+
///
636+
/// In en, this message translates to:
637+
/// **'Topic link copied'**
638+
String get successTopicLinkCopied;
639+
628640
/// Message when link of a channel was copied to the user's system clipboard.
629641
///
630642
/// In en, this message translates to:

lib/generated/l10n/zulip_localizations_ar.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
151151
@override
152152
String get actionSheetOptionMarkTopicAsRead => 'Mark topic as read';
153153

154+
@override
155+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
156+
154157
@override
155158
String get errorWebAuthOperationalErrorTitle => 'Something went wrong';
156159

@@ -303,6 +306,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
303306
@override
304307
String get successMessageLinkCopied => 'Message link copied';
305308

309+
@override
310+
String get successTopicLinkCopied => 'Topic link copied';
311+
306312
@override
307313
String get successChannelLinkCopied => 'Channel link copied';
308314

lib/generated/l10n/zulip_localizations_de.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
155155
@override
156156
String get actionSheetOptionMarkTopicAsRead => 'Thema als gelesen markieren';
157157

158+
@override
159+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
160+
158161
@override
159162
String get errorWebAuthOperationalErrorTitle => 'Etwas ist schiefgelaufen';
160163

@@ -316,6 +319,9 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
316319
@override
317320
String get successMessageLinkCopied => 'Nachrichtenlink kopiert';
318321

322+
@override
323+
String get successTopicLinkCopied => 'Topic link copied';
324+
319325
@override
320326
String get successChannelLinkCopied => 'Channel link copied';
321327

lib/generated/l10n/zulip_localizations_en.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
151151
@override
152152
String get actionSheetOptionMarkTopicAsRead => 'Mark topic as read';
153153

154+
@override
155+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
156+
154157
@override
155158
String get errorWebAuthOperationalErrorTitle => 'Something went wrong';
156159

@@ -303,6 +306,9 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
303306
@override
304307
String get successMessageLinkCopied => 'Message link copied';
305308

309+
@override
310+
String get successTopicLinkCopied => 'Topic link copied';
311+
306312
@override
307313
String get successChannelLinkCopied => 'Channel link copied';
308314

lib/generated/l10n/zulip_localizations_fr.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
151151
@override
152152
String get actionSheetOptionMarkTopicAsRead => 'Mark topic as read';
153153

154+
@override
155+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
156+
154157
@override
155158
String get errorWebAuthOperationalErrorTitle => 'Something went wrong';
156159

@@ -303,6 +306,9 @@ class ZulipLocalizationsFr extends ZulipLocalizations {
303306
@override
304307
String get successMessageLinkCopied => 'Message link copied';
305308

309+
@override
310+
String get successTopicLinkCopied => 'Topic link copied';
311+
306312
@override
307313
String get successChannelLinkCopied => 'Channel link copied';
308314

lib/generated/l10n/zulip_localizations_it.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
156156
String get actionSheetOptionMarkTopicAsRead =>
157157
'Segna l\'argomento come letto';
158158

159+
@override
160+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
161+
159162
@override
160163
String get errorWebAuthOperationalErrorTitle => 'Qualcosa è andato storto';
161164

@@ -313,6 +316,9 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
313316
@override
314317
String get successMessageLinkCopied => 'Collegamento messaggio copiato';
315318

319+
@override
320+
String get successTopicLinkCopied => 'Topic link copied';
321+
316322
@override
317323
String get successChannelLinkCopied => 'Channel link copied';
318324

lib/generated/l10n/zulip_localizations_ja.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,9 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
149149
@override
150150
String get actionSheetOptionMarkTopicAsRead => 'トピックを既読にする';
151151

152+
@override
153+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
154+
152155
@override
153156
String get errorWebAuthOperationalErrorTitle => '問題が発生しました';
154157

@@ -300,6 +303,9 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
300303
@override
301304
String get successMessageLinkCopied => 'Message link copied';
302305

306+
@override
307+
String get successTopicLinkCopied => 'Topic link copied';
308+
303309
@override
304310
String get successChannelLinkCopied => 'Channel link copied';
305311

lib/generated/l10n/zulip_localizations_nb.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
151151
@override
152152
String get actionSheetOptionMarkTopicAsRead => 'Mark topic as read';
153153

154+
@override
155+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
156+
154157
@override
155158
String get errorWebAuthOperationalErrorTitle => 'Something went wrong';
156159

@@ -303,6 +306,9 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
303306
@override
304307
String get successMessageLinkCopied => 'Message link copied';
305308

309+
@override
310+
String get successTopicLinkCopied => 'Topic link copied';
311+
306312
@override
307313
String get successChannelLinkCopied => 'Channel link copied';
308314

lib/generated/l10n/zulip_localizations_pl.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,9 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
158158
String get actionSheetOptionMarkTopicAsRead =>
159159
'Oznacz wątek jako przeczytany';
160160

161+
@override
162+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
163+
161164
@override
162165
String get errorWebAuthOperationalErrorTitle => 'Coś poszło nie tak';
163166

@@ -311,6 +314,9 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
311314
@override
312315
String get successMessageLinkCopied => 'Skopiowano odnośnik wiadomości';
313316

317+
@override
318+
String get successTopicLinkCopied => 'Topic link copied';
319+
314320
@override
315321
String get successChannelLinkCopied => 'Channel link copied';
316322

0 commit comments

Comments
 (0)