mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-18 05:51:34 +02:00
CWA-69 | translated title and content in the openalias alert dialog (send page)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user