From 6927d3e6bfefa9dbe5870785f6d98159ed8b2354 Mon Sep 17 00:00:00 2001 From: zoff99 Date: Sat, 27 Apr 2024 09:12:37 +0200 Subject: [PATCH] fixes for text addons --- .../kotlin/org/briarproject/briar/desktop/ui/AddFriend.kt | 2 +- .../kotlin/org/briarproject/briar/desktop/ui/AddGroup.kt | 4 ++-- src/main/resources/strings/trifa_material.properties | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/kotlin/org/briarproject/briar/desktop/ui/AddFriend.kt b/src/main/kotlin/org/briarproject/briar/desktop/ui/AddFriend.kt index 1dfdbec4..9fffbe99 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/ui/AddFriend.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/ui/AddFriend.kt @@ -83,7 +83,7 @@ fun AddFriend() = Box { catch(_: java.lang.Exception) { } - contactstore.add(item = ContactItem(name = i18n("ui.addfriend.new_friend") + friendnum, + contactstore.add(item = ContactItem(name = i18n("ui.addfriend.new_friend") + " #" + friendnum, isConnected = 0, pubkey = friend_pubkey!!, push_url = "", diff --git a/src/main/kotlin/org/briarproject/briar/desktop/ui/AddGroup.kt b/src/main/kotlin/org/briarproject/briar/desktop/ui/AddGroup.kt index 6cde25c5..0856fe14 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/ui/AddGroup.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/ui/AddGroup.kt @@ -97,7 +97,7 @@ fun AddGroup() = Box { try { val new_privacy_state = MainActivity.tox_group_get_privacy_state(new_group_num) - val group_name = i18n("ui.group.group") + new_group_num + val group_name = i18n("ui.group.group") + " #" + new_group_num val group_num_peers = MainActivity.tox_group_peer_count(new_group_num) groupstore.add(item = GroupItem(numPeers = group_num_peers.toInt(), name = group_name!!, isConnected = 0, @@ -166,7 +166,7 @@ fun AddGroup() = Box { Spacer(modifier = Modifier.width(35.dp)) Text(fontWeight = FontWeight.ExtraBold, fontSize = 16.sp, - text =i18n("ui.group.important_notice")) + text =i18n("ui.group.important_notice") + " ") Text(fontWeight = FontWeight.Normal, fontSize = 16.sp, text =i18n("ui.group.joining_minutes")) diff --git a/src/main/resources/strings/trifa_material.properties b/src/main/resources/strings/trifa_material.properties index 4a2bbdda..21486e9b 100644 --- a/src/main/resources/strings/trifa_material.properties +++ b/src/main/resources/strings/trifa_material.properties @@ -35,17 +35,17 @@ about.trifa_material_version=TRIfA Material Version ui.addfriend.invite_friend=invite Friend ui.addfriend.add_friend_toxid=enter Friend's ToxID ... ui.addfriend.add_me=please add me -ui.addfriend.new_friend=new Friend # +ui.addfriend.new_friend=new Friend ui.addfriend.invited_Friend=You have invited a new Friend ui.group.enter_groupid=enter GroupID to join ... -ui.group.group=Group # +ui.group.group=Group ui.group.joined_new_group=You joined new Group ui.group.error_joining=Error joining the Group ui.group.join_group=join Group ui.group.joined_the=You joined the Public Information Group ui.group.error_joining_public=Error joining the Public Information Group ui.group.join_public=join the Public Information Group -ui.group.important_notice=Important Notice: +ui.group.important_notice=Important Notice: ui.group.joining_minutes=Joining a Tox Public group for the first time can take a long time, even up to 30 minutes ui.group.enter_group_name=enter Group Name ui.group.created_new_public=You created new public Group