diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/RecipientLayoutCreator.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/RecipientLayoutCreator.kt
index f8f2c4ddf56..bd500573e59 100644
--- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/RecipientLayoutCreator.kt
+++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/RecipientLayoutCreator.kt
@@ -1,7 +1,5 @@
package com.fsck.k9.ui.messageview
-import android.text.SpannableStringBuilder
-
private const val LIST_SEPARATOR = ", "
/**
@@ -19,7 +17,7 @@ private const val LIST_SEPARATOR = ", "
internal class RecipientLayoutCreator(
private val textMeasure: TextMeasure,
private val maxNumberOfRecipientNames: Int,
- private val recipientsPrefix: String,
+ private val recipientsFormat: String,
private val additionalRecipientSpacing: Int,
private val additionalRecipientsPrefix: String,
) {
@@ -30,14 +28,9 @@ internal class RecipientLayoutCreator(
): RecipientLayoutData {
require(recipientNames.isNotEmpty())
- val displayRecipientsBuilder = SpannableStringBuilder()
-
if (recipientNames.size == 1) {
- displayRecipientsBuilder.append(recipientsPrefix)
- displayRecipientsBuilder.append(recipientNames.first())
-
return RecipientLayoutData(
- recipientNames = displayRecipientsBuilder,
+ recipientNames = recipientsFormat.format(recipientNames.first()),
additionalRecipients = null,
)
}
@@ -46,12 +39,11 @@ internal class RecipientLayoutCreator(
val maxRecipientNames = recipientNames.size.coerceAtMost(maxNumberOfRecipientNames)
for (numberOfDisplayRecipients in maxRecipientNames downTo 2) {
- displayRecipientsBuilder.clear()
- displayRecipientsBuilder.append(recipientsPrefix)
-
- recipientNames.asSequence()
+ val recipientNamesString = recipientNames.asSequence()
.take(numberOfDisplayRecipients)
- .joinTo(displayRecipientsBuilder, separator = LIST_SEPARATOR)
+ .joinToString(separator = LIST_SEPARATOR)
+
+ val displayRecipients = recipientsFormat.format(recipientNamesString)
additionalRecipientsBuilder.setLength(0)
val numberOfAdditionalRecipients = totalNumberOfRecipients - numberOfDisplayRecipients
@@ -60,20 +52,16 @@ internal class RecipientLayoutCreator(
additionalRecipientsBuilder.append(numberOfAdditionalRecipients)
}
- if (doesTextFitAvailableWidth(displayRecipientsBuilder, additionalRecipientsBuilder, availableWidth)) {
+ if (doesTextFitAvailableWidth(displayRecipients, additionalRecipientsBuilder, availableWidth)) {
return RecipientLayoutData(
- recipientNames = displayRecipientsBuilder,
+ recipientNames = displayRecipients,
additionalRecipients = additionalRecipientsBuilder.toStringOrNull(),
)
}
}
- displayRecipientsBuilder.clear()
- displayRecipientsBuilder.append(recipientsPrefix)
- displayRecipientsBuilder.append(recipientNames.first())
-
return RecipientLayoutData(
- recipientNames = displayRecipientsBuilder,
+ recipientNames = recipientsFormat.format(recipientNames.first()),
additionalRecipients = "$additionalRecipientsPrefix${totalNumberOfRecipients - 1}",
)
}
diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/RecipientNamesView.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/RecipientNamesView.kt
index 5c82354de2b..3753b032212 100644
--- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/RecipientNamesView.kt
+++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messageview/RecipientNamesView.kt
@@ -68,7 +68,7 @@ class RecipientNamesView(context: Context, attrs: AttributeSet?) : ViewGroup(con
recipientLayoutCreator = RecipientLayoutCreator(
textMeasure = textMeasure,
maxNumberOfRecipientNames = MAX_NUMBER_OF_RECIPIENT_NAMES,
- recipientsPrefix = context.getString(R.string.message_view_recipient_prefix),
+ recipientsFormat = context.getString(R.string.message_view_recipients_format),
additionalRecipientSpacing = additionRecipientSpacing,
additionalRecipientsPrefix = context.getString(R.string.message_view_additional_recipient_prefix),
)
diff --git a/app/ui/legacy/src/main/res/values-ar/strings.xml b/app/ui/legacy/src/main/res/values-ar/strings.xml
index 271afed63e3..093602b105a 100644
--- a/app/ui/legacy/src/main/res/values-ar/strings.xml
+++ b/app/ui/legacy/src/main/res/values-ar/strings.xml
@@ -199,8 +199,8 @@
نسخة كربونية :
نسخة مخفية:
غير قادر على حفظ المُرفَق.
-
- إلي
+
+ إلي %s
+
diff --git a/app/ui/legacy/src/main/res/values-be/strings.xml b/app/ui/legacy/src/main/res/values-be/strings.xml
index d74919ce8dc..70ee6338db2 100644
--- a/app/ui/legacy/src/main/res/values-be/strings.xml
+++ b/app/ui/legacy/src/main/res/values-be/strings.xml
@@ -195,8 +195,8 @@
Копія:
Схаваная копія:
Немагчыма захаваць далучаныя файлы.
-
- "да "
+
+ да %s
+
diff --git a/app/ui/legacy/src/main/res/values-bg/strings.xml b/app/ui/legacy/src/main/res/values-bg/strings.xml
index cf82d612a48..637a4389a96 100644
--- a/app/ui/legacy/src/main/res/values-bg/strings.xml
+++ b/app/ui/legacy/src/main/res/values-bg/strings.xml
@@ -180,7 +180,7 @@
Копие:
Bcc:
Не може да запази прикачения файл.
-
+
diff --git a/app/ui/legacy/src/main/res/values-br/strings.xml b/app/ui/legacy/src/main/res/values-br/strings.xml
index 9b2b0e66a82..490485ef4f3 100644
--- a/app/ui/legacy/src/main/res/values-br/strings.xml
+++ b/app/ui/legacy/src/main/res/values-br/strings.xml
@@ -161,7 +161,7 @@
Cc:
Bcc:
N\'haller ket enrollañ ar stagadenn.
-
+
diff --git a/app/ui/legacy/src/main/res/values-ca/strings.xml b/app/ui/legacy/src/main/res/values-ca/strings.xml
index a9e89929deb..4cdd9f2a05d 100644
--- a/app/ui/legacy/src/main/res/values-ca/strings.xml
+++ b/app/ui/legacy/src/main/res/values-ca/strings.xml
@@ -191,8 +191,8 @@
A/c:
Bcc:
No s\'ha pogut desar l\'adjunt.
-
- "a "
+
+ a %s
+
diff --git a/app/ui/legacy/src/main/res/values-cs/strings.xml b/app/ui/legacy/src/main/res/values-cs/strings.xml
index 7682688152c..094bfa09b29 100644
--- a/app/ui/legacy/src/main/res/values-cs/strings.xml
+++ b/app/ui/legacy/src/main/res/values-cs/strings.xml
@@ -195,8 +195,8 @@
Kopie:
Skrytá kopie (Bcc):
Přílohu se nedaří uložit.
-
- "komu "
+
+ komu %s
+
diff --git a/app/ui/legacy/src/main/res/values-cy/strings.xml b/app/ui/legacy/src/main/res/values-cy/strings.xml
index 581782cc3c8..8e6f2de8f73 100644
--- a/app/ui/legacy/src/main/res/values-cy/strings.xml
+++ b/app/ui/legacy/src/main/res/values-cy/strings.xml
@@ -194,7 +194,7 @@
Cc:
Bcc:
Methu â chadw\'r atodiad.
-
+
diff --git a/app/ui/legacy/src/main/res/values-da/strings.xml b/app/ui/legacy/src/main/res/values-da/strings.xml
index 6a46121944b..a459659149d 100644
--- a/app/ui/legacy/src/main/res/values-da/strings.xml
+++ b/app/ui/legacy/src/main/res/values-da/strings.xml
@@ -189,8 +189,8 @@
Cc:
Bcc:
Kunne ikke gemme vedhæftning.
-
- "til "
+
+ til %s
+
diff --git a/app/ui/legacy/src/main/res/values-de/strings.xml b/app/ui/legacy/src/main/res/values-de/strings.xml
index b087256dcfd..d9a42fdec6c 100644
--- a/app/ui/legacy/src/main/res/values-de/strings.xml
+++ b/app/ui/legacy/src/main/res/values-de/strings.xml
@@ -190,8 +190,8 @@
CC:
BCC:
Anhang konnte nicht gespeichert werden.
-
- "an "
+
+ an %s
+
diff --git a/app/ui/legacy/src/main/res/values-el/strings.xml b/app/ui/legacy/src/main/res/values-el/strings.xml
index 1c7e23dfa1c..e8f7904ea2e 100644
--- a/app/ui/legacy/src/main/res/values-el/strings.xml
+++ b/app/ui/legacy/src/main/res/values-el/strings.xml
@@ -191,8 +191,8 @@
Κοιν:
Κρυφή κοιν:
Αδυναμία αποθήκευσης συνημμένου.
-
- σε
+
+ σε %s
+
diff --git a/app/ui/legacy/src/main/res/values-en-rGB/strings.xml b/app/ui/legacy/src/main/res/values-en-rGB/strings.xml
index e392f87d149..e16d41c602d 100644
--- a/app/ui/legacy/src/main/res/values-en-rGB/strings.xml
+++ b/app/ui/legacy/src/main/res/values-en-rGB/strings.xml
@@ -16,7 +16,7 @@
-
+
diff --git a/app/ui/legacy/src/main/res/values-eo/strings.xml b/app/ui/legacy/src/main/res/values-eo/strings.xml
index 79bc27353b1..7a7f66fd064 100644
--- a/app/ui/legacy/src/main/res/values-eo/strings.xml
+++ b/app/ui/legacy/src/main/res/values-eo/strings.xml
@@ -179,7 +179,7 @@
Kopio:
Kaŝkopio:
Ne povis konservi kunsendaĵon.
-
+
diff --git a/app/ui/legacy/src/main/res/values-es/strings.xml b/app/ui/legacy/src/main/res/values-es/strings.xml
index 44db4178cc4..6248565f4c8 100644
--- a/app/ui/legacy/src/main/res/values-es/strings.xml
+++ b/app/ui/legacy/src/main/res/values-es/strings.xml
@@ -192,8 +192,8 @@
Cc:
Cco:
No se puede guardar el adjunto.
-
- "para "
+
+ para %s
+
diff --git a/app/ui/legacy/src/main/res/values-et/strings.xml b/app/ui/legacy/src/main/res/values-et/strings.xml
index c182163b2f8..36bd310a322 100644
--- a/app/ui/legacy/src/main/res/values-et/strings.xml
+++ b/app/ui/legacy/src/main/res/values-et/strings.xml
@@ -191,8 +191,8 @@
Koopia:
Pimekoopia:
Manuse salvestamine ebaõnnestus
-
- "saajaks "
+
+ saajaks %s
+
diff --git a/app/ui/legacy/src/main/res/values-eu/strings.xml b/app/ui/legacy/src/main/res/values-eu/strings.xml
index 368db44dfa7..c06cb032989 100644
--- a/app/ui/legacy/src/main/res/values-eu/strings.xml
+++ b/app/ui/legacy/src/main/res/values-eu/strings.xml
@@ -190,8 +190,8 @@
Cc:
Bcc:
Ezin izan da eranskina gorde.
-
- "honi: "
+
+ honi: %s
+
diff --git a/app/ui/legacy/src/main/res/values-fa/strings.xml b/app/ui/legacy/src/main/res/values-fa/strings.xml
index d71a1bce43c..4d175bce576 100644
--- a/app/ui/legacy/src/main/res/values-fa/strings.xml
+++ b/app/ui/legacy/src/main/res/values-fa/strings.xml
@@ -191,8 +191,8 @@
رونوشت به:
مخفیانه به:
نمیتوان پیوست را ذخیره کرد.
-
- به
+
+ به %s
+
diff --git a/app/ui/legacy/src/main/res/values-fi/strings.xml b/app/ui/legacy/src/main/res/values-fi/strings.xml
index 377d21c4bb5..f33387294e6 100644
--- a/app/ui/legacy/src/main/res/values-fi/strings.xml
+++ b/app/ui/legacy/src/main/res/values-fi/strings.xml
@@ -190,8 +190,8 @@
Kopio:
Piilokopio:
Liitteen tallentaminen epäonnistui.
-
- "vastaanottaja "
+
+ vastaanottaja %s
+
diff --git a/app/ui/legacy/src/main/res/values-fr/strings.xml b/app/ui/legacy/src/main/res/values-fr/strings.xml
index 607eacdadea..3d49033a719 100644
--- a/app/ui/legacy/src/main/res/values-fr/strings.xml
+++ b/app/ui/legacy/src/main/res/values-fr/strings.xml
@@ -194,8 +194,8 @@
Cc :
Cci :
Impossible d’enregistrer le fichier joint.
-
- "à "
+
+ à %s
+
diff --git a/app/ui/legacy/src/main/res/values-fy/strings.xml b/app/ui/legacy/src/main/res/values-fy/strings.xml
index 463da4ccf5e..49a39319278 100644
--- a/app/ui/legacy/src/main/res/values-fy/strings.xml
+++ b/app/ui/legacy/src/main/res/values-fy/strings.xml
@@ -190,8 +190,8 @@
Cc:
Bcc:
Kin bylage net bewarje.
-
- "oan "
+
+ oan %s
+
diff --git a/app/ui/legacy/src/main/res/values-gd/strings.xml b/app/ui/legacy/src/main/res/values-gd/strings.xml
index b4e70affab3..fa60dca35f6 100644
--- a/app/ui/legacy/src/main/res/values-gd/strings.xml
+++ b/app/ui/legacy/src/main/res/values-gd/strings.xml
@@ -174,7 +174,7 @@
Cc:
Bcc:
Cha b’ urrainn dhuinn an ceanglachan a shàbhaladh.
-
+
diff --git a/app/ui/legacy/src/main/res/values-gl/strings.xml b/app/ui/legacy/src/main/res/values-gl/strings.xml
index b99a3ab7066..0c92d468d68 100644
--- a/app/ui/legacy/src/main/res/values-gl/strings.xml
+++ b/app/ui/legacy/src/main/res/values-gl/strings.xml
@@ -183,7 +183,7 @@
Cc:
Bcc:
Incapaz de gardar o anexo.
-
+
diff --git a/app/ui/legacy/src/main/res/values-hr/strings.xml b/app/ui/legacy/src/main/res/values-hr/strings.xml
index 91de9739ad4..30f24ade377 100644
--- a/app/ui/legacy/src/main/res/values-hr/strings.xml
+++ b/app/ui/legacy/src/main/res/values-hr/strings.xml
@@ -163,7 +163,7 @@
Cc:
Bcc:
Nije moguće spremiti privitak.
-
+
diff --git a/app/ui/legacy/src/main/res/values-hu/strings.xml b/app/ui/legacy/src/main/res/values-hu/strings.xml
index ede0cd8fdb3..bb806ce25b8 100644
--- a/app/ui/legacy/src/main/res/values-hu/strings.xml
+++ b/app/ui/legacy/src/main/res/values-hu/strings.xml
@@ -190,8 +190,8 @@
Másolat:
Titkos másolat:
Nem lehet elmenteni a mellékletet.
-
- ->
+
+ -> %s
+
diff --git a/app/ui/legacy/src/main/res/values-in/strings.xml b/app/ui/legacy/src/main/res/values-in/strings.xml
index 4c08208a592..eba4eceed60 100644
--- a/app/ui/legacy/src/main/res/values-in/strings.xml
+++ b/app/ui/legacy/src/main/res/values-in/strings.xml
@@ -172,7 +172,7 @@
Cc:
Bcc:
Tidak dapat menyimpan lampiran.
-
+
diff --git a/app/ui/legacy/src/main/res/values-is/strings.xml b/app/ui/legacy/src/main/res/values-is/strings.xml
index 2d3063415ef..9bbb88e1b15 100644
--- a/app/ui/legacy/src/main/res/values-is/strings.xml
+++ b/app/ui/legacy/src/main/res/values-is/strings.xml
@@ -191,8 +191,8 @@
Afrit:
Falið afrit:
Tókst ekki að vista viðhengi
-
- "til "
+
+ til %s
+
diff --git a/app/ui/legacy/src/main/res/values-it/strings.xml b/app/ui/legacy/src/main/res/values-it/strings.xml
index 9a3f42bb76d..62f45978622 100644
--- a/app/ui/legacy/src/main/res/values-it/strings.xml
+++ b/app/ui/legacy/src/main/res/values-it/strings.xml
@@ -193,8 +193,8 @@
Cc:
Ccn:
Impossibile salvare l\'allegato.
-
- "a "
+
+ a %s
+
diff --git a/app/ui/legacy/src/main/res/values-iw/strings.xml b/app/ui/legacy/src/main/res/values-iw/strings.xml
index ad02ed0c967..81a3902efa1 100644
--- a/app/ui/legacy/src/main/res/values-iw/strings.xml
+++ b/app/ui/legacy/src/main/res/values-iw/strings.xml
@@ -177,7 +177,7 @@
מחק קובץ מצורף
ל:
עותק:
-
+
diff --git a/app/ui/legacy/src/main/res/values-ja/strings.xml b/app/ui/legacy/src/main/res/values-ja/strings.xml
index 75650b7c904..7b3c5f55824 100644
--- a/app/ui/legacy/src/main/res/values-ja/strings.xml
+++ b/app/ui/legacy/src/main/res/values-ja/strings.xml
@@ -188,7 +188,7 @@
Cc:
Bcc:
添付ファイルを保存できません。
-
+
+
diff --git a/app/ui/legacy/src/main/res/values-ko/strings.xml b/app/ui/legacy/src/main/res/values-ko/strings.xml
index c5163b27f0d..cee6760e43f 100644
--- a/app/ui/legacy/src/main/res/values-ko/strings.xml
+++ b/app/ui/legacy/src/main/res/values-ko/strings.xml
@@ -174,7 +174,7 @@
참조:
Bcc:
첨부파일을 저장할 수 없음
-
+
diff --git a/app/ui/legacy/src/main/res/values-lt/strings.xml b/app/ui/legacy/src/main/res/values-lt/strings.xml
index 6e87c367609..774f336b0b7 100644
--- a/app/ui/legacy/src/main/res/values-lt/strings.xml
+++ b/app/ui/legacy/src/main/res/values-lt/strings.xml
@@ -194,8 +194,8 @@
Cc:
Bcc:
Nepavyko išsaugoti priedo.
-
- "kam "
+
+ kam %s
+
diff --git a/app/ui/legacy/src/main/res/values-lv/strings.xml b/app/ui/legacy/src/main/res/values-lv/strings.xml
index ac51d72bf40..bf945df1826 100644
--- a/app/ui/legacy/src/main/res/values-lv/strings.xml
+++ b/app/ui/legacy/src/main/res/values-lv/strings.xml
@@ -193,8 +193,8 @@ pat %d vairāk
Cc:
Neredzamais:
Nevar saglabāt pielikumu.
-
- "kam "
+
+ kam %s
+
diff --git a/app/ui/legacy/src/main/res/values-ml/strings.xml b/app/ui/legacy/src/main/res/values-ml/strings.xml
index 4ea210a9e62..9f67fcb0a7f 100644
--- a/app/ui/legacy/src/main/res/values-ml/strings.xml
+++ b/app/ui/legacy/src/main/res/values-ml/strings.xml
@@ -184,7 +184,7 @@
Cc:
Bcc:
അറ്റാച്ചുമെന്റ് സേവ് ചെയ്യാനായില്ല.
-
+
diff --git a/app/ui/legacy/src/main/res/values-nb/strings.xml b/app/ui/legacy/src/main/res/values-nb/strings.xml
index aac226befcd..3e7259a779f 100644
--- a/app/ui/legacy/src/main/res/values-nb/strings.xml
+++ b/app/ui/legacy/src/main/res/values-nb/strings.xml
@@ -169,7 +169,7 @@ til %d flere
Kopi:
Blindkopi:
Klarte ikke lagre vedlegg
-
+
diff --git a/app/ui/legacy/src/main/res/values-nl/strings.xml b/app/ui/legacy/src/main/res/values-nl/strings.xml
index ea9c88cf844..65cf24d2dbc 100644
--- a/app/ui/legacy/src/main/res/values-nl/strings.xml
+++ b/app/ui/legacy/src/main/res/values-nl/strings.xml
@@ -190,8 +190,8 @@
CC:
BCC:
Kan bijlage niet opslaan.
-
- "aan "
+
+ aan %s
+
diff --git a/app/ui/legacy/src/main/res/values-pl/strings.xml b/app/ui/legacy/src/main/res/values-pl/strings.xml
index 76b86a01f29..ad3b7c0108a 100644
--- a/app/ui/legacy/src/main/res/values-pl/strings.xml
+++ b/app/ui/legacy/src/main/res/values-pl/strings.xml
@@ -195,8 +195,8 @@ Wysłane z urządzenia Android za pomocą K-9 Mail. Proszę wybaczyć moją zwi
DW:
UDW:
Nie można zapisać załącznika.
-
- "do "
+
+ do %s
+
diff --git a/app/ui/legacy/src/main/res/values-pt-rBR/strings.xml b/app/ui/legacy/src/main/res/values-pt-rBR/strings.xml
index c3ef2eb4921..6b0336b28b3 100644
--- a/app/ui/legacy/src/main/res/values-pt-rBR/strings.xml
+++ b/app/ui/legacy/src/main/res/values-pt-rBR/strings.xml
@@ -192,8 +192,8 @@
Cc:
Cco:
Não foi possível salvar o anexo.
-
- "para "
+
+ para %s
+
diff --git a/app/ui/legacy/src/main/res/values-pt-rPT/strings.xml b/app/ui/legacy/src/main/res/values-pt-rPT/strings.xml
index 814bcaca2da..f4d35af52f3 100644
--- a/app/ui/legacy/src/main/res/values-pt-rPT/strings.xml
+++ b/app/ui/legacy/src/main/res/values-pt-rPT/strings.xml
@@ -193,8 +193,8 @@
Cc:
Bcc:
Não foi possível guardar o anexo
-
- "para "
+
+ para %s
+
diff --git a/app/ui/legacy/src/main/res/values-ro/strings.xml b/app/ui/legacy/src/main/res/values-ro/strings.xml
index ac47210e567..0e41f471ed0 100644
--- a/app/ui/legacy/src/main/res/values-ro/strings.xml
+++ b/app/ui/legacy/src/main/res/values-ro/strings.xml
@@ -193,8 +193,8 @@ cel mult încă %d
Cc:
Bcc:
Nu se poate salva atașamentul.
-
- "la "
+
+ la %s
+
diff --git a/app/ui/legacy/src/main/res/values-ru/strings.xml b/app/ui/legacy/src/main/res/values-ru/strings.xml
index cae0fcee436..17f527e72cc 100644
--- a/app/ui/legacy/src/main/res/values-ru/strings.xml
+++ b/app/ui/legacy/src/main/res/values-ru/strings.xml
@@ -194,8 +194,8 @@
Копия:
Скрытая копия:
Не получается сохранить вложение.
-
- "для "
+
+ для %s
+
diff --git a/app/ui/legacy/src/main/res/values-sk/strings.xml b/app/ui/legacy/src/main/res/values-sk/strings.xml
index 3cc945ad7d8..4e9274fd364 100644
--- a/app/ui/legacy/src/main/res/values-sk/strings.xml
+++ b/app/ui/legacy/src/main/res/values-sk/strings.xml
@@ -174,7 +174,7 @@
Kópia:
Skrytá kópia (Bcc):
Prílohu sa nepodarilo uložiť.
-
+
diff --git a/app/ui/legacy/src/main/res/values-sl/strings.xml b/app/ui/legacy/src/main/res/values-sl/strings.xml
index 67d8fa51c28..71786f5921c 100644
--- a/app/ui/legacy/src/main/res/values-sl/strings.xml
+++ b/app/ui/legacy/src/main/res/values-sl/strings.xml
@@ -194,8 +194,8 @@ dodatnih %d sporočil
Kp:
Skp:
Priloge ni mogoče shraniti.
-
- "za "
+
+ za %s
+
diff --git a/app/ui/legacy/src/main/res/values-sq/strings.xml b/app/ui/legacy/src/main/res/values-sq/strings.xml
index 60392caac8a..cbfe68e312e 100644
--- a/app/ui/legacy/src/main/res/values-sq/strings.xml
+++ b/app/ui/legacy/src/main/res/values-sq/strings.xml
@@ -191,8 +191,8 @@
Cc:
Bcc:
S\’arrihet të ruhet bashkëngjitje
-
- "për "
+
+ për %s
+
diff --git a/app/ui/legacy/src/main/res/values-sr/strings.xml b/app/ui/legacy/src/main/res/values-sr/strings.xml
index 5a71f6d5fb4..a4360481987 100644
--- a/app/ui/legacy/src/main/res/values-sr/strings.xml
+++ b/app/ui/legacy/src/main/res/values-sr/strings.xml
@@ -173,7 +173,7 @@
Коп:
СКоп:
Не могу да сачувам прилог.
-
+
diff --git a/app/ui/legacy/src/main/res/values-sv/strings.xml b/app/ui/legacy/src/main/res/values-sv/strings.xml
index 2c814062b7c..e47fb9ff641 100644
--- a/app/ui/legacy/src/main/res/values-sv/strings.xml
+++ b/app/ui/legacy/src/main/res/values-sv/strings.xml
@@ -191,8 +191,8 @@
Kopia:
Blindkopia:
Det går inte att spara bilaga.
-
- "till "
+
+ till %s
+
diff --git a/app/ui/legacy/src/main/res/values-tr/strings.xml b/app/ui/legacy/src/main/res/values-tr/strings.xml
index 554d4f70549..a6e55f65c42 100644
--- a/app/ui/legacy/src/main/res/values-tr/strings.xml
+++ b/app/ui/legacy/src/main/res/values-tr/strings.xml
@@ -188,7 +188,7 @@
Bilgi:
Gizli Kopya:
Eklenti kaydedilemedi
-
+
diff --git a/app/ui/legacy/src/main/res/values-uk/strings.xml b/app/ui/legacy/src/main/res/values-uk/strings.xml
index 56bef84ce80..efff762606e 100644
--- a/app/ui/legacy/src/main/res/values-uk/strings.xml
+++ b/app/ui/legacy/src/main/res/values-uk/strings.xml
@@ -195,8 +195,8 @@
Копія:
Прихована копія:
Не вдалося зберегти вкладення.
-
- "для "
+
+ для %s
+
diff --git a/app/ui/legacy/src/main/res/values-zh-rCN/strings.xml b/app/ui/legacy/src/main/res/values-zh-rCN/strings.xml
index 8974ab327bf..8c4d27bdcff 100644
--- a/app/ui/legacy/src/main/res/values-zh-rCN/strings.xml
+++ b/app/ui/legacy/src/main/res/values-zh-rCN/strings.xml
@@ -188,8 +188,8 @@
抄送:
密送:
无法保存附件。
-
- 到
+
+ 到%s
+
diff --git a/app/ui/legacy/src/main/res/values-zh-rTW/strings.xml b/app/ui/legacy/src/main/res/values-zh-rTW/strings.xml
index c5ce6ccb63e..c85159a9c3d 100644
--- a/app/ui/legacy/src/main/res/values-zh-rTW/strings.xml
+++ b/app/ui/legacy/src/main/res/values-zh-rTW/strings.xml
@@ -188,8 +188,8 @@
副本:
密件副本:
無法存檔附件。
-
- 至
+
+ 至%s
+
diff --git a/app/ui/legacy/src/main/res/values/strings.xml b/app/ui/legacy/src/main/res/values/strings.xml
index 8e1e5b9430b..4b2a76e0484 100644
--- a/app/ui/legacy/src/main/res/values/strings.xml
+++ b/app/ui/legacy/src/main/res/values/strings.xml
@@ -229,8 +229,8 @@
Bcc:
Unable to save attachment.
-
- "to "
+
+ to %s
+
diff --git a/app/ui/legacy/src/test/java/com/fsck/k9/ui/messageview/RecipientLayoutCreatorTest.kt b/app/ui/legacy/src/test/java/com/fsck/k9/ui/messageview/RecipientLayoutCreatorTest.kt
index b9d1a3c31e2..14a306ab731 100644
--- a/app/ui/legacy/src/test/java/com/fsck/k9/ui/messageview/RecipientLayoutCreatorTest.kt
+++ b/app/ui/legacy/src/test/java/com/fsck/k9/ui/messageview/RecipientLayoutCreatorTest.kt
@@ -24,7 +24,7 @@ class RecipientLayoutCreatorTest : RobolectricTest() {
private val recipientLayoutCreator = RecipientLayoutCreator(
textMeasure = textMeasure,
maxNumberOfRecipientNames = 5,
- recipientsPrefix = "to ",
+ recipientsFormat = "to %s",
additionalRecipientSpacing = 1,
additionalRecipientsPrefix = "+",
)