modify strings

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2025-05-20 09:11:34 +02:00 committed by Marcel Hibbe
parent 1670ff181f
commit d6a2a1fe27
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
2 changed files with 16 additions and 6 deletions

View File

@ -1231,10 +1231,18 @@ class ChatActivity :
} }
val deleteNoticeText = binding.conversationDeleteNotice.findViewById<TextView>(R.id.deletion_message) val deleteNoticeText = binding.conversationDeleteNotice.findViewById<TextView>(R.id.deletion_message)
if(currentConversation?.objectType!= ConversationEnums.ObjectType.INSTANT_MEETING){
deleteNoticeText.text = String.format( deleteNoticeText.text = String.format(
resources.getString(R.string.nc_conversation_auto_delete_notice), resources.getString(R.string.nc_conversation_auto_delete_notice),
retentionPeriod retentionPeriod
) )
}else{
deleteNoticeText.text = String.format(
resources.getString(R.string.nc_conversation_auto_delete_warning),
retentionPeriod
)
}
binding.conversationDeleteNotice.findViewById<MaterialButton>(R.id.delete_now_button).setOnClickListener { binding.conversationDeleteNotice.findViewById<MaterialButton>(R.id.delete_now_button).setOnClickListener {
deleteConversationDialog(it.context) deleteConversationDialog(it.context)

View File

@ -513,8 +513,10 @@ How to translate with transifex:
<string name="nc_reply">Reply</string> <string name="nc_reply">Reply</string>
<string name="nc_reply_privately">Reply privately</string> <string name="nc_reply_privately">Reply privately</string>
<string name="nc_delete_message">Delete</string> <string name="nc_delete_message">Delete</string>
<string name="nc_conversation_auto_delete_notice">This conversation will be automatically deleted in %1$d days of <string name="nc_conversation_auto_delete_notice">This conversation will be automatically deleted for everyone in
no activity</string> %1$d days of no activity</string>
<string name="nc_conversation_auto_delete_warning">This conversation will be automatically deleted for everyone in
%1$d day of no activity</string>
<string name="nc_delete_now">Delete now</string> <string name="nc_delete_now">Delete now</string>
<string name="nc_keep">Keep</string> <string name="nc_keep">Keep</string>
<string name="nc_delete_message_leaked_to_matterbridge">Message deleted successfully, but it might have been <string name="nc_delete_message_leaked_to_matterbridge">Message deleted successfully, but it might have been