File tree 8 files changed +24
-18
lines changed 8 files changed +24
-18
lines changed Original file line number Diff line number Diff line change 168
168
"server": {"type": "String", "example": "https://example.com"}
169
169
}
170
170
},
171
- "errorCouldNotFetchMessageSource": "Could not fetch message source",
171
+ "errorCouldNotFetchMessageSource": "Could not fetch message source. ",
172
172
"@errorCouldNotFetchMessageSource": {
173
173
"description": "Error message when the source of a message could not be fetched."
174
174
},
554
554
"url": {"type": "String", "example": "http://chat.example.com/"}
555
555
}
556
556
},
557
- "errorInvalidResponse": "The server sent an invalid response",
557
+ "errorInvalidResponse": "The server sent an invalid response. ",
558
558
"@errorInvalidResponse": {
559
559
"description": "Error message when an API call returned an invalid response."
560
560
},
584
584
"httpStatus": {"type": "int", "example": "500"}
585
585
}
586
586
},
587
- "errorVideoPlayerFailed": "Unable to play the video",
587
+ "errorVideoPlayerFailed": "Unable to play the video. ",
588
588
"@errorVideoPlayerFailed": {
589
589
"description": "Error message when a video fails to play."
590
590
},
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ abstract class ZulipLocalizations {
359
359
/// Error message when the source of a message could not be fetched.
360
360
///
361
361
/// In en, this message translates to:
362
- /// **'Could not fetch message source'**
362
+ /// **'Could not fetch message source. '**
363
363
String get errorCouldNotFetchMessageSource;
364
364
365
365
/// Error message when copying the text of a message to the user's system clipboard failed.
@@ -857,7 +857,7 @@ abstract class ZulipLocalizations {
857
857
/// Error message when an API call returned an invalid response.
858
858
///
859
859
/// In en, this message translates to:
860
- /// **'The server sent an invalid response'**
860
+ /// **'The server sent an invalid response. '**
861
861
String get errorInvalidResponse;
862
862
863
863
/// Error message when a network request fails.
@@ -887,7 +887,7 @@ abstract class ZulipLocalizations {
887
887
/// Error message when a video fails to play.
888
888
///
889
889
/// In en, this message translates to:
890
- /// **'Unable to play the video'**
890
+ /// **'Unable to play the video. '**
891
891
String get errorVideoPlayerFailed;
892
892
893
893
/// Error message when URL is empty
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
141
141
142
142
@override
143
143
String get errorCouldNotFetchMessageSource =>
144
- 'Could not fetch message source' ;
144
+ 'Could not fetch message source. ' ;
145
145
146
146
@override
147
147
String get errorCopyingFailed => 'Copying failed' ;
@@ -454,7 +454,7 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
454
454
}
455
455
456
456
@override
457
- String get errorInvalidResponse => 'The server sent an invalid response' ;
457
+ String get errorInvalidResponse => 'The server sent an invalid response. ' ;
458
458
459
459
@override
460
460
String get errorNetworkRequestFailed => 'Network request failed' ;
@@ -475,7 +475,7 @@ class ZulipLocalizationsAr extends ZulipLocalizations {
475
475
}
476
476
477
477
@override
478
- String get errorVideoPlayerFailed => 'Unable to play the video' ;
478
+ String get errorVideoPlayerFailed => 'Unable to play the video. ' ;
479
479
480
480
@override
481
481
String get serverUrlValidationErrorEmpty => 'Please enter a URL.' ;
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
141
141
142
142
@override
143
143
String get errorCouldNotFetchMessageSource =>
144
- 'Could not fetch message source' ;
144
+ 'Could not fetch message source. ' ;
145
145
146
146
@override
147
147
String get errorCopyingFailed => 'Copying failed' ;
@@ -454,7 +454,7 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
454
454
}
455
455
456
456
@override
457
- String get errorInvalidResponse => 'The server sent an invalid response' ;
457
+ String get errorInvalidResponse => 'The server sent an invalid response. ' ;
458
458
459
459
@override
460
460
String get errorNetworkRequestFailed => 'Network request failed' ;
@@ -475,7 +475,7 @@ class ZulipLocalizationsEn extends ZulipLocalizations {
475
475
}
476
476
477
477
@override
478
- String get errorVideoPlayerFailed => 'Unable to play the video' ;
478
+ String get errorVideoPlayerFailed => 'Unable to play the video. ' ;
479
479
480
480
@override
481
481
String get serverUrlValidationErrorEmpty => 'Please enter a URL.' ;
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
141
141
142
142
@override
143
143
String get errorCouldNotFetchMessageSource =>
144
- 'Could not fetch message source' ;
144
+ 'Could not fetch message source. ' ;
145
145
146
146
@override
147
147
String get errorCopyingFailed => 'Copying failed' ;
@@ -454,7 +454,7 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
454
454
}
455
455
456
456
@override
457
- String get errorInvalidResponse => 'The server sent an invalid response' ;
457
+ String get errorInvalidResponse => 'The server sent an invalid response. ' ;
458
458
459
459
@override
460
460
String get errorNetworkRequestFailed => 'Network request failed' ;
@@ -475,7 +475,7 @@ class ZulipLocalizationsJa extends ZulipLocalizations {
475
475
}
476
476
477
477
@override
478
- String get errorVideoPlayerFailed => 'Unable to play the video' ;
478
+ String get errorVideoPlayerFailed => 'Unable to play the video. ' ;
479
479
480
480
@override
481
481
String get serverUrlValidationErrorEmpty => 'Please enter a URL.' ;
Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
141
141
142
142
@override
143
143
String get errorCouldNotFetchMessageSource =>
144
- 'Could not fetch message source' ;
144
+ 'Could not fetch message source. ' ;
145
145
146
146
@override
147
147
String get errorCopyingFailed => 'Copying failed' ;
@@ -454,7 +454,7 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
454
454
}
455
455
456
456
@override
457
- String get errorInvalidResponse => 'The server sent an invalid response' ;
457
+ String get errorInvalidResponse => 'The server sent an invalid response. ' ;
458
458
459
459
@override
460
460
String get errorNetworkRequestFailed => 'Network request failed' ;
@@ -475,7 +475,7 @@ class ZulipLocalizationsNb extends ZulipLocalizations {
475
475
}
476
476
477
477
@override
478
- String get errorVideoPlayerFailed => 'Unable to play the video' ;
478
+ String get errorVideoPlayerFailed => 'Unable to play the video. ' ;
479
479
480
480
@override
481
481
String get serverUrlValidationErrorEmpty => 'Please enter a URL.' ;
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ typedef ReportErrorCallback = void Function(
80
80
///
81
81
/// If `details` is non-null, the [SnackBar] will contain a button that would
82
82
/// open a dialog containing the error details.
83
+ /// Prose in `details` should have final punctuation.
83
84
// This gets set in [ZulipApp]. We need this indirection to keep `lib/log.dart`
84
85
// from importing widget code, because the file is a dependency for the rest of
85
86
// the app.
@@ -91,6 +92,8 @@ ReportErrorCancellablyCallback reportErrorToUserBriefly = defaultReportErrorToUs
91
92
/// as the body. If called before the app's widget tree is ready
92
93
/// (see [ZulipApp.ready] ), then we give up on showing the message to the user,
93
94
/// and just log the message to the console.
95
+ ///
96
+ /// Prose in `message` should have final punctuation.
94
97
// This gets set in [ZulipApp]. We need this indirection to keep `lib/log.dart`
95
98
// from importing widget code, because the file is a dependency for the rest of
96
99
// the app.
Original file line number Diff line number Diff line change @@ -49,6 +49,9 @@ class DialogStatus<T> {
49
49
///
50
50
/// The [DialogStatus.result] field of the return value can be used
51
51
/// for waiting for the dialog to be closed.
52
+ ///
53
+ /// Prose in [message] should have final punctuation:
54
+ /// https://github.com/zulip/zulip-flutter/pull/1498#issuecomment-2853578577
52
55
// This API is inspired by [ScaffoldManager.showSnackBar]. We wrap
53
56
// [showDialog]'s return value, a [Future], inside [DialogStatus]
54
57
// whose documentation can be accessed. This helps avoid confusion when
You can’t perform that action at this time.
0 commit comments