Add string message_last_edited_by

Signed-off-by: sowjanyakch <sowjanya.kch@gmail.com>
This commit is contained in:
sowjanyakch 2024-03-25 15:52:47 +01:00 committed by backportbot[bot]
parent 53bc5a9e2a
commit 78ba616d50
2 changed files with 11 additions and 8 deletions

View file

@ -51,12 +51,12 @@ import com.nextcloud.talk.models.json.chat.ChatMessage
import com.nextcloud.talk.repositories.reactions.ReactionsRepository
import com.nextcloud.talk.ui.theme.ViewThemeUtils
import com.nextcloud.talk.utils.ApiUtils
import com.nextcloud.talk.utils.SpreedFeatures
import com.nextcloud.talk.utils.CapabilitiesUtil
import com.nextcloud.talk.utils.CapabilitiesUtil.hasSpreedFeatureCapability
import com.nextcloud.talk.utils.ConversationUtils
import com.nextcloud.talk.utils.DateConstants
import com.nextcloud.talk.utils.DateUtils
import com.nextcloud.talk.utils.CapabilitiesUtil
import com.nextcloud.talk.utils.CapabilitiesUtil.hasSpreedFeatureCapability
import com.nextcloud.talk.utils.SpreedFeatures
import com.vanniktech.emoji.EmojiPopup
import com.vanniktech.emoji.EmojiTextView
import com.vanniktech.emoji.installDisableKeyboardInput
@ -386,10 +386,13 @@ class MessageActionsDialog(
message.lastEditTimestamp *
DateConstants.SECOND_DIVIDER
)
val editorName = context.getString(R.string.nc_edited_by) + message.lastEditActorDisplayName
dialogMessageActionsBinding.editorName.setText(editorName)
dialogMessageActionsBinding.editedTime.setText(editedTime)
val lastEditorName = message.lastEditActorDisplayName ?: ""
val editorName = String.format(
context.getString(R.string.message_last_edited_by),
lastEditorName
)
dialogMessageActionsBinding.editorName.text = editorName
dialogMessageActionsBinding.editedTime.text = editedTime
}
dialogMessageActionsBinding.menuMessageEditedInfo.visibility = getVisibility(showEditorDetails)
}

View file

@ -798,8 +798,8 @@ How to translate with transifex:
<string name="nc_conversation_not_found">Conversation not found</string>
<string name="add_to_notes">Add to Notes</string>
<string name="nc_edited_by_admin">Edited by admin</string>
<string name="nc_edited_by">"Edited by"</string>
<string name="nc_clear_edit_button">Clear Edit Button</string>
<string name="nc_edit_icon">Edit Icon</string>
<string name="get_invitations_error">Failed to fetch pending invitations</string>
<string name="message_last_edited_by">Edited by %1$s</string>
</resources>