Some string keys have been renamed, so rename them in the code.
This commit is contained in:
parent
08f3faed02
commit
59f66a9df0
7 changed files with 15 additions and 9 deletions
|
|
@ -445,7 +445,7 @@ class MessagesPresenter @AssistedInject constructor(
|
|||
clipboardHelper.copyPlainText(content)
|
||||
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) {
|
||||
snackbarDispatcher.post(SnackbarMessage(R.string.screen_room_message_copied))
|
||||
snackbarDispatcher.post(SnackbarMessage(R.string.screen_room_timeline_message_copied))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -551,7 +551,7 @@ private fun CantSendMessageBanner() {
|
|||
horizontalArrangement = Arrangement.Center
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(id = R.string.screen_room_no_permission_to_post),
|
||||
text = stringResource(id = R.string.screen_room_timeline_no_permission_to_post),
|
||||
color = MaterialTheme.colorScheme.onSecondary,
|
||||
style = MaterialTheme.typography.bodyMedium,
|
||||
textAlign = TextAlign.Center,
|
||||
|
|
|
|||
|
|
@ -101,14 +101,14 @@ fun ReportMessageView(
|
|||
OutlinedTextField(
|
||||
value = state.reason,
|
||||
onValueChange = { state.eventSink(ReportMessageEvents.UpdateReason(it)) },
|
||||
placeholder = { Text(stringResource(R.string.report_content_hint)) },
|
||||
placeholder = { Text(stringResource(R.string.screen_report_content_hint)) },
|
||||
enabled = !isSending,
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.heightIn(min = 90.dp)
|
||||
)
|
||||
Text(
|
||||
text = stringResource(R.string.report_content_explanation),
|
||||
text = stringResource(R.string.screen_report_content_explanation),
|
||||
style = ElementTheme.typography.fontBodySmRegular,
|
||||
color = MaterialTheme.colorScheme.secondary,
|
||||
textAlign = TextAlign.Start,
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ private fun TimelineItemGroupedEventsRowContent(
|
|||
Column(modifier = modifier.animateContentSize()) {
|
||||
GroupHeaderView(
|
||||
text = pluralStringResource(
|
||||
id = R.plurals.room_timeline_state_changes,
|
||||
id = R.plurals.screen_room_timeline_state_changes,
|
||||
count = timelineItem.events.size,
|
||||
timelineItem.events.size
|
||||
),
|
||||
|
|
|
|||
|
|
@ -90,7 +90,13 @@ private fun TimelineItemReactionsView(
|
|||
expandButton = {
|
||||
MessagesReactionButton(
|
||||
content = MessagesReactionsButtonContent.Text(
|
||||
text = stringResource(id = if (expanded) R.string.screen_room_reactions_show_less else R.string.screen_room_reactions_show_more)
|
||||
text = stringResource(
|
||||
id = if (expanded) {
|
||||
R.string.screen_room_timeline_reactions_show_less
|
||||
} else {
|
||||
R.string.screen_room_timeline_reactions_show_more
|
||||
}
|
||||
)
|
||||
),
|
||||
onClick = onToggleExpandClick,
|
||||
onLongClick = {}
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@ internal fun TimelineItemReadMarkerView(
|
|||
verticalArrangement = spacedBy(4.dp),
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(id = R.string.room_timeline_read_marker_title).uppercase(),
|
||||
text = stringResource(id = R.string.screen_room_timeline_read_marker_title).uppercase(),
|
||||
style = ElementTheme.typography.fontBodySmMedium,
|
||||
color = ElementTheme.colors.textSecondary,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -45,9 +45,9 @@ fun TimelineItemRoomBeginningView(
|
|||
contentAlignment = Alignment.Center,
|
||||
) {
|
||||
val text = if (roomName == null) {
|
||||
stringResource(id = R.string.room_timeline_beginning_of_room_no_name)
|
||||
stringResource(id = R.string.screen_room_timeline_beginning_of_room_no_name)
|
||||
} else {
|
||||
stringResource(id = R.string.room_timeline_beginning_of_room, roomName)
|
||||
stringResource(id = R.string.screen_room_timeline_beginning_of_room, roomName)
|
||||
}
|
||||
Text(
|
||||
color = MaterialTheme.colorScheme.secondary,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue