Skip to content

Commit 2454342

Browse files
committed
action_sheet: Add "Copy link to topic" button
Fixes: #792
1 parent 83287d6 commit 2454342

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
@@ -176,6 +176,10 @@
176176
"@actionSheetOptionMarkTopicAsRead": {
177177
"description": "Option to mark a specific topic as read in the action sheet."
178178
},
179+
"actionSheetOptionCopyTopicLink": "Copy link to topic",
180+
"@actionSheetOptionCopyTopicLink": {
181+
"description": "Label for copy topic link button in action sheet."
182+
},
179183
"errorWebAuthOperationalErrorTitle": "Something went wrong",
180184
"@errorWebAuthOperationalErrorTitle": {
181185
"description": "Error title when third-party authentication has an operational error (not necessarily caused by invalid credentials)."
@@ -357,6 +361,10 @@
357361
"@successMessageLinkCopied": {
358362
"description": "Message when link of a message was copied to the user's system clipboard."
359363
},
364+
"successTopicLinkCopied": "Topic link copied",
365+
"@successTopicLinkCopied": {
366+
"description": "Message when link of a topic was copied to the user's system clipboard."
367+
},
360368
"errorBannerDeactivatedDmLabel": "You cannot send messages to deactivated users.",
361369
"@errorBannerDeactivatedDmLabel": {
362370
"description": "Label text for error banner when sending a message to one or multiple deactivated users."

lib/generated/l10n/zulip_localizations.dart

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

398+
/// Label for copy topic link button in action sheet.
399+
///
400+
/// In en, this message translates to:
401+
/// **'Copy link to topic'**
402+
String get actionSheetOptionCopyTopicLink;
403+
398404
/// Error title when third-party authentication has an operational error (not necessarily caused by invalid credentials).
399405
///
400406
/// In en, this message translates to:
@@ -619,6 +625,12 @@ abstract class ZulipLocalizations {
619625
/// **'Message link copied'**
620626
String get successMessageLinkCopied;
621627

628+
/// Message when link of a topic was copied to the user's system clipboard.
629+
///
630+
/// In en, this message translates to:
631+
/// **'Topic link copied'**
632+
String get successTopicLinkCopied;
633+
622634
/// Label text for error banner when sending a message to one or multiple deactivated users.
623635
///
624636
/// 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
@@ -148,6 +148,9 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
148148
@override
149149
String get actionSheetOptionMarkTopicAsRead => 'Mark topic as read';
150150

151+
@override
152+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
153+
151154
@override
152155
String get errorWebAuthOperationalErrorTitle => 'Something went wrong';
153156

@@ -300,6 +303,9 @@ class ZulipLocalizationsAr 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 errorBannerDeactivatedDmLabel =>
305311
'You cannot send messages to deactivated users.';

lib/generated/l10n/zulip_localizations_de.dart

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

155+
@override
156+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
157+
155158
@override
156159
String get errorWebAuthOperationalErrorTitle => 'Etwas ist schiefgelaufen';
157160

@@ -313,6 +316,9 @@ class ZulipLocalizationsDe extends ZulipLocalizations {
313316
@override
314317
String get successMessageLinkCopied => 'Nachrichtenlink kopiert';
315318

319+
@override
320+
String get successTopicLinkCopied => 'Topic link copied';
321+
316322
@override
317323
String get errorBannerDeactivatedDmLabel =>
318324
'Du kannst keine Nachrichten an deaktivierte Nutzer:innen senden.';

lib/generated/l10n/zulip_localizations_en.dart

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

151+
@override
152+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
153+
151154
@override
152155
String get errorWebAuthOperationalErrorTitle => 'Something went wrong';
153156

@@ -300,6 +303,9 @@ class ZulipLocalizationsEn 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 errorBannerDeactivatedDmLabel =>
305311
'You cannot send messages to deactivated users.';

lib/generated/l10n/zulip_localizations_fr.dart

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

151+
@override
152+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
153+
151154
@override
152155
String get errorWebAuthOperationalErrorTitle => 'Something went wrong';
153156

@@ -300,6 +303,9 @@ class ZulipLocalizationsFr 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 errorBannerDeactivatedDmLabel =>
305311
'You cannot send messages to deactivated users.';

lib/generated/l10n/zulip_localizations_it.dart

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

156+
@override
157+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
158+
156159
@override
157160
String get errorWebAuthOperationalErrorTitle => 'Qualcosa è andato storto';
158161

@@ -310,6 +313,9 @@ class ZulipLocalizationsIt extends ZulipLocalizations {
310313
@override
311314
String get successMessageLinkCopied => 'Collegamento messaggio copiato';
312315

316+
@override
317+
String get successTopicLinkCopied => 'Topic link copied';
318+
313319
@override
314320
String get errorBannerDeactivatedDmLabel =>
315321
'Non è possibile inviare messaggi agli utenti disattivati.';

lib/generated/l10n/zulip_localizations_ja.dart

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

149+
@override
150+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
151+
149152
@override
150153
String get errorWebAuthOperationalErrorTitle => '問題が発生しました';
151154

@@ -297,6 +300,9 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
297300
@override
298301
String get successMessageLinkCopied => 'Message link copied';
299302

303+
@override
304+
String get successTopicLinkCopied => 'Topic link copied';
305+
300306
@override
301307
String get errorBannerDeactivatedDmLabel =>
302308
'You cannot send messages to deactivated users.';

lib/generated/l10n/zulip_localizations_nb.dart

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

151+
@override
152+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
153+
151154
@override
152155
String get errorWebAuthOperationalErrorTitle => 'Something went wrong';
153156

@@ -300,6 +303,9 @@ class ZulipLocalizationsNb 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 errorBannerDeactivatedDmLabel =>
305311
'You cannot send messages to deactivated users.';

lib/generated/l10n/zulip_localizations_pl.dart

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

158+
@override
159+
String get actionSheetOptionCopyTopicLink => 'Copy link to topic';
160+
158161
@override
159162
String get errorWebAuthOperationalErrorTitle => 'Coś poszło nie tak';
160163

@@ -308,6 +311,9 @@ class ZulipLocalizationsPl extends ZulipLocalizations {
308311
@override
309312
String get successMessageLinkCopied => 'Skopiowano odnośnik wiadomości';
310313

314+
@override
315+
String get successTopicLinkCopied => 'Topic link copied';
316+
311317
@override
312318
String get errorBannerDeactivatedDmLabel =>
313319
'Nie można wysyłać wiadomości do dezaktywowanych użytkowników.';

0 commit comments

Comments
 (0)