fix wrong plurals implementation

- key was duplicated

- kotlin handling of plurals was missing

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>

[skip ci]
This commit is contained in:
Marcel Hibbe 2025-06-16 10:08:01 +02:00 committed by backportbot[bot]
parent d1b3e7cb4d
commit e15957357a
2 changed files with 3 additions and 3 deletions

View File

@ -1238,8 +1238,9 @@ class ChatActivity :
val deleteNoticeText = binding.conversationDeleteNotice.findViewById<TextView>(R.id.deletion_message)
viewThemeUtils.material.themeCardView(binding.conversationDeleteNotice)
deleteNoticeText.text = String.format(
resources.getString(R.string.nc_conversation_auto_delete_notice),
deleteNoticeText.text = resources.getQuantityString(
R.plurals.nc_conversation_auto_delete_info,
retentionPeriod,
retentionPeriod
)
viewThemeUtils.material.colorMaterialButtonPrimaryTonal(

View File

@ -19,7 +19,6 @@
android:id="@+id/deletion_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/nc_conversation_auto_delete_notice"
android:textSize="14sp"
android:lineSpacingExtra="4dp"
android:gravity="center"