File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 289
289
"@loginServerUrlInputLabel": {
290
290
"description": "Input label in login page for Zulip server URL entry."
291
291
},
292
+ "errorUnableToOpenLinkTitle": "Unable to open link",
293
+ "@errorUnableToOpenLinkTitle": {
294
+ "description": "Error title when a link fails to open."
295
+ },
296
+ "errorLinkCouldNotBeOpened": "Link could not be opened: {url}",
297
+ "@errorLinkCouldNotBeOpened": {
298
+ "description": "Error message when a specific link could not be opened.",
299
+ "placeholders": {
300
+ "url": {"type": "String", "example": "http://example.com/"}
301
+ }
302
+ },
292
303
"loginHidePassword": "Hide password",
293
304
"@loginHidePassword": {
294
305
"description": "Icon label for button to hide password in input form."
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/foundation.dart' ;
2
2
import 'package:flutter/material.dart' ;
3
3
import 'package:flutter/services.dart' ;
4
+ import 'package:flutter_gen/gen_l10n/zulip_localizations.dart' ;
4
5
5
6
import '../model/binding.dart' ;
6
7
import '../model/internal_link.dart' ;
@@ -12,9 +13,9 @@ import 'store.dart';
12
13
Future <void > _showError (BuildContext context, String ? message, String urlString) {
13
14
return showErrorDialog (
14
15
context: context,
15
- title: 'Unable to open link' ,
16
+ title: ZulipLocalizations . of (context).errorUnableToOpenLinkTitle ,
16
17
message: [
17
- 'Link could not be opened: $ urlString ' ,
18
+ ZulipLocalizations . of (context). errorLinkCouldNotBeOpened ( urlString) ,
18
19
if (message != null ) message,
19
20
].join ("\n\n " ));
20
21
}
You can’t perform that action at this time.
0 commit comments