CWA-69 | translated title and content in the openalias alert dialog (send page)

This commit is contained in:
Oleksandr Sobol
2020-02-21 12:45:15 +02:00
parent dde482c4f6
commit 28085ce057
14 changed files with 91 additions and 16 deletions
+3 -3
View File
@@ -30,11 +30,11 @@ Future<Map<String, String>> fetchXmrAddressAndRecipientName(String name) async {
.toString().replaceAll("oa1:xmr recipient_address=", "")
.replaceAll("(", "").replaceAll(")", "").trim();
final recipientName = dataList.where((item) => (item.contains("recipient_name"))).toString();
final recipientName = dataList.where((item) => (item.contains("recipient_name"))).toString()
.replaceAll("(", "").replaceAll(")", "").trim();
if (recipientName.isNotEmpty) {
map["recipient_name"] = recipientName.replaceAll("recipient_name=", "")
.replaceAll("(", "").replaceAll(")", "").trim();
map["recipient_name"] = recipientName.replaceAll("recipient_name=", "");
}
break;
+2 -2
View File
@@ -68,8 +68,8 @@ class SendFormState extends State<SendForm> {
context: context,
builder: (BuildContext context) {
return AlertDialog(
title: Text("XMR Recipient Detected"),
content: Text("You will be sending funds to\n${map["recipient_name"]}"),
title: Text(S.of(context).openalias_alert_title),
content: Text(S.of(context).openalias_alert_content(map["recipient_name"])),
actions: <Widget>[
FlatButton(
child: Text(S.of(context).ok),