diff --git a/app/src/main/java/io/github/akiomik/seiun/ui/notification/NoficationListItem.kt b/app/src/main/java/io/github/akiomik/seiun/ui/notification/NoficationListItem.kt index 8939d04..29e2879 100644 --- a/app/src/main/java/io/github/akiomik/seiun/ui/notification/NoficationListItem.kt +++ b/app/src/main/java/io/github/akiomik/seiun/ui/notification/NoficationListItem.kt @@ -118,7 +118,7 @@ private fun FollowItem(notification: Notification, onProfileClick: (String) -> U } @Composable -private fun InviteItem(notification: Notification, onProfileClick: (String) -> Unit) { +private fun MentionItem(notification: Notification, onProfileClick: (String) -> Unit) { val createdAt = DateFormat.format( DATETIME_FORMAT, notification.record.createdAt.toInstant().toEpochMilli() @@ -129,7 +129,7 @@ private fun InviteItem(notification: Notification, onProfileClick: (String) -> U headlineContent = { Text( stringResource( - R.string.notification_invited, + R.string.notification_mentioned, notification.author.displayName ?: notification.author.handle ) ) @@ -145,7 +145,7 @@ private fun InviteItem(notification: Notification, onProfileClick: (String) -> U } @Composable -private fun MentionItem(notification: Notification, onProfileClick: (String) -> Unit) { +private fun ReplyItem(notification: Notification, onProfileClick: (String) -> Unit) { val createdAt = DateFormat.format( DATETIME_FORMAT, notification.record.createdAt.toInstant().toEpochMilli() @@ -156,7 +156,7 @@ private fun MentionItem(notification: Notification, onProfileClick: (String) -> headlineContent = { Text( stringResource( - R.string.notification_mentioned, + R.string.notification_replied, notification.author.displayName ?: notification.author.handle ) ) @@ -172,7 +172,7 @@ private fun MentionItem(notification: Notification, onProfileClick: (String) -> } @Composable -private fun ReplyItem(notification: Notification, onProfileClick: (String) -> Unit) { +private fun QuoteItem(notification: Notification, onProfileClick: (String) -> Unit) { val createdAt = DateFormat.format( DATETIME_FORMAT, notification.record.createdAt.toInstant().toEpochMilli() @@ -183,7 +183,7 @@ private fun ReplyItem(notification: Notification, onProfileClick: (String) -> Un headlineContent = { Text( stringResource( - R.string.notification_replied, + R.string.notification_quoted, notification.author.displayName ?: notification.author.handle ) ) @@ -213,10 +213,10 @@ fun NotificationListItem(notification: Notification, onProfileClick: (String) -> "like" -> LikeItem(notification = notification, onProfileClick = onProfileClick) "repost" -> RepostItem(notification = notification, onProfileClick = onProfileClick) "follow" -> FollowItem(notification = notification, onProfileClick = onProfileClick) - "invite" -> InviteItem(notification = notification, onProfileClick = onProfileClick) "mention" -> MentionItem(notification = notification, onProfileClick = onProfileClick) "reply" -> ReplyItem(notification = notification, onProfileClick = onProfileClick) + "quote" -> QuoteItem(notification = notification, onProfileClick = onProfileClick) else -> {} } } diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index 048b5ee..c888b1f 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -45,7 +45,7 @@ %1$s があなたの投稿にいいねしました %1$s があなたの投稿をリポストしました %1$s があなたをフォローしました - %1$s があなたを招待しました + %1$s があなたを投稿を引用しました %1$s があなたにメンションしました %1$s があなたに返信しました 投稿しました diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 5132275..da10dec 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -44,7 +44,7 @@ %1$s liked your post %1$s reposted your post %1$s is followed you - %1$s invited you + %1$s quoted your post %1$s mentioned you %1$s replied to you Your post has been published