Format backup progress numbers.

This commit is contained in:
Greyson Parrelli
2025-03-18 16:29:20 -04:00
committed by Cody Henthorne
parent e555802636
commit 0efccf67b8
2 changed files with 4 additions and 4 deletions

View File

@@ -1036,8 +1036,8 @@ private fun getBackupPhaseMessage(state: ArchiveUploadProgressState): String {
pluralStringResource(
R.plurals.RemoteBackupsSettingsFragment__processing_d_of_d_d_messages,
progress.total.toInt(),
progress.completed,
progress.total,
"%,d".format(progress.completed.toInt()),
"%,d".format(progress.total.toInt()),
(progress.progress * 100).toInt()
)
}

View File

@@ -8044,8 +8044,8 @@
<string name="RemoteBackupsSettingsFragment__preparing_backup">Preparing backup…</string>
<!-- Linear progress dialog text shown when processing messages for backup. First placeholder is completed count, second is approximate total count, third is percent completed. -->
<plurals name="RemoteBackupsSettingsFragment__processing_d_of_d_d_messages">
<item quantity="one">Processing %1$d of %2$d (%3$d%%) message</item>
<item quantity="other">Processing %1$d of %2$d (%3$d%%) messages</item>
<item quantity="one">Processing %1$s of %2$s (%3$d%%) message</item>
<item quantity="other">Processing %1$s of %2$s (%3$d%%) messages</item>
</plurals>
<!-- Displayed in row when backup is available for download and users subscription has expired. First placeholder is data size e.g. 12MB, second is days before expiration -->
<plurals name="RemoteBackupsSettingsFragment__you_have_s_of_backup_data">